clear all ///NOTE: As stated in-text, the loadings of the second principal component or ///second factor are negated for ease of exposition. ////Table 1 clear all insheet using "C:\stata\socialRepression.csv" pca law safety movement religion association speech identity size legal money trade regulation ///Table 2 predict pc1 pc2 ///Table 3 clear all insheet using "C:\stata\socialRepression.csv" drop if year != 2019 cluster kmeans law safety movement religion association speech identity size legal money trade regulation, k(4) ///Table 4 and factor anlaysis diagnostics clear all insheet using "C:\stata\socialRepression.csv" mvtest normality law safety movement religion association speech identity size legal money trade regulation, stats(kurtosis skewness) //Maridia's test for normality factortest law safety movement religion association speech identity size legal money trade regulation //KMO test and Bartlett test paran law safety movement religion association speech identity size legal money trade regulation ///again: note, the sign has been flipped for the second factor for in-text exposition factor law safety movement religion association speech identity size legal money trade regulation, fac(3) rotate, oblique oblimin ///Table 5 clear all insheet using "C:\stata\socialRepression.csv" factor law safety movement religion association speech identity size legal money trade regulation, fac(3) rotate, oblique oblimin predict factor1 factor2 factor3 ///Table 6 and 7 were produced by copying data into Excel, differencing, and sorting. ///Table 8 ///Again: values of factor2 have been multiplied by negative one for reporting purposes clear all insheet using "C:\stata\socialRepression.csv" factor law safety movement religion association speech identity size legal money trade regulation, fac(3) rotate, oblique oblimin fac(3) predict factor1 factor2 factor3 regress factor2 british, robust regress factor2 pop, robust regress factor2 muslim, robust regress factor2 gini, robust regress factor2 communism, robust regress factor2 autocracy, robust regress factor2 lnrgdppc, robust regress factor2 british pop muslim gini communism autocracy lnrgdppc, robust regress factor2 british pop muslim gini communism lnrgdppc, robust regress factor2 pop muslim gini communism autocracy, robust regress factor2 pop muslim gini communism, robust ///Table 9 regress factor2 idv, robust regress factor2 pdi, robust regress factor2 mas, robust regress factor2 uai, robust regress factor2 ltowvs, robust regress factor2 ivr, robust regress factor2 idv pdi mas uai ltowvs ivr, robust regress factor2 idv pdi uai ivr, robust ///Figure 1 and figure 2 are simple scatterplots in Excel.