Hey there I have another question. Here as example for the Grunfeld database: I need a code that calculates the mean of the invest variable for every company with the same number and then automatically continues with the next company number (even if it is not 1,2,3 .. but if there are the following numbers missing like 1,5,9, etc.). In fact that I do not have to enter this code again for all 200 observations, but this is done automatically. After calculating the means I want to divide the calculated means of invest values into quintiles, but so that each company (with same number) always stays in the same quintile based on the mean of invest and cannot jump between the quintiles.
Thanks for your help.
Related Posts with Automatic average calculation
Stata stationarityHello guys, I am currently trying to train myself on non-stationarity, seen as I will probably have…
Lassologit errorHello everyone, I am having the following error when running lassologit Code: lassologit loan_clo…
Arithmetic, Geometric and Harmonic totals, and Arithmetic, Geometric and Harmonic weighted meansThe Arithmetic_Mean = (Sum Xi)/n, and therefore n*Arithmetic_Mean= Sum Xi. This fact motivates me to…
Constucting the KZ IndexHello everyone, I have a hard time on how to figure out how to construct the KZ index based on http…
Calculating confidence intervals for box-tidwell power estimatesHi all, I have run a logistic regression using the user-written command boxtid, and would now like …
Subscribe to:
Post Comments (Atom)
0 Response to Automatic average calculation
Post a Comment