Description Format Source Examples
The Weights
data frame has 399 rows and 5 columns.
This data frame contains the following columns:
a numeric vector
a factor with levels 1
to 21
a factor with levels
CONT
(continuous repetitions and weights),
RI
(repetitions increasing) and
WI
(weights increasing)
an ordered factor indicating the subject on which the measurement is made
a numeric vector indicating the time of the measurement
Littel, R. C., Milliken, G. A., Stroup, W. W., and Wolfinger, R. D. (1996), SAS System for Mixed Models, SAS Institute (Data Set 3.2(a)).
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | str(Weights)
if (require("lme4", quietly = TRUE, character = TRUE)) {
options(contrasts = c(unordered = "contr.SAS", ordered = "contr.poly"))
## compare with output 3.1, p. 91
print(fm1Weight <- lmer(strength ~ Program * Time + (1|Subj), Weights))
print(anova(fm1Weight))
print(fm2Weight <- lmer(strength ~ Program * Time + (Time|Subj), Weights))
print(anova(fm1Weight, fm2Weight))
## Not run:
intervals(fm2Weight)
fm3Weight <- update(fm2Weight, correlation = corAR1())
anova(fm2Weight, fm3Weight)
fm4Weight <- update(fm3Weight, strength ~ Program * (Time + I(Time^2)),
random = ~Time|Subj)
summary(fm4Weight)
anova(fm4Weight)
intervals(fm4Weight)
## End(Not run)
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.