Hi everyone,
I'm new to Stata so please forgive me if I get any of my terms wrong. I've generated qfit plots to visualise the relationship between my dependent and independent variables (two-way qfit y x) but now i want to determine the co-ordinates of the vertex. I can do this manually by regressing the variables (regress y x x^2) to generate coefficients and then calculate the x value for the vertex using '-linear coefficient/(2xquadratic coefficient)' and lastly calculate the y value by inserting the x value back into the regression derived quadratic equations. However, i have 20 qfits so this will take hours. Is there any shortcut for this in stata?
Many thanks
Jay
Edit- I'm using small stata v14.2
I'm new to Stata so please forgive me if I get any of my terms wrong. I've generated qfit plots to visualise the relationship between my dependent and independent variables (two-way qfit y x) but now i want to determine the co-ordinates of the vertex. I can do this manually by regressing the variables (regress y x x^2) to generate coefficients and then calculate the x value for the vertex using '-linear coefficient/(2xquadratic coefficient)' and lastly calculate the y value by inserting the x value back into the regression derived quadratic equations. However, i have 20 qfits so this will take hours. Is there any shortcut for this in stata?
Many thanks
Jay
Edit- I'm using small stata v14.2
Comment