Questions tagged [statistical-test]
A statistical test provides a mechanism for making quantitative decisions about a process or processes.
statistical-test
263
questions
0
votes
0
answers
12
views
Can I include a variable related to the outcome variable into statistical analysis?
My research question is about intra-individual variation, meaning how the variaion in the personal level is associated with other variables. The study population reported their behaviour for three ...
0
votes
1
answer
33
views
using ranksum test within permutation test
I am a bit confused with the definition of the permutation_test function provided by scipy.
the following is what I wrote to calculate the p and null distribution
x = disease['Theta']
y = nodisease['...
0
votes
0
answers
18
views
How to implement an Anderson-Rubin test and calculate confidence intervals for an iv model set up with plm in r? [migrated]
I have run an IV model using the plm-package in r. The underlying data is panel data.
My instrument is "weak", i.e. the F-statistic lies below 10.
How can I implement an Anderson-Rubin test ...
0
votes
0
answers
10
views
Modifying 'texts' Argument in nlWaldtest Function for Custom Expressions in R
I am working with the nlWaldtest function in R and need help with dynamically setting the 'texts' argument based on custom expressions. My objective is to compute Wald tests for each element of a ...
-1
votes
1
answer
53
views
Bland-Altman plots [closed]
I need to make Bland-Altman plots, but I cannot find a good R or Python package for this.
So far, I've found a single function in Statsmodels and another one in a package called Pingouin. But neither ...
1
vote
2
answers
27
views
Aggregation Method in Classification
There is a set of objects to be classified into n classes. Each class has its own coefficient.
For example:
class coefficient
1 0.5
2 0.7
N 0.4
I arranged ...
1
vote
0
answers
6
views
Dufour Short run and long run causality tests
Does anyone know if the short run and long run causality tests developed by Dufour JM, Renault E (1998) Short-run and long-run causality in time series: theory. Econometrica 66(5):1099–1125 and Dufour ...
1
vote
0
answers
23
views
What if using Friedman test on dependent variable that is nominal data?
I have a group of 30 participants who did a test for three times. Each time, The independent variable was changed and the participants reported their answers (dependent variable). The independent ...
0
votes
0
answers
12
views
Write mixed effect model
This is a statisical and R question: I am trying to compare two sampling methods for sampling invertebrates. Both methods were used at upstream and downstream of wastewater inputs. Environmental ...
1
vote
1
answer
173
views
Calculating BLEU score between candidate and reference sentences in python
I am calculating BLEU score between 2 sentences which seem very similar to me but I am getting BLEU score as very low. Is it supposed to happen?
prediction = "I am ABC."
reference = "I'...
1
vote
1
answer
54
views
How to fix my permutation part of my R code?
I have attached my code with the problem that I am having issues on below:
library(dplyr)
library(perm)
data(iris)
# Create subset to only see setosa and virginica species
iris_subset <- iris %>...
-1
votes
1
answer
39
views
Handle NaN values in Scipy.mannwhitneyu (scipy.stats.mannwhitneyu)
I have a dataset of logIC50 values(say A) and another dataset of categorical clinical drug response (say B). There are mainly two important observations in B - sensitive and resistant. But there are ...
0
votes
0
answers
19
views
Why are the yticks on one of the plots getting compressed?
I have written a script to conduct innovative trend analysis.
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
import matplotlib as mpl
from scipy import stats
mpl.rcParams['font....
0
votes
0
answers
20
views
Error in `*.default`(y, wts) : non-numeric argument to binary operator -> both are numeric?
getting error code Error in *.default(y, wts) : non-numeric argument to binary operator when running Bruesch Pagan test on R code,
both columns were already numerical, but
tried using as.numeric() to ...
0
votes
0
answers
23
views
Coupon collector’s test (for testing sequences)
I'm reading Donald Knuth's The Art of Programming. I can't figure out how to apply chi-square. Here's the algorithm itself
enter image description here
enter image description here
Let's say I have a ...