Create a parameter object for the function fitOutcomeModel

createFitOutcomeModelArgs(
  modelType = "logistic",
  stratified = FALSE,
  useCovariates = FALSE,
  inversePtWeighting = FALSE,
  interactionCovariateIds = c(),
  excludeCovariateIds = c(),
  includeCovariateIds = c(),
  prior = createPrior("laplace", useCrossValidation = TRUE),
  control = createControl(cvType = "auto", seed = 1, startingVariance = 0.01, tolerance
    = 2e-07, cvRepetitions = 10, noiseLevel = "quiet")
)

Arguments

modelType

The type of outcome model that will be used. Possible values are"logistic", "poisson", or "cox".

stratified

Should the regression be conditioned on the strata defined in thepopulation object (e.g. by matching or stratifying on propensityscores)?

useCovariates

Whether to use the covariate matrix in the cohortMethodDataobject in the outcome model.

inversePtWeighting

Use inverse probability of treatment weigting?

interactionCovariateIds

An optional vector of covariate IDs to use to estimate interactionswith the main treatment effect.

excludeCovariateIds

Exclude these covariates from the outcome model.

includeCovariateIds

Include only these covariates in the outcome model.

prior

The prior used to fit the model. See createPriorfor details.

control

The control object used to control the cross-validation used todetermine the hyperparameters of the prior (if applicable). SeecreateControl for details.

Details

Create an object defining the parameter values.