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
bloated estimates and CIs in regression of relative survivalhi all I am using Paul Lambert's stpm2 to regress relative survival on a set of covariates. Before r…
Using foreach on for a subset of the dataHello, I am trying to replace missing values of ptfidelity_9_ - ptfidelity_11_ below with 0 Code: f…
Choosing between xtpoisson and xtreg for a non-poisson variableDear Forum, I have a panel dataset of US imports from 130 exporters over 48 years. I am running two…
Hausman test interpretationSo today i made a Hausman test. But i am not sure how to interpret my results. Can you help me? Arra…
Perron-Vogelsang unit root test for endogenous breaksHello everyone, does anyone know if the unit root test of Perron-Vogelsang exists in stata? …
Subscribe to:
Post Comments (Atom)
0 Response to Automatic average calculation
Post a Comment