This data was simulated to mimic data from a longitudinal cohort study following mothers and their child from birth until approximately 4 years of age. It contains 2400 observations of 200 mother-child pairs. Children's BMI and head circumference was measured repeatedly and their age in months was recorded at each measurement. Furthermore, the data contain several baseline variables with information on the mothers' demographics and socioeconomic status.
simLongsimWide
simLong
: A data frame in long format with 2400 rows and 16 variables
simWide
: A data frame in wide format with 200 rows and 81 variables
(in simLong
and simWide
)
gestational age at birth (in weeks)
ethnicity (binary: European vs. other)
age of the mother at intake
height of the mother (in cm)
number of times the mother has given birth (binary: 0 vs. >=1)
smoking status of the mother during pregnancy (3 ordered categories: never smoked during pregnancy, smoked until pregnancy was known, continued smoking in pregnancy)
educational level of the mother (3 ordered categories: low, mid, high)
marital status (3 categories)
subject identifier
(only in simLong
)
measurement occasion/visit (by design, children should be measured at/around 1, 2, 3, 4, 7, 11, 15, 20, 26, 32, 40 and 50 months of age)
child age at measurement time in months
child BMI
child head circumference in cm
child height in cm
child weight in gram
sleeping behavior of the child (3 ordered categories)
(only in simWide
)
child age at the repeated measurements in months
repeated measurements of child BMI
repeated measurements of child head circumference in cm
repeated measurements of child height in cm
repeated measurements of child weight in gram
repeated measurements of child sleep behavior (3 ordered categories)
# NOT RUN {
summary(simLong)
summary(simWide)
# }
Run the code above in your browser using DataLab