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

This macro creates the exposure episodes. More...

Detailed Description

This macro creates the exposure episodes.

  • For type 1:
    • Create episodes.
    • Trick ADate and ExpireDt to mimic an episode and type 2 structure.
  • For other types, except type 3:
    • EpisodeEndDt values are assigned to adjust for maximum episode duration prior to PtsMasterlist merge. If maximum episode duration isn't specified, enrollment end is used.
    • Create claim based episodes (as-treated).
      • Claim based episodes are built using all claims with the exception of when MINCUMDOSE/MINCFDD/MAXCFDD is specified, in which case build episodes starting from claims that meet _pov1.
    • Summarize episode level details.
    • For type 2:
      • When minimum cumulative dose or min/max current filled daily dose specified, set EpisodeStartDt to IncidenceClaimDate and remove all claims where IncidentClaimDate not set.
    • Adjust EpisodeEndDt for episode extension that overlap the next episode.
    • For type 2 and 5:
      • Truncate (potentially extended using episode extension) episodes with FUT.
  • Assess cumulative dose per episode and extract ADate (for censoring) when MaxCumDose is reached.
Program inputs
  • work._groupindex&COHORTID. (Dataset containing all potential index dates.)
  • work._groupwashfortrunk (Dataset with incidence claims that should be outside the washout period.)
  • work._pov1 (Dataset with all potential index dates.)
  • work._pov1&COHORTID. (Dataset with all potential index dates.)
Program outputs
  • work._fut&COHORTID. (Dataset containing truncatured episodes.)
  • work._pov4 (Dataset with exposure episodes.)
  • work._pov4&COHORTID. (Dataset with exposure episodes.)

Usage

%ms_createpov4(COHORTID=&n.);
Parameters
[in]COHORTIDIdentifier for the cohort being processed (primary, secondary).

SAS Macros Dependencies

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