Hello all, I want to create a variable which is defined as the annual decile rankings of the three-year average of total loss recognition timeliness. I want to have an average for each year starting from 2002 to 2018.
I tried to create the following command but it says invalid syntax:
egen AVR2002= rmean (Converse Converse [_n-1] Converse [_n-2]) if year==year[_n-1]+1
Would appreciate your help regarding that.
Related Posts with Three-year average of a variable
weak instrumentshello, I estimate a model with the command ivregress 2sls. I have two endogenous variables. Can I co…
How to obtain Wald chi-square from running logistic regressions?Hello statalists, I was an SPSS user and switched to STATA a couple years ago. I have a question ab…
Storing no of observations in regressions performed using a loopHi, I'm running regressions in a loop and I'm able to store the coefficients and also other correspo…
Matrix and Vector ManipulationThe data I have is on the country, sector and time level. Specifically, I am finding the proportion …
repeated time values within multidimensional formHello all, I'm new in Stata...I have multıdımensonal data form as below.. I want to test autocorelat…
Subscribe to:
Post Comments (Atom)
0 Response to Three-year average of a variable
Post a Comment