I have generated overlap weights on R using weightit package, I generally fo regression using weights directly.
But I want to extract the matched data according to overlap weights for demographic analyisis, can that be done?
w.out <- weightit(
COXMAZE ~ AGE + FEMALE + Congestive_Heart_Failure + Cardiac_Arrhythmia + Pul_HTN +
Prior_TIA + Known_CAD + elixsum,
data = mydata_new,
method = "ps",
estimand = "ATO"
)
summary(w.out)
mydata_new <- mydata_new %>%
mutate(weights = w.out$weights)
I need a way to extract matched data and use it as sperate dataset.
New contributor
ROHIT GANDUBOINA is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.