QRP
 
Loading...
Searching...
No Matches
ms_apply_pregnancywashout.sas File Reference

This macro applies incidence washout based on pregnancy outcome. More...

Detailed Description

This macro applies incidence washout based on pregnancy outcome.

  • Create table of all combinations of outcome/competing outcome/washout days.
  • Collapse outcomes with duplicate incidence days values into a single reference group.
  • Expand out all combinations of outcome/competing outcome/incidence days.
  • Collapse competing outcomes into groups that share the same washout value.
  • Loop through each outcome/competing outcome/washout days combination.
    • Merge outcomes by competing outcome, keep non-incidence outcomes where competing outcome date overlaps outcome date/washdays.
  • Combine all temporary washout files with identified non-incident outcomes.
  • Deduplicate washout outcomes that could be duplicates due to multiple competing outcomes.
  • Remove non-incidence outcomes from pregnancy outcomes dataset.
Program inputs
  • &PREGNANCYMETA. (Dataset for Type 4 analysis containing pregnancy outcome metadata.)
  • work._temppregoutcomes (Dataset containing deduplicated pregnancy outcome per patid/adate.)
Program outputs
  • work._temppregoutcomes (Dataset containing incident pregnancy outcome by patid/adate.)

Usage

%ms_apply_pregnancywashout();
Parameters
None.

SAS Macros Dependencies

None.

Author
Sentinel Coordinating Center (info@.nosp@m.sent.nosp@m.inels.nosp@m.yste.nosp@m.m.org)