Learn R Programming

collin (version 0.0.4)

mempm25: Working memory test scores and air pollution.

Description

Simulated data for repeated measures of working memory test scores and residential PM\(_{2.5}\) levels in 2,221 children.

Usage

mempm25

Arguments

Format

A data frame with 8,884 rows and 17 variables:

id

individual identifier

session

test session identifier

school

chool identifier

sex

sex of individual

agecen

age of individual, centered at the mean, in years

educ

maternal education

resses

residential neighborhood socioeconomic status indicator

pm25y0

estimated average concentration of PM\(_{2.5}\) (\(\mu\)g/m\(^3\)) at residence address during pregnancy

pm25y1

estimated average concentration of PM\(_{2.5}\) (\(\mu\)g/m\(^3\)) at residence address during year 1

pm25y2

estimated average concentration of PM\(_{2.5}\) (\(\mu\)g/m\(^3\)) at residence address during year 2

pm25y3

estimated average concentration of PM\(_{2.5}\) (\(\mu\)g/m\(^3\)) at residence address during year 3

pm25y4

estimated average concentration of PM\(_{2.5}\) (\(\mu\)g/m\(^3\)) at residence address during year 4

pm25y5

estimated average concentration of PM\(_{2.5}\) (\(\mu\)g/m\(^3\)) at residence address during year 5

pm25y6

estimated average concentration of PM\(_{2.5}\) (\(\mu\)g/m\(^3\)) at residence address during year 6

pm25y7

estimated average concentration of PM\(_{2.5}\) (\(\mu\)g/m\(^3\)) at residence address during year 7

wei

weight of the observation

wmemo

working memory test score

Details

This is a synthetic dataset generated with the synthpop package, based on a cohort study of children examining the association between PM\(_{2.5}\) concentrations during the prenatal period and the first seven postnatal years on cognitive tests taken at age 8 (see `References').

References

Rivas I et al. Association between Early Life Exposure to Air Pollution and Working Memory and Attention. Environmental Health Perspectives. 2019;127(5):57002. doi: 10.1289/EHP3169.

Examples

Run this code
 # correlation of air pollution levels between two different periods:
 pm25yearly <- mempm25[, grep("pm25", names(mempm25))]
 print(cor(pm25yearly, use = "complete.obs"), digits = 2)

Run the code above in your browser using DataLab