simDEC_data {MonoInc} | R Documentation |
Simulated Decreasing Data
Description
This data was simulated to be monotonically decreasing. There are 500 individuals, with a random number of data points. Each individual has a two-level random effect (intercept and slope), a common intercept, and a random error term. The ages range from 0 to 10 years, which is given in months.
Usage
data("simDEC_data")
Format
A data frame with 5505 observations on the following 3 variables.
id
a numeric vector of the identification number of each individual
age
a numeric vector of the age in months
y
a numeric vector of measurements
References
http://blog.stata.com/2014/07/18/how-to-simulate-multilevellongitudinal-data/
Examples
data(simDEC_data)
library(sitar)
mplot(x=age, y=y, id=id, data=simDEC_data, col=id, main="Individual Measurement Curves")
[Package MonoInc version 1.1 Index]