Dear Statalist,
I have a rather obscure need that I suspect has a straightforward solution.
I am trying to calculate Cronbach's alpha for a psychometric scale. Suppose I have one scale comprising five items, v1-v5, with non-missing values denoted as "x" -- e.g.:
The missingness is systematic in that the age of the respondent determines which items are administered.
Is there a way to calculate a single alpha for these items (e.g., a set of alphas for each combination of non-missing variables, which is then averaged)? At present the command won't run because there is no observation that is non-missing for all five items. The age range is 60 years, and the age bands are different for each item, so I would like to avoid doing this manually with a large number of commands along the lines of:
etc.
Thank you!
I have a rather obscure need that I suspect has a straightforward solution.
I am trying to calculate Cronbach's alpha for a psychometric scale. Suppose I have one scale comprising five items, v1-v5, with non-missing values denoted as "x" -- e.g.:
Code:
v1 v2 v3 v4 v5 x x x x x x x x x x x x x x x x x x x x x x x x x
Is there a way to calculate a single alpha for these items (e.g., a set of alphas for each combination of non-missing variables, which is then averaged)? At present the command won't run because there is no observation that is non-missing for all five items. The age range is 60 years, and the age bands are different for each item, so I would like to avoid doing this manually with a large number of commands along the lines of:
Code:
alpha v1 v2 if age==20 alpha v2 v3 if age==21 alpha v2 v4 if age==22 alpha v2 v5 if age==23 alpha v3 v5 v6 if age==24
Thank you!
Comment