Dear all,
I am relatively new to Stata and I am having trouble translating the following formula to Stata code.
I am trying to calculate a disparity measure that captures the square root of the mean squared distance in a demographic characteristic of a team member i from all other team members. The measure is expressed as follows (O'Reilly III et al., 1989):

Si is the demographic characteristic of team member i, and Sj is the characteristic of the jth team member of a group with n team members.
I have a data set with 65 teams that have between 2-5 team members. There are few missing values for the demographic characteristics I want to use. I am using Stata 14.
Can anyone help me how to calculate this measure in Stata? I highly appreciate any advice.
I am relatively new to Stata and I am having trouble translating the following formula to Stata code.
I am trying to calculate a disparity measure that captures the square root of the mean squared distance in a demographic characteristic of a team member i from all other team members. The measure is expressed as follows (O'Reilly III et al., 1989):
Si is the demographic characteristic of team member i, and Sj is the characteristic of the jth team member of a group with n team members.
I have a data set with 65 teams that have between 2-5 team members. There are few missing values for the demographic characteristics I want to use. I am using Stata 14.
Can anyone help me how to calculate this measure in Stata? I highly appreciate any advice.
Comment