outcomeModelWeighted | R Documentation |
Fits a weighted cox regression model using an inverse probability of treatment weighting approach
outcomeModelWeighted( ps, calculateWeights = TRUE, weightsType = "ATE", useStabilizedWeights = TRUE, truncationLevels )
ps |
A dataframe wiht propensity scores as generated from
|
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. |
A weighted cox regression model.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.