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 ("woc_*").

Usage

removeExclusions(x, dictionary)

Arguments

x

Data frame output from extractVars().

Value

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


explodecomputer/alspac documentation built on June 12, 2025, 2:02 p.m.