Hi,
my question is about the possibility of apply xi: prefix, along with, macro variable $vlcategorical, in arima, a Stata command that does not allow factor variables.
they does not seem to glue.
any clue how to use xi: and vl, simultaneously?
thanks
my question is about the possibility of apply xi: prefix, along with, macro variable $vlcategorical, in arima, a Stata command that does not allow factor variables.
they does not seem to glue.
Code:
. clear
. webuse auto
(1978 automobile data)
. gen t=_n
* I adapted auto daatset, just to facilitate reproducibility.
. tsset t
Time variable: t, 1 to 74
Delta: 1 unit
. vl set
. vl list vlcategorical
------------------------------------------------
Variable | Macro Values Levels
---------+--------------------------------------
rep78 | $vlcategorical integers >=0 5
foreign | $vlcategorical 0 and 1 2
------------------------------------------------
* in this case xi: returns a error
. xi: arima price i.($vlcategorical)
varlist required
r(100);
* in this case xi: expands only the first variable (rep78)
. xi: arima price i.$vlcategorical
i.rep78 _Irep78_1-5 (naturally coded; _Irep78_1 omitted)
omitted output
thanks

Comment