Hello all!
I've got a panel data with variables: firmid, year, and rdexpenditure.
I want to get the standard deviation of the residuals from the R&D expenditure trend of the firm over the past 5 years. I was considering using asreg. The command is:
asreg rdexpenditure year, window(year 5) by(firmid) fitted
But only 3 residuals returned for each firm over 5 years. Is it oorrect to compute the standard deviation with only 3 residuals? If not, is there any comand I can use to get all the 5 residuals properly?
Thank you for your help!
Related Posts with How to get residuals returned after a rolling window by groups regression?
How to generate time to event analysis?Hi, I am really appreciative of all the help that is provided here. Thank you very much. I am trying…
VIF after multilevel mixed effect logistic regressionHi... I am a very newly stata user I really don't know and desperately searching how to get VIF sco…
Selecting the intersection between two sets of macro variable listsHi, I want to create a local variable list that is the union of 2 macro variable lists without repe…
How to use ACF and PACF the right way ?Hi, I have looked online and seen different versions of how to use ACF and PACF. I am running the fo…
Combine like variables whose values are percentagesI have a large dataset with over 2000 variables and would like to combine like variables, but the va…
Subscribe to:
Post Comments (Atom)
0 Response to How to get residuals returned after a rolling window by groups regression?
Post a Comment