Description Usage Arguments Details Value 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.
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  | 
rand | 
 A list containing the random effects structures to be employed. There are four options of increasing complexity:   | 
contrasts | 
 An optional matrix of appropriate dimensions defining the contrasts to be applied. 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   | 
The function performs time-point-wise comparisons of treatment groups, or treatment-group-wise comparisons of points in time, using multiple contrast as described by Hothorn et al. (2008). Test statistics are built with fixed-effects and covariance estimates from an appropriately parameterized linear mixed-effects model (e.g., Verbeke & Molenberghs 2000). If rand contains more than one element, AICc model selection (Burnham & Anderson 2002) is employed for selecting a "best-fitting" model to base further inferences on. Both multiplicity-adjusted p-values and simultaneous confidence intervals are provided.
Several approximations to the degrees of freedom for the multivariate t-distribution can be chosen. kr computes the approximation of Kenward & Roger (1997) as implemented in package pbkrtest. pb invokes the containment degrees of freedom as described by Pinheiro & Bates (2000, p. 91) and implemented in their nlme package. 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 compute the total number of observations minus the number of cell means and is therefore likely cause anticonservatism. normal uses a critical point from a multivariate normal distribution (i.e., a multivariate t-distribution at "infinite" degrees of freedom).
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.  | 
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.
Verbeke, G. & Molenberghs, G. (2000) Linear Mixed Models for Longitudinal Data. Springer, New York, NY.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19  | data(heart)
# Many-to-one comparisons of groups per time point
# taking the third group ("control") as reference
Mix <- SimLongiMix(data=heart, response="heartrate", group="drug",
                   time="time", id="person", rand=list("1|id", "time|id"), 
                   direction="gpt", type="Dunnett", base=3)
Mix$Results
# The simplest model was chosen:
Mix$BestMod
# Kenward-Roger-approximated denominator degrees of freedom:
Mix$DF
# A graphical display of simultaneous confidence intervals:
PlotCI(Mix)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.