Skip to content
Prev 14442 / 20628 Next

How o treat time when using stocks and a growth model (longitudinal data)

It's not entirely clear what you are trying to find out, but in
general having stocks traded at different periods shouldn't be a big
barrier.  A simple random-slope model with temporal autocorrelation
would look something like this:

   lme(log(value) ~ 1+year, random = ~1+company|year,
     correlation=corAR1(form=~year|company), data=stock_data)

Using lme() because lmer() still doesn't do autocorrelation easily.
You should probably center the year variable (i.e. for technical reasons
you don't want to have your intercept at Gregorian calendar year 0).

  I don't know much about financial modeling but I know that people use
much more sophisticated (e.g. GARCH) models; I don't know if anyone has
tried to do mixed GARCH models or not.  Probably.
On 16-04-28 06:47 AM, Carolina Magda Roma wrote: