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"?
Graph Restrict AxesHi all, Recently switched to STATA from RStudio and encountering a rather mundane issue with graphi…
Convert variable to percentileHow can I convert values of a variable to percentiles 0-100? I have tried pctile but it does not gi…
interaction termHello, I want to apply Burrill 2007 method for interaction term, to avoid multicollinearity. Burril…
studentI am conducting a meta analysis of prevalence studies in Stata. Stata displays proportions in table …
Calculating change using last nonmissing valueHello I am trying to calculate the change in dividend for many firms over time, based on daily stock…
Subscribe to:
Post Comments (Atom)
0 Response to Does anyone know a clever way to add R2 to "graph twoway lfit"?
Post a Comment