Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: scalar for arima regression and generating new variables


From   "Christian Vorbeck" <[email protected]>
To   [email protected]
Subject   st: scalar for arima regression and generating new variables
Date   Thu, 30 Oct 2008 21:29:06 +0100

Hello,
let me begin by saying i am just learning stata, and that the answer
to this question is likely quite simple but i can't seem to find it. I
am running a series of arima equations and would like to save the
resulting coefficients (for lags 1 and 2). I have used scalar k0 =
_coef[_cons] to save the constant but can't figure out how to save the
lag's. I have tried scalar k1 = _coef [L1], [L1.] and [arL1] but they
don't seem to work.

Secondly, is there a way to create a new variable with one observation
from a couple of other variables? lets say for example i have x1
through x8 with 100 obs each, is there a way to create a variable with
one observation (or even the median) from each ( ie. X is a column
with x1, x2,...,x8). This would really save me a lot of time down the
road so any help would be greatly appreciated. Thanks,

Christian
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index