Fit a predictive model
fitGLMModel(
population,
plpData,
modelType = "logistic",
excludeCovariateIds = c(),
includeCovariateIds = c(),
prior = Cyclops::createPrior("laplace", useCrossValidation = TRUE),
control = Cyclops::createControl(cvType = "auto", fold = 3, startingVariance = 0.01,
lowerLimit = 0.01, upperLimit = 20, tolerance = 2e-06, cvRepetitions = 1,
selectorType = "byPid", noiseLevel = "silent", threads = -1, maxIterations = 3000)
)A population object generated by createStudyPopulation, potentially filtered by other functions.
An object of type plpData as generated using
getPlpData.
The type of outcome model that will be used. Possible values are "logistic", "poisson", or "cox".
Exclude these covariates from the outcome model.
Include only these covariates in the outcome model.
The prior used to fit the model. See
createPrior for details.
The control object used to control the cross-validation used to
determine the hyperparameters of the prior (if applicable). See
createControl for details.