We test for difference in risk factors between the cohort groups. If the data passes both normality check and homogeneity check, we used one-way ANOVA test. If the data passes normality check but fails homogeneity check, we used Welch's one-way test. If the data fails normality check, we used Kruskal-Wallis test. Then, we use Tukey test to discover the pairs of cohorts that have significant difference.
1 2 | Stats.StandardANOVAPractice(y, x, observe = TRUE, Thres.Normality = 0.05,
Thres.Homogeneity = 0.05, Thres.Decision = 0.05)
|
y |
vector of Groups, must be a factor |
x |
matrix or data frame of measures, should include column names |
observe |
if TRUE, wait for user to press enter through each step |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.