Stata Regress

The regress command runs a regression model.


Usage

regress dependent independent

Factor Variables

To regress on the levels of a variable rather than its numeric value, prefix the variable name with i..

To regress on an interaction of variables, delimit the two variable names with #. Or use ## to indicate a full factorial (both variables and the interactions).

To create an interaction with a continuous variable, prefix them with c..


Estimates

To store the estimation results, try:

estimates store example

To display the estimation results, try:

estimates table example
estimates table example, b(%10.3f) star

The star option shows significance.

While coefficients are always displayed by estimates table, they can optionally be formatted with the b(%format) option (as above). There are several optional statistics available as well:


See also

Stata manual for logistic post-estimation


CategoryRicottone

Stata/Regress (last edited 2023-06-07 21:02:53 by DominicRicottone)