Description Usage Format References Examples
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.
1 | data("simulated_data")
|
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
http://blog.stata.com/2014/07/18/how-to-simulate-multilevellongitudinal-data/
1 2 3 4 5 | 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")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.