Description Usage Arguments Details Value Methods (by generic) References Examples
Five different matching weights based on an exposure and propensity score.
1 2 3 4 5 6 | psweights(.data, exposure, ps)
psweights_(.data, exposure_col, ps_col)
## S3 method for class 'pstools_psweights'
plot(x, ...)
|
.data |
a |
exposure |
the bare name for the column within |
ps |
the propensity scores. Expected values between 0 and 1. |
exposure_col |
a character string |
ps_col |
a character string |
x |
a |
... |
ignored |
Let p denote the propensity score for a subject. The five weights are as follows.
Exposed | Non-Exposed | ||
Average causal effect in study population | psw_IPW | 1/p | 1/(1-p) |
Average causal effect in exposed | psw_ACE_Exposed | 1 | p/(1-p) |
Average causal effect in unexposed | psw_ACE_Unexposed | (1-p)/p | 1 |
Average causes effect in population for which sample is most informative | psw_ACE_MostInfo | 1-p | p |
Average causal effect in mathcin weight population | psw_ACE_MWP | min(p,(1-p))/p | min(p,(1-p))/(1-p) |
a data.frame
with the exposure and ps vectors returned along
with five different weights. See Details for information on the five
weights.
plot
: Mirrored histograms
Li, Liang, and Tom Greene. "A weighting analogue to pair matching in propensity score analysis." The international journal of biostatistics 9.2 (2013): 215-234.
1 2 3 4 5 6 7 8 9 10 11 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.