Create a parameter object for the function createStudyPopulation
createCreateStudyPopulationArgs( firstExposureOnly = FALSE, restrictToCommonPeriod = FALSE, washoutPeriod = 0, removeDuplicateSubjects = FALSE, removeSubjectsWithPriorOutcome = TRUE, priorOutcomeLookback = 99999, minDaysAtRisk = 1, riskWindowStart = 0, addExposureDaysToStart = NULL, startAnchor = "cohort start", riskWindowEnd = 0, addExposureDaysToEnd = NULL, endAnchor = "cohort end", censorAtNewRiskWindow = FALSE )
Should only the first exposure per subject be included? Notethat this is typically done in thecreateStudyPopulation function,
Restrict the analysis to the period when both exposures are observed?
The mininum required continuous observation time prior toindex date for a person to be included in the cohort.
Remove subjects that are in both the target and comparatorcohort? See details for allowed values.
Remove subjects that have the outcome prior to the riskwindow start?
How many days should we look back when identifying prioroutcomes?
The minimum required number of days at risk.
The start of the risk window (in days) relative to the startAnchor.
DEPRECATED: Add the length of exposure the start of the risk window?Use startAnchor instead.
The anchor point for the start of the risk window. Can be "cohort start"or "cohort end".
The end of the risk window (in days) relative to the endAnchor.
DEPRECATED: Add the length of exposure the risk window?Use endAnchor instead.
The anchor point for the end of the risk window. Can be "cohort start"or "cohort end".
If a subject is in multiple cohorts, should time-at-risk be censoredwhen the new time-at-risk starts to prevent overlap?
Create an object defining the parameter values.