removeExclusions: Remove data for participants who have withdrawn consent.

View source: R/exclusions.r

removeExclusionsR Documentation

Remove data for participants who have withdrawn consent.

Description

The exclusion lists for mothers and children are stored in .do files in the R: drive. This function obtains ALNs to exclude from these files and then sets the variable values to missing for the appropriate participants and adds indicator variables for these participants ("withdrawn_consent_*").

Usage

removeExclusions(x)

Arguments

x

Data frame output from extractVars().

Value

The input data frame but with appropriate values set to missing with additional variables ("withdrawn_consent_*") identifying participants who have withdrawn consent.


explodecomputer/alspac documentation built on Feb. 16, 2024, 4:18 p.m.