Is there a good way to fully replace the labels that marginsplot produces? I have a regression with a transformed regressor, and I want the labels that refer back to the original values. Consider something like
Now I want the real price tags on my x-axis... or on axis(2) if I can add it... or on the top axis. Is that doable? In the very worst case, I can create the effect that I need with a long series of added text() that I can produce. But that looks like a somewhat inferior solution, given that the ugly labels are still going to be stuck on the x-axis.
Code:
sysuse auto, clear gen inv_price = 1/price logit foreign inv_price cap noi margins, at( price = (2000 5000 10000) ) margins, at( inv_price = (`=1/2000' `=1/5000' `=1/10000') ) marginsplot
Comment