I created weights for a difference-in-difference model and want to compare the correlations of the covariates with the treatment before and after weighting in a balance plot. Now, I did not use teffects, which is why tebalance does not work.
How do I create a graph which shows the correlation coefficients of t1 (treatment) with all covariates (weighted vs non-weighted) in one balance plot? Maybe by using coefplot?
As an example:
t1 being the treatment variable
bcoronajob* being the control variables which are used for weighting
pwcorr t1 bcoronajob1w2 bcoronajob2w2 bcoronajob3w2 , star(0.1)
pwcorr t1 bcoronajob1w2 bcoronajob2w2 bcoronajob3w2 [pweight=w_t1], star(0.1) // showing correlation coefficients, which I want to display in a graph
Thanks in advance!
Related Posts with How to create a balance plot after weighting manually?
How can I specify duplicated cases between two groups? id DOB year 1 901020 2014 2 981020 2014 3 841028 2014 4 790707 2014 5 800301 2014 6 9…
Margins after cmroprobitHello I have a dataset which looks as follows (the below is just an excerpt): caseid 7 7 7 7 8 8 …
Reshaping data with multiple obs per idDear Stata users, I have the following panel data set covering all 50 states over 13 years. Code:…
One table of means sorted by groups of countriesHi, I am working with panel data of over 3500 observations. I want to create a table that shows th…
from Stata IC to SEHi, currently my Stata version is IC. But it seems IC cannot deal with my large data set. When I run…
Subscribe to:
Post Comments (Atom)
0 Response to How to create a balance plot after weighting manually?
Post a Comment