simulated_data {MonoInc} | R Documentation |
Simulated Data
Description
This data was simulated to imitate height growth of female children in electronic medical records. There are 500 individuals, with a random number of data points. Based on the CDC growth curve, 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("simulated_data")
Format
A data frame with 5673 observations on the following 3 variables.
nestid
a numeric vector of the identification number of each individual
age
a numeric vector of the age in months
height
a numeric vector of the height in centimeters
References
http://blog.stata.com/2014/07/18/how-to-simulate-multilevellongitudinal-data/
Examples
data(simulated_data)
library(sitar)
## plot each individual growth curve
mplot(x=age, y=height, id=nestid, data=simulated_data, col=nestid, main="Growth Curves")
[Package MonoInc version 1.1 Index]