Description Usage Arguments Details Value Note Author(s) References See Also Examples
Simultaneous inference for a set of contrasts (linear combinations) of means in longitudinal scenarios. Computes multiplicity-adjusted p-values and simultaneous confidence intervals for comparing groups at multiple time points, or comparing time points in multiple groups, or both.
1 2 3 4 |
data |
A data frame. |
response |
A character string giving the name of the response variable in |
group |
A character string giving the name of the (treatment) group variable in |
time |
A character string giving the name of the time variable in |
id |
A character string giving the name of the subject variable in |
covariates |
ccc |
var |
A list of character strings itemizing the patterns of heteroscedasticity to be included in model selection. The alternatives are |
cor |
A list of character strings itemizing the correlation structures to be included in model selection. The alternatives are |
contrasts |
. Default to |
type |
A character string defining the type of contrast matrix (i.e., the set of comparisons); ignored unless |
base |
An integer specifying the reference group with many-to-one comparisons; ignored unless |
direction |
Defines which factor's levels are to be compared at each level of the other factor; ignored unless |
alternative |
The direction of the alternative to be tested against. Default is |
level |
A numeric value giving the simultaneous confidence level (1 - alpha). |
df |
A character string specifying the approximation to the degrees of freedom for the multivariate t-distribution. Must be one of |
AICc model selection
four variance structures
specified corration structures
ess
uses as degrees of freedom the effective sample size computed under an AR(1)-assumption (Faes et al. 2009).
Computation of in the book of Pinheiro & Bates (2000, p. 91)
Kenward & Roger (1997)
kr
uses the Kenward-Roger implementation of Halekoh & Hojsgaard (2013 ZITAT)
naive
calculates the number of independent units minus the number of cell means; it is prone to make results conservative (i.e., not exploit their type I error level). In contrast, residual
calculates the total number of observations minus the number of cell means and is therefore likely cause anticonservatism.
override model selection procedure by just inserting one var and one cor pattern
A list of class silo
with elements
Results |
A table listing comparisonwise the estimated difference with standard error, lower and upper simultaneous confidence bounds, value of the test statistic, and multiplicity-adjusted p-value. |
CovStat |
The covariance matrix of test statistics. |
CritValue |
The critical value (equicoordinate quantile from a multivariate t-distribution). |
Alternative |
The direction of the alternative. |
ConfLevel |
The confidence level as specified via |
DFMethod |
The approximation to the degrees of freedom. |
DF |
The degrees of freedom used for the multivariate t-distribution (zero if multivariate normal). |
ContMat |
The contrast matrix. |
BestMod |
The formula (in |
ModSelTab |
A model selection table. |
AWBest |
The Akaike weight of the AICc-chosen model (with respect to the set of models considered). |
CovBest |
The estimated covariance matrix of the AICc-chosen model. |
Model |
The fit of the AICc-chosen model. |
Vorsicht bei CAR1
Philip Pallmann pallmann@biostat.uni-hannover.de
Burnham, K. P. & Anderson, D. R. (2002) Model Selection and Multimodel Inference: A Practical Information-Theoretic Approach. Second Edition. Springer, New York, NY.
Hothorn, T., Bretz, F., Westfall, P. (2008) Simultaneous inference in general parametric models. Biometrical Journal, 50(3), 346–363.
Kenward, M. G. & Roger, J. H. (1997) Small sample inference for fixed effects from restricted maximum likelihood. Biometrics, 53(3), 983–997.
Pinheiro, J. C. & Bates, D. M. (2000) Mixed-Effects Models in S and S-PLUS. Springer, New York, NY.
Satterthwaite, F. E. (1941) Synthesis of variance. Psychometrika, 6(5), 309–316.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 | data(heart)
# Many-to-one comparisons of groups per time point
# taking the third group ("control") as reference
SimLongi(data=heart, response="heartrate", group="drug",
time="time", id="person", direction="gpt",
type="Dunnett", base=3)$Results
# The same test using a self-built contrast matrix
library(multcomp)
cmat <- kronecker(contrMat(numeric(3), "Dunnett", base=3), diag(4))
SimLongi(data=heart, response="heartrate", group="drug",
time="time", id="person", contrasts=cmat)$Results
# All-pairs comparisons of groups per time point,
# and many-to-one comparisons of time points per group
# taking (by default) the first time point ("T1") as reference
SimLongi(data=heart, response="heartrate", group="drug",
time="time", id="person", direction="both",
type=c("Tukey", "Dunnett"))$Results
# Many-to-one comparisons of groups per time point
# taking the third group ("control") as reference,
# and many-to-one comparisons of time points per group
# taking the last time point ("T4") as reference
SimLongi(data=heart, response="heartrate", group="drug",
time="time", id="person", direction="both",
type="Dunnett", base=c(3, 4))$Results
# DFS HIER NOCH EINBAUEN! (UND EVTL. WEITERE NEUERUNGEN)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.