Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Results changed after assigning "ALL" to the augment types #9

Open
fanwayne opened this issue Oct 22, 2021 · 0 comments
Open

Results changed after assigning "ALL" to the augment types #9

fanwayne opened this issue Oct 22, 2021 · 0 comments

Comments

@fanwayne
Copy link

Hello, I'm currently using this package for CMH trend analysis. However, the outputs were very confusing when I chose to set "types = 'ALL'". Below were my outputs. Could you please confirm which were correct? Many thanks.

vcdExtra::CMHtest(Freq ~ Var2 + Var1, data = table_4cmh)
Cochran-Mantel-Haenszel Statistics for Var2 by Var1

             AltHypothesis   Chisq Df     Prob

cor Nonzero correlation 3.3314 1 0.067967
rmeans Row mean scores differ 5.7281 4 0.220397
cmeans Col mean scores differ 4.8995 4 0.297764
general General association 14.5570 16 0.557290

vcdExtra::CMHtest(Freq ~ Var2 + Var1, data = table_4cmh, types = "ALL")
Cochran-Mantel-Haenszel Statistics for Var2 by Var1

             AltHypothesis   Chisq Df     Prob

general General association 3.3314 1 0.067967
rmeans Row mean scores differ 5.7281 4 0.220397
cmeans Col mean scores differ 4.8995 4 0.297764
cor Nonzero correlation 14.5570 16 0.557290

@fanwayne fanwayne changed the title Results reverted after assigning "ALL" to the augment types Results changed after assigning "ALL" to the augment types Oct 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant