Description Usage Arguments Value
View source: R/01_prepare_data.R
.. content for details ..
1 2 | add_all_weights(data, A_name, levels, ps_prefix1 = "ps1_",
ps_prefix2 = "ps2_")
|
data |
data_frame |
levels |
Character vector holding three elements corresponding to levels in |
ps_prefix1 |
Prefix for the PS estimated in the entire cohort. |
ps_prefix2 |
Prefix for the PS estimated in the trimmed cohort. |
data_frame containing IPTW, MW, and OW estimated in the entire cohort as well as the trimmed cohort.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.