help for

indeplist-------------------------------------------------------------------------------

Title

indeplist-- Returns lists of independent variables from the active estimation command.

Syntax

indeplist[,equation(equation list)localconstantdropped]

Description

indeplistdisplays the names of the independent variables of the active estimation command. Separate list will be displayed if the estimation command contains multiple equations, unless theequationoption is specified. In that case only lists of independent variables from the equations specified in theequationoption will be displayed. By default the constant and all variables that were droped by Stata (due to multicolinearity) are not included in the list. This default can be overturned by specifying the theconstantand/or thedroppedoption respectively.

Options

equation(equation list)Specifies the equations from which the independent variables will be displayed. The equation name needs to be enclosed by quotation marks if the equation name contains spaces.

localSpecifies that the lists of independent variables are stored in locals within the calling program's space. The locals are caled Xeqname, whereeqnameis the name of the equation with the spaces removed.indeplistwill now also make a local calledlocnamesthat contains the names of the locals made byindeplist, except the locallocnamesitself. This option is primarily useful in combination withforeach.

constantSpecifies that the constant is also treated as an independent variable and returned in the lists of independent variables. If this option is not specified the constant (_cons) will be removed from the lists of independent variables.

droppedSpecifies that all variables that were dropped by Stata due to multicolinearity are still included in the list of variables.

Saved results

r(Xeqname)Contains the list of independent variables for equationeqname. Spaces are removed fromeqnameif the equation name constains spaces.

Example

. mlogit rep78 price mpg. indeplist, eq(5) local. di r(X5). di "`X5'"

AuthorMaarten L. Buis Vrije Universiteit Amsterdam Department of Social Research Methodology m.buis@fsw.vu.nl

Also seeOnline:

estimatesforeach