prop_scr_cloud {beastt} | R Documentation |
Propensity Score Cloud Plot
Description
Propensity Score Cloud Plot
Usage
prop_scr_cloud(x, trimmed_prop_scr = NULL)
Arguments
x |
A |
trimmed_prop_scr |
A trimmed |
Value
ggplot object
Examples
library(dplyr)
ps_obj <- calc_prop_scr(internal_df = filter(int_norm_df, trt == 0),
external_df = ex_norm_df,
id_col = subjid,
model = ~ cov1 + cov2 + cov3 + cov4)
ps_obj_trimmed <- trim_ps(ps_obj, low = 0.1, high = 0.6)
# Plotting the Propensity Scores
prop_scr_cloud(ps_obj, trimmed_prop_scr = ps_obj_trimmed)
[Package beastt version 0.0.3 Index]