Hi I am trying to graph several cubic functions on one graph in stata (or even one at a time) based on my estimated regression. My regression is in the form y = x + x^2 + x^3 + z + z^2 + z^3 + v + v^2 + v^3 + w + w^2 + w^3 + binary variables.
I have looked at examples such as: http://www.stata.com/statalist/archi.../msg00766.html, which is a question from the old help form. The example they use is:
sysuse auto, clear reg mpg c.weight##c.weight##c.weight predict mhat sc mpg weight||line mhat weight, sort This works when estimating one cubic but I want to do 4 at a time and graph them individually or collectively with error bars. I don't need to plot the residuals as I have 20,000 + data points
my data is in panel form.
To summarize how do you graph cubics from a regression estimation against the y value.
Any help is much appreciated. If you need any more specific information let me know as I tend to miss important information occasionally.
Cheers,
Daniel
I have looked at examples such as: http://www.stata.com/statalist/archi.../msg00766.html, which is a question from the old help form. The example they use is:
sysuse auto, clear reg mpg c.weight##c.weight##c.weight predict mhat sc mpg weight||line mhat weight, sort This works when estimating one cubic but I want to do 4 at a time and graph them individually or collectively with error bars. I don't need to plot the residuals as I have 20,000 + data points
my data is in panel form.
To summarize how do you graph cubics from a regression estimation against the y value.
Any help is much appreciated. If you need any more specific information let me know as I tend to miss important information occasionally.
Cheers,
Daniel
Comment