= 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: * '''`se`''' or '''`se(%format)`''' for standard errors * '''`t`''' or '''`t(%format)`''' for t- or z-statistics * '''`p`''' or '''`p(%format)`''' for p-values ---- == See also == [[https://www.stata.com/manuals/rregresspostestimation.pdf|Stata manual for logistic post-estimation]] ---- CategoryRicottone