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?
Initial condition/sample selection problem in duration model?Hi everyone, I have some general questions about duration model and its implementation on Stata. (1…
[HELP] Creating new variables by splitting another variableHello Statalist-- I have an appended dataset that has a variable named 'filename' which tracks the …
Geodist commandDear Statalist experts I want to use the command geodist to calculate the distance from each indivi…
generate Table with Percentiles, Panel DataHello, I am working with a panel data set containing 550 district variables over 6 years. One obser…
help with XtsccHi, i am currently completing regression analysis as part of my dissertation, looking at the effects…
Subscribe to:
Post Comments (Atom)
0 Response to How to create a balance plot after weighting manually?
Post a Comment