Hello,
i want to use the Schwartz "Human Value Scale" from the European Social Survey Data. In this article (Link added) Schwartz provides the SPSS Syntax for creating 10 Values by taking the means of the 21 Items that index the Human Value Scale and subtracting the mean rating.
The SPSS-Syntax:
I want to translate the SPSS-Syntax into Stata:
Is this correct?
Best regards and thank you in advance,
Amelie
i want to use the Schwartz "Human Value Scale" from the European Social Survey Data. In this article (Link added) Schwartz provides the SPSS Syntax for creating 10 Values by taking the means of the 21 Items that index the Human Value Scale and subtracting the mean rating.
The SPSS-Syntax:
Code:
COMPUTE mrat = MEAN(v1 to v21) . EXECUTE .COMPUTE SEcenter = MEAN(v5, v14) - mrat . EXECUTE . COMPUTE COcenter = MEAN(v7, v16) - mrat . EXECUTE . COMPUTE TRcenter = MEAN(v9, v20) - mrat . EXECUTE . COMPUTE BEcenter = MEAN(v12, v18) - mrat. EXECUTE . COMPUTE UNcenter = MEAN(v3, v8, v19) - mrat . EXECUTE . COMPUTE SDcenter = MEAN(v1, v11) - mrat . EXECUTE . COMPUTE STcenter = MEAN(v6, v15) - mrat . EXECUTE . COMPUTE HEcenter = MEAN(v10, v21) - mrat. EXECUTE . COMPUTE ACcenter = MEAN(v4, v13) - mrat . EXECUTE . COMPUTE POcenter = MEAN(v2, v17) - mrat . EXECUTE .
Code:
egen mrat = rowmean (v1 to v21)scores se_center = mean (v5 v14) - mratscores co_center = mean (v7 v16) - mrat
Best regards and thank you in advance,
Amelie
Comment