Hi!
I there a way to insert a coefficient from the linear regression as legend in a graph? In this case, 0.0309 (rounded with two decimals) and 0.351... from the multivariate regression.


quietly regress Total_CO2 HGB
quietly eststo bivariate: margins, at(HGB=(60(20)200)) post
quietly regress Total_CO2 HGB AGE DATUM i.SEASON
quietly eststo multivariate: margins, at(HGB=(60(20)200)) post
coefplot bivariate multivariate, at ytitle(CO2) xtitle(HGB) ///
recast(line) lwidth(*2)

I there a way to insert a coefficient from the linear regression as legend in a graph? In this case, 0.0309 (rounded with two decimals) and 0.351... from the multivariate regression.
quietly regress Total_CO2 HGB
quietly eststo bivariate: margins, at(HGB=(60(20)200)) post
quietly regress Total_CO2 HGB AGE DATUM i.SEASON
quietly eststo multivariate: margins, at(HGB=(60(20)200)) post
coefplot bivariate multivariate, at ytitle(CO2) xtitle(HGB) ///
recast(line) lwidth(*2)
Comment