Creates Inverse Probability Weights
createIPW.Rd
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.