CohortMethod v3.1.0 has just been released!
The most important change is that the addExposureDaysToStart
and addExposureDaysToEnd
arguments of the createStudyPopulation
function have been deprecated (meaning you can still use them, but if you do you get a warning). Instead, you should use the new arguments called startAnchor
and endAnchor
.
So where previously you might have:
studyPop <- createStudyPopulation(cohortMethodData = cohortMethodData,
outcomeId = 3,
riskWindowStart = 0,
addExposureDaysToStart = FALSE,
riskWindowEnd = 30,
addExposureDaysToEnd = TRUE)
you will now have:
studyPop <- createStudyPopulation(cohortMethodData = cohortMethodData,
outcomeId = 3,
riskWindowStart = 0,
startAnchor = "cohort start",
riskWindowEnd = 30,
endAnchor = "cohort end")
The new interface is more in line with the ATLAS Estimation tool, and is expected to be less confusing.
All old code should still run with the new interface.