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?
Name variableHello, I have a dataset with a variable called "Country". I would like to know the code to know the…
MRS/WTP estimation with effects-coded mixlogitHi, does anyone have advice on using effects-coded model for MRS/WTP estimation in DCE. Assuming I …
Change font size on x-axisI'm having a frustrating time automating a change in font for the x-axis using the package profilepl…
Margins saving errorHi Statalist, I'm having trouble saving a margins dataset after running a non-parametric regression…
Creating a dummy based on a combinationHi all, I am trying to create a dummy variable based on the particular combination of two other dum…
Subscribe to:
Post Comments (Atom)
0 Response to How to get residuals returned after a rolling window by groups regression?
Post a Comment