mt.test | R Documentation |
Perform multiple Student's t-Test via heteroschedastic linear regression and combine the results, possibly adjusted for multiplicity.
mt.test(formula, data, method = NULL, level = 0.95, trace = TRUE)
formula |
A formula like
|
data |
dataset in the wide format. Should inherit from data.frame. |
method |
[character] type of adjustment for multiple comparisons, one of |
level |
[numeric,0-1] the confidence level of the confidence intervals. |
trace |
[logical] should a message be displayed in the console when there are missing data. |
In presence of missing values, performs a outcome specific complete case analysis.
A data.frame with the estimates, confidence intervals, and p-values relative to each outcome.
Depending on the argument method
confidence intervals and p-values may be adjusted for multiple comparisons.
The data.frame has an attribute mlmm
containing the underlying regression models.
data(calciumW, package = "LMMstar")
t.test(bmd1 ~ grp, data = calciumW)
mt.test(bmd1+bmd2+bmd3+bmd4+bmd5 ~ grp, data = calciumW)
mt.test(bmd1+bmd2+bmd3+bmd4+bmd5 ~ grp|girl, data = calciumW)
mt.test(bmd1+bmd2+bmd3+bmd4+bmd5 ~ grp|girl, data = calciumW, method = "none")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.