Fits switched propensity score models
fitPsModelSwitch.Rd
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 functioncreateAnalysisSettings
.- getDataSettings
An R object of type
getDataSettings
created using the functioncreateGetDataSettings
.- populationSettings
An R object of type
populationSettings
created using the functioncreatePopulationSettings
.- runSettings
An R object of type
runSettings
created using the functioncreateRunSettings
.