Skip to contents

Calcuates inverse probability weights based on the propensity score

Usage

createIPW(
  ps,
  weightsType = "ATE",
  useStabilizedWeights = TRUE,
  truncationLevels = c(0.01, 0.99)
)

Arguments

ps

A propensity score data frame as created from createPs

weightsType

The type of the weights to be used. Allowed options are 'ATE' for average treatment effect and 'ATT' for average treatment effect on the treated weights

useStabilizedWeights

Should stabilized weights be used?

truncationLevels

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

Value

The ps data frame provided as input along with a weights column