Weights of 30 rats, measured weekly over 5 weeks.
A data frame with 30 observations on the following 7 variables:
y8
Weight on day 8.
y15
Weight on day 15.
y22
Weight on day 22.
y29
Weight on day 29.
y36
Weight on day 36.
cons
Constant(=1).
rat
Rat ID
The rats
dataset is one of the sample datasets provided with the multilevel-modelling software package MLwiN (Rasbash et al., 2009); see Browne (2012) and Gelfand (1990) for further details.
# NOT RUN {
data(rats, package = "R2MLwiN")
(mymodel <- runMLwiN(c(y8, y15, y22, y29, y36) ~ 1 + (1 | rat),
D = "Multivariate Normal", estoptions = list(EstM = 1),
data = rats))
# }
Run the code above in your browser using DataLab