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
Help with re-formatting a dataset for choice modelling? (EDITED)Hi folks. I have data on public beach visitation by zipcode. For each zip, I have a list of sites wh…
Help with replacing values of variable with conditionsDear Stata users,
I want to replace the values of variable with conditions. This is the example of …
postestimation command "Adjust" after Logit model with categorical variables as controlHi, I have a question about using adjust after running Logit model with categorical variables as con…
Principal factor (factor, pf): What if the proportion of variance accounted for by the factors is greater than 1.00 (greater than 100%)?Hello,
I ran factor analysis(factor, pf) in Stata to develop factor scores for my latent variables. …
PPML with fixed effectsHi everyone!
I am researching for my thesis about the trade impact of non-tariff measures. For that…
Subscribe to:
Post Comments (Atom)
0 Response to Three-year average of a variable
Post a Comment