Apply an existing logistic regression prediction model
createExistingModelSql(modelTable, modelNames, interceptTable, covariateTable,
type = "logistic", analysisId = 112, covariateSettings, asFunctions = F,
customCovariates = NULL, e = environment())
A dataframe or list of dataframes with columns: modelId, modelCovariateId, coefficientValue all doubles
A name used in the covariate function names (no spaces)
A dataframe or list of dataframes with the columns: modelId, interceptValue
A dataframe or list of dataframes with columns: modelCovariateId, covariateId (the mapping of covariate_id to standard covariates)
The type of model: logistic or linear/score
The covariate analysis_id (default 112)
The settings for the standard covariates (needs for temporal settings)
If T then return two functions
enables custome SQL to be used to create custom covariates
The environment to output the covariate setting functions to
This function is used to create custom covariates corresponding to existing models