When specifying the cohort covariateSettings previously you needed to specify the cohortTable and workSchema. But when running studies using strategus all settings are pre-specified and cohorts generated with CohortGenerator. I added the option of not specifying cohortTable and schema in createCohortCovariateSettings . Then at runtime it will look in the grandparent environment using parent.frame() for those variables in the databaseDetails.
I also moved predictGlm from the validation module to here and created a convenience function to create a model to be used by that function.
Necessary for upcoming study.
When specifying the cohort
covariateSettings
previously you needed to specify the cohortTable and workSchema. But when running studies using strategus all settings are pre-specified and cohorts generated withCohortGenerator
. I added the option of not specifying cohortTable and schema increateCohortCovariateSettings
. Then at runtime it will look in the grandparent environment usingparent.frame()
for those variables in thedatabaseDetails
.I also moved
predictGlm
from the validation module to here and created a convenience function to create a model to be used by that function.