data("psdata")
data("psdata_bin_prospective_fp")
data("psdata_bin_retrospective_fp")
ps.formula<-trt~cov1+cov2+cov3+cov4+cov5+cov6
msstat <- SumStat_SW(ps.formula = ps.formula, trtgrp = "2",
data = psdata_bin_prospective_fp,
weight=c("IPW","overlap","treated","entropy","matching"),
survey.indicator = TRUE, svywtname = "survey_weight",
survey.design = "Prospective")
plot(msstat, type="hist")
plot(msstat, type="balance", weighted.var=TRUE, threshold=0.1, metric="ASD")
Run the code above in your browser using DataLab