I am using the below code to fit a linear regression line, Private_Hospital is a binary variable
graph twoway lfit Private_Hospital_1 Differential_Distance
I would like to show the R2 on the graph if possible, does anyone know how to do this?
i have looked at the help file and no luck so far
Related Posts with Does anyone know a clever way to add R2 to "graph twoway lfit"?
Iterations in Poission RegressionI was running a code for negative binomial and poisson regression and the results were not convergin…
Understanding/Reading Regression Output With Categorical VariablesHello; I have experience with regression, I just haven't done it in a while and am SUPER confused a…
Collapse all values of one string variable to one cell per groupSay I have the following data set: id var1 1 a 1 b 1 c 2 a 2 d 3 a Is there a way to collapse this…
About structural equation modellingHi, I am a doctoral student preparing a thesis on how individual values, beliefs, and attitudes affe…
How to overlay distributions using a pie chart using StataMP 17? (plot distributions on the same graph)Dear Statalist, I hope you are well. Please, I need help on how to overlay distributions using a p…
Subscribe to:
Post Comments (Atom)
0 Response to Does anyone know a clever way to add R2 to "graph twoway lfit"?
Post a Comment