Convert logistic regression model to sql code...
createLrSql(models, modelNames, covariateConstructionName = "prediction",
modelTable = "#model_table", analysisId = 111, e = environment(),
databaseOutput = NULL)
A trianed plp model.
A name used in the covariate function names (no spaces)
the name used for the create covariate function
The temporary table name storing the model details
The covariate analysis_id
The environment to output the covariate setting functions to
If you want to output to go inot a cohort table add the "database.schema.tablename" here
This function is used to create custom covariates for a logistic regression model (currently only supports, demographics/conditions/drug/procedures/observations and measurement concepts)