Dear all,
I am having a difficult time correcting an x-axis scale for marginsplot command.
I want to see how x1 changes based on x2 values.
Here is an essence of what I did:
xtreg y on x1 x2 x1*x2, fe
sum x2, det
to get the statistics of x2
at following distribution:
5% -.77
10% -.65
25% -.52
50% -.43
75% -.31
90% -.28
95%. -.12
margins, dydx(x1) at(x2=-.77) at(x2=-.65) at(x2=-.52) at(x2=-.43) at(x2=-.31) at(x2=-.28) at(x2=-.12)
I tried different codes to fit in the scale:
marginsplot, recast(line) recastci(rarea)
=> I would get really badly scaled axis with labels "variablename at = value"
marginsplot, recast(line) recastci(rarea) xlab(-1(0.2)0)
marginsplot, recast(line) recastci(rarea) xlab(-.77 "5" -.65 "10" -.59 "25" -.48 "59" -.36 "75" -.28 "90" -.24 "95")
=> When I tried to correct the label by giving a specific value, I also get a badly scaled xaxis, where all values will be on the left.
(attachment two)
Could someone provide some help on this scaling issue.
Best,
Related Posts with Margins Plot Scale Problem (on x-axis)
What effects do these parameters capture? Fuzzy RDDDear all, I am a fresh-man Master student and I am leaning who to conduct a regression discontinuit…
BMI in BHPS, OLS and Probit modelI am using the British Household Panel Survey Data in order to find the effect of BMI on wages. I wi…
Nearest Neighbor Matching Grouplogistic Treat xvar, iterate (100) predict pscore gmatch pscore, cal(0.1) From the above, I can eas…
Parallel Trend Graph and Staggered DIDHi all, I seek your advise about parallel trend graph in a staggered diff-in-diff setting. I am exa…
Data generation to simulate Wooldridge's (2005) approach for a dynamic non-linear modelI want to simulate Wooldridge's (2005) approach to estimate a dynamic non-linear model. I have quest…
Subscribe to:
Post Comments (Atom)
0 Response to Margins Plot Scale Problem (on x-axis)
Post a Comment