You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
FAQ/ENH/DOC: regression, model equivalent to statistical tests #2077
Many of the one, two or k-sample tests can be calculated also through regression models with appropriate choice of the design matrix.
It would be good to have a list compiling some examples.
-> TODO
As possible enhancement this might provide additional options for the hypothesis test.
example
t-test with unequal variance assumption would be GLS or heteroscedasticity robust OLS. The actual test might have different small sample adjustments, like the degrees of freedom for t-test with unequal variance and unequal sample size.
Another example: Cochran-Armitage test is a score test in a binomial model, with application for example in dose-response models.
Using the standard models we could reuse cluster robust standard errors to get a cluster correlation robust version of Cochran-Armitage. (The change to the test statistic is actually just a change in the variance estimate.)
Dennis Boos On Generalized Score Tests, The American Statistician Vol. 46 (4) 1992 Example 4 on p. 331
Terminology, sampling structure: complete block design is similar to repeated measures, clustered and to panel data in the sense of possible one way correlation or unobserved heterogeneity.
References in previous comments uses GEE in this case, but we also have Conditional Logit for the within analysis.
For multiple, pairwise comparison after cochrans-q test, NCSS docs mention McNemar applied to each pair, and one other method.
block design in cochran's q means we have a 2 x k x g contingency table, binary choice, k treatments and g groups
Can we use no-difference in treatment (k) direction as null, compute expected frequencies conditional on the k-column sum, and use standard chisquare test? How does that differ from cochrans-q?
changed the title [-]FAQ/ENH/DOC: regression equivalent to statistical tests[/-][+]FAQ/ENH/DOC: regression, model equivalent to statistical tests[/+]on May 8, 2021
Activity
josef-pkt commentedon Jan 16, 2020
I just found out that cochrans-q is a within ANOVA type test for proportions, i.e. similar to the paired/matched and to cluster correlated cases
https://ncss-wpengine.netdna-ssl.com/wp-content/themes/ncss/pdf/Procedures/NCSS/Cochrans_Q_Test.pdf
Terminology, sampling structure: complete block design is similar to repeated measures, clustered and to panel data in the sense of possible one way correlation or unobserved heterogeneity.
References in previous comments uses GEE in this case, but we also have Conditional Logit for the within analysis.
For multiple, pairwise comparison after cochrans-q test, NCSS docs mention McNemar applied to each pair, and one other method.
josef-pkt commentedon Jan 16, 2020
just a thought:
block design in cochran's q means we have a
2 x k x gcontingency table, binary choice, k treatments and g groupsCan we use no-difference in treatment (k) direction as null, compute expected frequencies conditional on the k-column sum, and use standard chisquare test? How does that differ from cochrans-q?
(I haven't tried yet)
josef-pkt commentedon Feb 18, 2020
I found blogs and github that does collect equivalent or nearly equivalent methods of model based tests and case specific hypothesis tests
https://github.com/eigenfoo/tests-as-linear
https://eigenfoo.xyz/tests-as-linear/
which is python port of
https://lindeloev.github.io/tests-as-linear https://github.com/lindeloev/tests-as-linear
with links to several stackoverflow, stats.stackexchange questions, e.g.
https://stats.stackexchange.com/questions/303269/common-statistical-tests-as-linear-models (includes Cochran-Armitage test of trend in answer)
https://stats.stackexchange.com/questions/59047/how-are-regression-the-t-test-and-the-anova-all-versions-of-the-general-linear with several questions on relationship between anova and linear regression.
see also #6523 for rank based tests
another page, focused on GLM Logit and Poisson
https://rpubs.com/palday/glm-test
[-]FAQ/ENH/DOC: regression equivalent to statistical tests[/-][+]FAQ/ENH/DOC: regression, model equivalent to statistical tests[/+]