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?
xtprobit with time invariant dependent variableHey, I have a sample of start-ups and want to check if the probability of an Exit (IPO or M&A) …
Help with interpretation of marginsDear All, Will someone please kindly inform me if I am interpreting the following Average Adjusted …
Using frequency weights on graph bar to produce weighted averages.Hello. I am working with a dataset that has the number of births and number of preterm births in dif…
Dropping duplicates randomlyHi I'd like to drop duplicates randomly instead of just the first duplicate observation. A snapsho…
extracting data from numbersDear Statalists, I have an excel file with dates like 29.02.1980, 30.03.1980 and etc... I have appen…
Subscribe to:
Post Comments (Atom)
0 Response to How to create a balance plot after weighting manually?
Post a Comment