Questions tagged [statistical-test]

A statistical test provides a mechanism for making quantitative decisions about a process or processes.

Statistical Tests

A statistical test provides a mechanism for making quantitative decisions about a process or processes. The intent is to determine whether there is enough evidence to reject a conjecture or hypothesis about the process. The conjecture is called the null hypothesis. Not rejecting may be a good result if we want to continue to act as if we believe the null hypothesis is true. Or it may be a disappointing result, possibly indicating we may not yet have enough data to prove something by rejecting the null hypothesis.

264 questions
0
votes
0 answers

Understanding VLMR test for LCA model selection in Mplus

In latent class analysis (LCA) it is desirable to compare the fit of a model with k classes to that of a model with k-1 classes. Mplus performs this test and gives for example (from here: https://stats.oarc.ucla.edu/mplus/dae/latent-class-analysis/…
0
votes
0 answers

Compare categories of a variable separately between two groups or cohorts

I want to compare a categorical variable between two groups or cohorts. The categorical variable has multiple categories and I want to compare the categories separately. Specifically, I have a variable called "Disease states" with categories 1, 2,…
0
votes
0 answers

R: how to use the Hodges-Lehman estimator?

"The Hodges-Lehmann estimator is the median of the combined data points and Walsh averages". In my data I have the data points before and after. I understand that the Hodges-Lehman estimator gives me a median of these data points combined. Am I…
Gato
  • 389
  • 2
  • 12
0
votes
0 answers

Error when running Kruskal Wallis test in for loop

log_fc primer ID_1 category Avg_logfc primer_1 42 test_1 1.88444044 primer_2 43 test_1 0.8730141 primer_3 44 test_1 1.10542821 primer_4 45 test_1 0.79234524 primer_1 11 test_2 0.33098178 primer_2 12 test_2 …
Priya
  • 101
  • 2
0
votes
1 answer

how to run a binomial model in r?

this is some of the data the downs.bc data at faraway package downs.bc age m r 1 17.0 13555 16 2 18.5 13675 15 3 19.5 18752 16 4 20.5 22005 22 why do I get the following error? How to fix it? mod1=glm(cbind(age, 30-age)~m+r,…
0
votes
0 answers

ADF test in R and Gretl - Why are the results different?

I am working on a time series-based study on the Czech Republic. I have macroeconomic data from 1993 to 2021. I tested my time series for stationarity using both R (function adfTest from package fUnitRoots) and Gretl. The results are significantly…
0
votes
0 answers

How to perform Chi-sqaure test for NPS (Net Promoter Score)?

I want to perform Chi-sqaure test on two sample that would constitute to NPS. But I don't know how to proceed. SAMPLE A: Promoter: 1000; Passive: 500; Detractor: 300 SAMPLE B: Promoter: 500; Passive: 300; Detractor: 200 Critical…
0
votes
1 answer

Chi-Squared Test

I have two sets of categorical features and need to apply a Chi-squared test. I couldn't utilize and understand the chi-square tests available in modules. Can you help me with a function to have p-values and test the null hypothesis?
Sadegh
  • 125
  • 11
0
votes
0 answers

Implementing Anderson-Darling test in python for Lomax distribution

I have implemented the Anderson-Darling test in Python for the Lomax distribution. from scipy.stats import lomax def ad_lomax(data): n = len(data) print(n) data = data.astype(float) sorted_data = np.sort(data) alpha, beta =…
0
votes
0 answers

(Subscript) Logical Subscript Too Long: For Loop

I am getting an error that is stating "(subscript) logical subscript too long. Traceback: median(permsamples2.91[business2.91$yrqtr == "20201", i]). I am attempting to do a permutation test that looks at the difference in median wages between 2019Q1…
0
votes
0 answers

Statistical test for parameters testing in algorithms

I have an algorithm that uses four operators, each operator has two or three possible values. I want to test the influence of each value on the performance of the algorithm. In total, 36 variants can be derived by varying the values of the…
0
votes
1 answer

How to do the Whitney U test (wilcox.test) across several columns?

So I have data looking a little something like this: Data: Area Al Cd Cu A 10000 0.2 30 A 15000 0.5 25 A NA Na NA B 8000 1.1 55 B 11000 0.2 40 B 13000 0.1 40 etc. And I want to do a Mann Whitney U test between group A and B…
0
votes
1 answer

Is a hurdle model adapted to analyse data such as the number of trials?

I am analysing data about song recording of birds. Birds had several recording trials to sing, some of them sang during the first or second trial, some needed more than 10 trials, some never sang even after 15 trials or more. Birds that sang were…
MaelleLF
  • 11
  • 2
0
votes
1 answer

Is there an R function that can remove all of the variables from the regression which P value is greater than 5%?

Recently I came to this problem that it takes a lot of time to throw out all of the insignificant variables from the model. I tried writing a function, but I would gladly take some advice. The best would be, if the function removed the variables one…
0
votes
0 answers

MVN package. NA data management

Trying to run normality test with MVN package. {MVN} https://cran.r-project.org/web/packages/MVN/index.html I always receive the same answer, i´ve tried several ways to omit these values in the analysis: na.omit, is.na, na.exclude etc. ***mvn(data,…