Using the Stata graph twoway command, I have created a scatterplot with a quadratic best fit line, using the qfit command. How can I get the equation of the best fit line?
Example:
graph tw (scatter y x) (qfit y x)
|
|
Your graph, using auto as an example.
regress y on x and x^2 and get predicted values (see
The output from
|
|||
|
|
|
|
|||
|
|