Description Usage Arguments Value
View source: R/01_prepare_data.R
Takes a data_frame and
1 2 | prepare_data(data, formula1, formula2, family, ps_prefix1, ps_prefix2,
df_trim_thres, A_name, levels)
|
data |
data_frame |
formula1 |
PS model formula for the entire cohort estimation. |
formula2 |
PS model formula for the trimmed cohort estimation. |
family |
PS model family |
ps_prefix1 |
PS variable prefix for the entire cohort estimation |
ps_prefix2 |
PS variable prefix for the trimmed cohort estimation |
df_trim_thres |
data_frame with columns |
A_name |
Treatment indicator name in |
levels |
Character vector holding three elements corresponding to levels in |
ps0_name |
Name of the column in |
ps1_name |
Name of the column in |
ps2_name |
Name of the column in |
nested data_frame containing
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.