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?
Please help insert a column of year having max (ratio)Hello, I need your help. I have a panel data having corporate code, year and ratios. I would like t…
standardized difference (SD) Burgstahler & DichevDear all, I want to compute the standardized difference statistic using histograms for panel data s…
Verify that differences across countries are not driven by sample sizeI am analyzing data from a survey experiment in three countries. The sample size differs across coun…
Simplifying loop in mataDear all, I'm running iteration in Mata until the difference between the sum of previous weight mat…
Survival analysis: First year the earlier 1 and Last year the later 1I need your help for survival study. Background: I have corporate panel data set as Corporate codes…
Subscribe to:
Post Comments (Atom)
0 Response to How to create a balance plot after weighting manually?
Post a Comment