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

This macro creates enrollment spans for each scenario in CIDA. More...

Detailed Description

This macro creates enrollment spans for each scenario in CIDA.

  • Compute enrollment parameters, enrollment gap, compound name for suffix of elig file, death, and demographic criteria (sex values, race values, hispanic values).
  • Create enrollment spans.
  • Merge with demographic data.
  • Create infant only enrollment.
  • For cohorts restricted to linked mothers, remove mothers with children who do not meet the enrollment criteria.
  • Merge with death data.
  • Create flag variable enrend_death with the following values:
    • O = No death or death after enrollment end.
    • B = Enrollment end date equals death date and enrollment episode is censored at death date.
    • C = Enrollment episode censored at death date, but original enrollment episode continues past death date.
  • Determine non-missing birth date/sex and mutliple demographic entries.
Program inputs
  • indata.&DEMTABLE. (Dataset with demographic data.)
  • indata.&ENRTABLE. (Dataset with enrollment data.)
  • indata.&MILTABLE. (Dataset with mother-infant linkage data.)
  • work.cohortfile_for_enr (Dataset where same basecohort are grouped and assess order to process them correctly.)
  • worktemp.deathextract (Dataset with death data.)
Program outputs
  • worktemp.demogs (Dataset including START and END dates to calculate age for each observation and a text string defining the age stratifications.)
  • worktemp.demogsmissing (Dataset including a START date and a constant date parameter to calculate age for each observation and a text string.)
  • worktemp.multidemogs (Dataset containing mutliple demographic entries.)
  • worktemp._keep (Dataset containing demographic and enrollment flags for attrition.)
  • worktemp.dem_infant_enr_&ENR. (Dataset containing infant only enrollment.)
  • worktemp.dem_infant_enr_&RECONTYP.&ENROLGAP. (Dataset containing infant only enrollment spans.)
  • worktemp.enr_&ENR. (Dataset containing enrollment.)

Usage

%ms_create_enrollment_spans();
Parameters
None.

SAS Macros Dependencies

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