Wednesday, December 7, 2022

how to calculate the standard deviation for many variables in STATA

Dear all,
I am trying to calculate the standard deviation for 14 variables ( Q1, Q2,,Q14) and I use this command:
egen CFV_STD=sd inrange(Q1:Q14) but it is not working.
would anyone know the correct code in this case?

thank you so much for your help in advance.

No comments:

Post a Comment