Skip to contents

Fits a weighted cox regression model using an inverse probability of treatment weighting approach

Usage

outcomeModelWeighted(
  ps,
  calculateWeights = TRUE,
  weightsType = "ATE",
  useStabilizedWeights = TRUE,
  truncationLevels
)

Arguments

ps

A dataframe wiht propensity scores as generated from createPs.

calculateWeights

Should weights be calculated?

weightsType

The type of weights for the balancing of covariates. Should be either 'ATE' or 'ATT'

useStabilizedWeights

Should stabilized weights be used?

truncationLevels

The level of truncation expressed in percentiles of the propensity score.

Value

A weighted cox regression model.