tidy.prop_scr | R Documentation |
Tidy a(n) prop_scr object
## S3 method for class 'prop_scr'
tidy(x, ...)
x |
a |
... |
Unused, included for generic consistency only. |
A tidy tibble::tibble()
summarizing the results of the propensity
score weighting. The tibble will have the id column of the external data,
an internal
column to indicate all the data is external, a ps
column
with the propensity scores and a weight
column with the inverse
probability weights
library(dplyr)
ps_obj <- calc_prop_scr(internal_df = filter(int_binary_df, trt == 0),
external_df = ex_binary_df,
id_col = subjid,
model = ~ cov1 + cov2 + cov3 + cov4)
tidy(ps_obj)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.