rollreg: change coeff(k) to e.g. coeffk

For questions and discussion related to reading in and working with data.
alexecon
Posts: 72
Joined: Fri Oct 30, 2015 12:16 pm

rollreg: change coeff(k) to e.g. coeffk

Unread post by alexecon »

How can I do that please? I would like to work with the resulting coefficient and standard error series from rollreg but instructions such as SET do not recognise them (because of the brackets, I suspect).

Thank you.
TomDoan
Posts: 7814
Joined: Wed Nov 01, 2006 4:36 pm

Re: rollreg: change coeff(k) to e.g. coeffk

Unread post by TomDoan »

Something like:

@rollreg(cohist=cohist,move=32) y
# constant x2 x3
set gap = cohist(3)-cohist(2)

would work to give you the difference between the x3 and x2 coefficients. If you want a lag, it's (say) cohist(3){1}.
Post Reply