Skip to contents

Fits propensity score models where the population is stratified based on prediction model for a certain outcome of interest and estimation is focused on a different outcome

Usage

fitPsModelSwitch(
  predictOutcome,
  compareOutcome,
  initialPopulation,
  analysisSettings,
  getDataSettings,
  populationSettings,
  runSettings
)

Arguments

predictOutcome

The outcome of the prediction step

compareOutcome

The outcome of interest for the estimation step

initialPopulation

The initial population to be used for the estimation of the switched-outcome propensity scores.

analysisSettings

An R object of type analysisSettings created using the function createAnalysisSettings.

getDataSettings

An R object of type getDataSettings created using the function createGetDataSettings.

populationSettings

An R object of type populationSettings created using the function createPopulationSettings.

runSettings

An R object of type runSettings created using the function createRunSettings.