help regeq

Title

regeq -- Postestimation command to regress, logit, logistic, stcox:
generate macro for fitted equation

Syntax

regeq [, format(string)]

Description

Generate global macros, with estimated coefficents and estimated equation.
$b1,... ,$bk: the k estimated coeffcients
$eq : estimated equation with estimates
$feq : formula for the estimated equation with # instead of $

Examples

. xi:regress mpg weight i.foreign i.rep78
. regeq, format(%12.8f)

. twoway ///
. (function $b1 * x + $b4 + $b7,range(weight) lcolor(red)) ///
. (function $b1 * x + $b5 + $b7,range(weight) lcolor(blue)) ///
. (function $b1 * x + $b2 + $b4 + $b7,range(weight) lcolor(red)) ///
. (function $b1 * x + $b2 + $b5 + $b7,range(weight) lcolor(blue) ) ///
. ,legend( label(1 "domestic 3 repairs") label(2 "domestic 4 repairs") ///
. label(3 "foreign 3 repairs") label(4 "foreign 4 repairs") )

Authors

Morten Frydenberg
School of Public Health, Aarhus University, Denmark
Email: morten@biostat.au.dk