Hi,
I want to calculate the top management team's (tmt) coefficient of variation of the value AGE_2 (standard deviation/mean). This is on the 'GVKEY Year' level of analysis.
I successfully created the mean age per GVKEY Year (tmt_average_age) with the command:
bysort GVKEY Year: egen tmt_average_age = mean(AGE_2)
Now I want to calculate the standard deviation of tmt_average_age (tmt_sd_age). I used the command:
bysort GVKEY Year: egen tmt_sd_age = sd(tmt_average_age)
This command worked, however, it generated 4,332 missing values (screenshot attached).
I don't understand why this command creates missing values since I expect it to just take the standard deviation of the tmt_average_age variable, which is present for each observation already (and thus per GVKEY Year).
The variable created for the standard deviation (tmt_sd_age) presents missing values when there is 1 tmt_members and a zero in case of multiple tmt_members (see screenshots: browser 1, 2 and 3), while I want it to present the standard deviation of the variable tmt_average_age.
Can anyone explain how I can calculate the standard deviation of tmt_average_age correctly?
Thanks in advance!
I want to calculate the top management team's (tmt) coefficient of variation of the value AGE_2 (standard deviation/mean). This is on the 'GVKEY Year' level of analysis.
I successfully created the mean age per GVKEY Year (tmt_average_age) with the command:
bysort GVKEY Year: egen tmt_average_age = mean(AGE_2)
Now I want to calculate the standard deviation of tmt_average_age (tmt_sd_age). I used the command:
bysort GVKEY Year: egen tmt_sd_age = sd(tmt_average_age)
This command worked, however, it generated 4,332 missing values (screenshot attached).
I don't understand why this command creates missing values since I expect it to just take the standard deviation of the tmt_average_age variable, which is present for each observation already (and thus per GVKEY Year).
The variable created for the standard deviation (tmt_sd_age) presents missing values when there is 1 tmt_members and a zero in case of multiple tmt_members (see screenshots: browser 1, 2 and 3), while I want it to present the standard deviation of the variable tmt_average_age.
Can anyone explain how I can calculate the standard deviation of tmt_average_age correctly?
Thanks in advance!
Comment