xi [, prefix(string) noomit] : any_stata_command varlist_with_terms ...
where a term has the form
i.varname or I.varname
i.varname1*i.varname2 I.varname1*I.varname2
i.varname1*varname3 I.varname1*varname3
i.varname1|varname3 I.varname1|varname3
varname, varname1, and varname2 denote numeric or string categorical variables. varname3 denotes a
continuous, numeric variable.
Menu
Data > Create or change data > Other variable-creation commands > Interaction expansion
+-----------------------------------------------------------------+ | Most commands in Stata now allow factor variables; see | | fvvarlist. To determine if a command allows factor variables, | | see the information printed below the options table for the | | command. If the command allows factor variables, it will say | | something like "indepvars may contain factor variables." | | | | We recommend that you use factor variables instead of xi if a | | command allows factor variables. | | | | We include [R] xi in our documentation so that readers can | | consult it when using a Stata command that does not allow | | factor variables. | +-----------------------------------------------------------------+