title: “ESS IMMIGRATION MODULES ESS 1+7/Jan F.” output: html_document: null pdf_document: default theme: cerulean —

FUNCTIONS

IMPORT, RECODING, FILTERING, RENAMING

total<-read.spss("ESS1_7_mergedred3.sav", to.data.frame=TRUE)
totalcopy <- total
# total <- totalcopy
as.numeric.factor <- function(x) {as.numeric(levels(x))[x]}

# allow more or less immigrants "imsmetn" "imdfetn" "eimrcnt" "eimpcnt" "imrcntr" "impcntr"
 colnames(total)[178:183]
## [1] "imsmetn" "imdfetn" "eimrcnt" "eimpcnt" "imrcntr" "impcntr"
for (n in 178:183){
  total[,n]<-car::recode(total[,n],"'Allow many to come and live here'=4;'Allow some'=3;'Allow a few'=2;'NA'=NA;'Allow none'=1")
    total[,n]<-as.numeric.factor(total[,n])
  }

# qualifications  "qfimedu" "qfimfml" "qfimlng" "qfimchr" "qfimwht" "qfimwlt" "qfimwsk" "qfimcmt"
colnames(total)[184:191]
## [1] "qfimedu" "qfimfml" "qfimlng" "qfimchr" "qfimwht" "qfimwlt" "qfimwsk" "qfimcmt"
for (n in 184:191){ 
  total[,n]<-car::recode(total[,n],"'Extremely unimportant'=0;'1'=1;'2'=2;'3'=3;'4'=4;'5'=5;'6'=6;'7'=7;'8'=8;'9'=9;'Extremely important'=10")
total[,n]<-as.numeric.factor(total[,n])
  }

# changes to country "imtcjob" "imbleco" "imbgeco" "imueclt" "imwbcnt" "imwbcrm" "imbghct"
colnames(total)[199:205]
## [1] "imtcjob" "imbleco" "imbgeco" "imueclt" "imwbcnt" "imwbcrm" "imbghct"
total[,199]<-car::recode(total[,199],"'Take jobs away'=0;'1'=1;'2'=2;'3'=3;'4'=4;'5'=5;'6'=6;'7'=7;'8'=8;'9'=9;'Create new jobs'=10")
total[,200]<-car::recode(total[,200],"'Generally take out more'=0;'1'=1;'2'=2;'3'=3;'4'=4;'5'=5;'6'=6;'7'=7;'8'=8;'9'=9;'Generally put in more'=10")
total[,201]<-car::recode(total[,201],"'Bad for the economy'=0;'1'=1;'2'=2;'3'=3;'4'=4;'5'=5;'6'=6;'7'=7;'8'=8;'9'=9;'Good for the economy'=10")
total[,202]<-car::recode(total[,202],"'Cultural life undermined'=0;'1'=1;'2'=2;'3'=3;'4'=4;'5'=5;'6'=6;'7'=7;'8'=8;'9'=9;'Cultural life enriched'=10")
total[,203]<-car::recode(total[,203],"'Worse place to live'=0;'1'=1;'2'=2;'3'=3;'4'=4;'5'=5;'6'=6;'7'=7;'8'=8;'9'=9;'Better place to live'=10")
total[,204]<-car::recode(total[,204],"'Crime problems made worse'=0;'1'=1;'2'=2;'3'=3;'4'=4;'5'=5;'6'=6;'7'=7;'8'=8;'9'=9;'Crime problems made better'=10")
total[,205]<-car::recode(total[,205],"'Bad for those countries in the long run'=0;'1'=1;'2'=2;'3'=3;'4'=4;'5'=5;'6'=6;'7'=7;'8'=8;'9'=9;'Good for those countries in the long run'=10")
for (n in 199:205){
  total[,n]<-as.numeric.factor(total[,n])
}

#  pplstr - Better for a country if almost everyone share customs and traditions
colnames(total)[214]
## [1] "pplstrd"
total[,214]<-car::recode(total[,214],"'Disagree strongly'=1;'Disagree'=2;'Neither agree nor disagree'=3;'Agree'=4;'Agree strongly'=5;'NA'=NA")
total[,214]<-as.numeric.factor(total[,214])

# gvrfgap - Government should be generous judging applications for refugee status
 colnames(total)[225]
## [1] "gvrfgap"
 total[,225]<-car::recode(total[,225],"'Disagree strongly'=1;'Disagree'=2;'Neither agree nor disagree'=3;'Agree'=4;'Agree strongly'=5;'NA'=NA")
total[,225]<-as.numeric.factor(total[,225])

# zpercimm -> percentage belived to be immigrants, zscore by country

total2 <- total
total2 <- total %>% filter(agea>17) # > 18 years + 
total2 <- total2 %>% filter(ctzcntr=="Yes") # Is a citizen of the country
total2 <- total2 %>% filter(cntry!="LT") # Drop citizens of Lithauen (only round 7)
total2 <- total2 %>% filter(cntry!="EE") # Drop citizens of Estonia (only round 7)

scand <- total2 %>% filter(rekscand == 1) 
scand$cntry <- droplevels(scand$cntry)
scand$cntryround <- droplevels(scand$cntryround)

scand2 <- NULL
# gives four clusters
# res<-MFA(mecin.MFA, group=c(6,5,6,4,1), type=c("s","s","s", "n","c"), ncp=5, name.group=c("Qualification","ManyFew","Change", "SupCat","ID"), graph=FALSE, num.group.sup = c(4,5))

oldnames= c("gvrfgap","qfimedu", "qfimlng",  "qfimwht", "qfimwsk","qfimcmt","zpercimm","imsmetn","imdfetn","eimpcnt","impcntr",  "imtcjob", "imbleco", "imbgeco", "imueclt", "imwbcnt", "imwbcrm", "cntry", "cntryround", "year", "scandparty","idno") # berre 1018

# teke ut pga berre 01: imbghct, "revpplstrd"
# labels pga berre 01: "BetterLongRun", "BetterSharedCulture"
# teke ut i nytt forsøk: "qfimchr" (kristne)

newnames = c("generousappl","ReqEdu", "ReqLang", "ReqWhite", "ReqWorkskill", "ReqWayoflife","belpercentimm", "MoreRaceMajor","MoreRaceMinor","MorePoorCouE","MorePoorCouNonE",  "CreateNewJobs", "AddWelfareResou", "GodForEconomy","CultLifeEnrich","CountrBetterPlaceLive", "BetterCrime", "cntry","cntryround","year","scandparty","idno")
oldnames= c("qfimedu", "qfimlng",  "qfimwht", "qfimwsk","qfimcmt","imsmetn","imdfetn","eimpcnt","impcntr",  "imtcjob", "imbleco", "imbgeco", "imueclt", "imwbcnt", "imwbcrm", "cntry", "cntryround", "year", "scandparty","idno") # berre 1018

newnames = c("ReqEdu", "ReqLang", "ReqWhite", "ReqWorkskill", "ReqWayoflife", "MoreRaceMajor","MoreRaceMinor","MorePoorCouE","MorePoorCouNonE",  "CreateNewJobs", "AddWelfareResou", "GodForEconomy","CultLifeEnrich","CountrBetterPlaceLive", "BetterCrime", "cntry","cntryround","year","scandparty","idno")

MFA SCANDINAVIA 2002-2014

# rename and build matrix
mecin.MFA<-scand[, oldnames]
mecin.MFA<-mecin.MFA %>% filter(complete.cases(.))
names(mecin.MFA) <- newnames

#s=scaled to unit variance, c=quant non-scaled
res<-MFA(mecin.MFA, group=c(5,4,6,4,1), type=c("s","s","s", "n","c"), ncp=5, name.group=c("Qualification","ManyFew","Change", "SupCat","ID"), graph=FALSE, num.group.sup = c(4,5))

res$summary.quali$modalite <-  sapply(strsplit(res$summary.quali$modalite, ": "), tail, 1) #forenkle

# analysis functions for basic stats
MFAbasicstat(res) 
## $Lg
##               Qualification ManyFew   Change SupCat       ID     MFA
## Qualification       1.18808 0.25832 0.200280 0.1555 0.012393 0.80705
## ManyFew             0.25832 1.02298 0.377064 0.1722 0.016313 0.81277
## Change              0.20028 0.37706 1.144654 0.1444 0.007678 0.84396
## SupCat              0.15551 0.17223 0.144362 4.7154 0.718256 0.23138
## ID                  0.01239 0.01631 0.007678 0.7183 1.000000 0.01783
## MFA                 0.80705 0.81277 0.843961 0.2314 0.017832 1.20751
## 
## $RV
##               Qualification ManyFew   Change  SupCat       ID     MFA
## Qualification       1.00000 0.23431 0.171743 0.06570 0.011369 0.67380
## ManyFew             0.23431 1.00000 0.348453 0.07842 0.016129 0.73129
## Change              0.17174 0.34845 1.000000 0.06214 0.007176 0.71786
## SupCat              0.06570 0.07842 0.062138 1.00000 0.330766 0.09697
## ID                  0.01137 0.01613 0.007176 0.33077 1.000000 0.01623
## MFA                 0.67380 0.73129 0.717860 0.09697 0.016227 1.00000
## 
## $coord
##                Dim.1   Dim.2   Dim.3    Dim.4  Dim.5
## Qualification 0.5941 0.40461 0.03799 0.249174 0.1953
## ManyFew       0.7502 0.02795 0.21760 0.002017 0.0082
## Change        0.6961 0.17308 0.13848 0.016851 0.0584
## 
## $contrib
##               Dim.1  Dim.2  Dim.3   Dim.4  Dim.5
## Qualification 29.12 66.807  9.641 92.9609 74.570
## ManyFew       36.77  4.615 55.219  0.7525  3.131
## Change        34.12 28.578 35.141  6.2866 22.299
## 
## $cos2
##                Dim.1     Dim.2    Dim.3       Dim.4      Dim.5
## Qualification 0.2971 0.1377946 0.001215 0.052258814 0.03209890
## ManyFew       0.5502 0.0007638 0.046284 0.000003977 0.00006573
## Change        0.4233 0.0261713 0.016752 0.000248065 0.00297933
## 
## $dist2
## [1] 1.188 1.023 1.145
## 
## $correlation
##                Dim.1  Dim.2  Dim.3   Dim.4   Dim.5
## Qualification 0.7729 0.6465 0.2462 0.93985 0.87289
## ManyFew       0.8666 0.1753 0.4681 0.09393 0.09835
## Change        0.8359 0.4243 0.3843 0.20264 0.44271
## 
## $coord.sup
##           Dim.1      Dim.2   Dim.3   Dim.4    Dim.5
## SupCat 0.180971 0.00914251 0.03155 0.08897 0.065252
## ID     0.004437 0.00007157 0.01192 0.03640 0.005524
## 
## $cos2.sup
##             Dim.1          Dim.2     Dim.3    Dim.4      Dim.5
## SupCat 0.00694548 0.000017726165 0.0002111 0.001679 0.00090297
## ID     0.00001969 0.000000005123 0.0001421 0.001325 0.00003052
## 
## $dist2.sup
## [1] 4.715 1.000
## 
##    group              variable   moyenne ecart.type minimum maximum
## 1      1                ReqEdu      5.14       2.75       0      10
## 2      1               ReqLang      5.21       3.48       0      10
## 3      1              ReqWhite      1.54       2.33       0      10
## 4      1          ReqWorkskill      5.33       3.08       0      10
## 5      1          ReqWayoflife      6.67       2.78       0      10
## 6      2         MoreRaceMajor      3.10       0.70       1       4
## 7      2         MoreRaceMinor      2.87       0.78       1       4
## 8      2          MorePoorCouE      2.90       0.76       1       4
## 9      2       MorePoorCouNonE      2.81       0.80       1       4
## 10     3         CreateNewJobs      5.82       1.84       0      10
## 11     3       AddWelfareResou      4.76       2.04       0      10
## 12     3         GodForEconomy      5.36       2.22       0      10
## 13     3        CultLifeEnrich      6.30       2.37       0      10
## 14     3 CountrBetterPlaceLive      5.68       2.17       0      10
## 15     3           BetterCrime      3.30       2.04       0      10
## 16     5                  idno 172629.88       1.00       1  950493
##               Dim.1  Dim.2  Dim.3   Dim.4  Dim.5
## Qualification 29.12 66.807  9.641 92.9609 74.570
## ManyFew       36.77  4.615 55.219  0.7525  3.131
## Change        34.12 28.578 35.141  6.2866 22.299
##                        Dim.1   Dim.2    Dim.3     Dim.4   Dim.5
## ReqEdu                 5.246 23.6582  0.28070 16.369197  0.2850
## ReqLang                6.427 14.0626  1.49333  1.485828  0.4610
## ReqWhite               5.122  4.8023  0.04217 48.761782 32.8984
## ReqWorkskill           7.171 20.4506  0.69884  4.039762  0.0381
## ReqWayoflife           5.150  3.8332  7.12591 22.304312 40.8871
## MoreRaceMajor          7.179  2.3151 14.94794  0.004626  1.7714
## MoreRaceMinor         10.413  0.8175 11.04310  0.141989  0.1753
## MorePoorCouE           9.396  1.0222 15.61187  0.311739  0.7482
## MorePoorCouNonE        9.779  0.4605 13.61563  0.294147  0.4362
## CreateNewJobs          3.726  6.9259  5.83462  3.998898 10.6772
## AddWelfareResou        4.792  5.7092 10.74916  1.693710  0.3229
## GodForEconomy          6.629  6.5775  5.58844  0.138838  0.1903
## CultLifeEnrich         7.655  2.4719  3.12997  0.058772  2.9040
## CountrBetterPlaceLive  8.086  3.7029  3.32334  0.028216  0.8994
## BetterCrime            3.227  3.1905  6.51497  0.368184  7.3055
##                        Dim.1    Dim.2     Dim.3     Dim.4    Dim.5
## ReqEdu                0.2929 0.392045 0.0030265 0.1200511 0.002042
## ReqLang               0.3588 0.233034 0.0161012 0.0108970 0.003303
## ReqWhite              0.2859 0.079580 0.0004547 0.3576171 0.235731
## ReqWorkskill          0.4004 0.338891 0.0075349 0.0296275 0.000273
## ReqWayoflife          0.2875 0.063521 0.0768319 0.1635790 0.292973
## MoreRaceMajor         0.4726 0.045240 0.1900548 0.0000400 0.014968
## MoreRaceMinor         0.6855 0.015974 0.1404069 0.0012280 0.001481
## MorePoorCouE          0.6186 0.019975 0.1984963 0.0026960 0.006322
## MorePoorCouNonE       0.6438 0.008998 0.1731153 0.0025439 0.003686
## CreateNewJobs         0.2519 0.138978 0.0761777 0.0355134 0.092643
## AddWelfareResou       0.3240 0.114563 0.1403427 0.0150415 0.002802
## GodForEconomy         0.4481 0.131986 0.0729635 0.0012330 0.001651
## CultLifeEnrich        0.5175 0.049602 0.0408654 0.0005219 0.025197
## CountrBetterPlaceLive 0.5467 0.074304 0.0433901 0.0002506 0.007804
## BetterCrime           0.2182 0.064021 0.0850605 0.0032698 0.063388
##                  Dim.1     Dim.2      Dim.3     Dim.4      Dim.5
## DK            0.644202 0.0101353 0.06575181 0.1584479 0.02147319
## NO            0.465119 0.0050429 0.00463344 0.0002647 0.10078288
## SE            0.776539 0.0007088 0.04049515 0.0610246 0.06985477
## DK 1          0.847030 0.0255137 0.01405402 0.0566061 0.00110883
## DK 7          0.291224 0.0002725 0.14077359 0.2705680 0.06463018
## NO 1          0.657980 0.0027248 0.00561668 0.0131682 0.04994923
## NO 7          0.021421 0.0068781 0.00001369 0.0863158 0.16061834
## SE 1          0.438171 0.0023110 0.10233427 0.1432960 0.18525604
## SE 7          0.899124 0.0048000 0.01341156 0.0226848 0.02130928
## year 2002     0.772975 0.0098397 0.00713616 0.0458013 0.00838582
## year 2014     0.772975 0.0098397 0.00713616 0.0458013 0.00838582
## socialists    0.955729 0.0132829 0.00429686 0.0069504 0.01240349
## socdemo       0.779993 0.0969871 0.00002253 0.0349915 0.00665635
## liberals      0.942640 0.0069342 0.01079653 0.0083787 0.00030182
## christdemo    0.077003 0.0631605 0.19136335 0.3442990 0.00006041
## agrarians     0.869240 0.0368527 0.02297775 0.0212635 0.00148490
## conservatives 0.005024 0.3787325 0.06918577 0.0168958 0.21561828
## radright      0.967531 0.0145980 0.00136004 0.0016736 0.00165141
## greens        0.980817 0.0078247 0.00021461 0.0062035 0.00110135
## other         0.798094 0.0149125 0.01051948 0.0866180 0.00160348
## missing       0.803806 0.0869903 0.01363541 0.0041388 0.00862829
##                          Dim.1     Dim.2     Dim.3     Dim.4     Dim.5
## Dim1.Qualification 28.89420639 63.874535  4.807225  0.683211  0.039418
## Dim2.Qualification  0.20994013  2.732288  0.437391 91.146123  0.039336
## Dim3.Qualification  0.00014289  0.082450  4.236079  1.106613 74.352253
## Dim4.Qualification  0.00755277  0.099501  0.161088  0.061938  0.112546
## Dim5.Qualification  0.00427169  0.023813  0.002154  0.000135  0.028147
## Dim1.ManyFew       36.72886414  4.139060 54.811343  0.113850  2.602157
## Dim2.ManyFew        0.01433253  0.413090  0.095113  0.256942  0.271554
## Dim3.ManyFew        0.02499175  0.055351  0.325386  0.359998  0.249928
## Dim4.ManyFew        0.00004500  0.008121  0.003812  0.022011  0.007569
## Dim1.Change        33.95403373 27.215415 32.412739  1.597716  2.195959
## Dim2.Change         0.00000329  0.019106  0.429604  2.110548 16.846518
## Dim3.Change         0.15900240  1.188107  2.186732  2.312065  0.108636
## Dim4.Change         0.00080756  0.022537  0.063699  0.033623  2.956640
## Dim5.Change         0.00180573  0.126625  0.027635  0.195227  0.189338
## Dim1.SupCat         0.00000000  0.000000  0.000000  0.000000  0.000000
## Dim2.SupCat         0.00000000  0.000000  0.000000  0.000000  0.000000
## Dim3.SupCat         0.00000000  0.000000  0.000000  0.000000  0.000000
## Dim4.SupCat         0.00000000  0.000000  0.000000  0.000000  0.000000
## Dim5.SupCat         0.00000000  0.000000  0.000000  0.000000  0.000000
## Dim1.ID             0.00000000  0.000000  0.000000  0.000000  0.000000
MFAbasicplots(res) 

# plot of variables
fviz_mfa_var(res, "quanti.var", pointsize = "contrib", axes=c(2,1),
             col.var.sup = "violet", repel = TRUE, labelsize=3,
             geom = c("point", "text"), select.var=list(contrib=60))

fviz_mfa_var(res, "quanti.var", col.var = "cos2", axes=c(2,1),
             gradient.cols = c("#00AFBB", "#E7B800", "#FC4E07"), 
             col.var.sup = "violet", repel = TRUE, labelsize=3,
             geom = c("point", "text"), select.var=list(cos2=0.1))

fviz_mfa_ind(res, label=TRUE, axes=c(2,1),   geom="text") 

fviz_mfa_ind(res, label=TRUE, axes=c(2,1), habillage=mecin.MFA$cntry, addEllipses = TRUE, invisible="quali.var", ellipse.level = 0.3, geom="text", palette="jco") 

fviz_mfa_ind(res, label=TRUE, axes=c(2,1), habillage=mecin.MFA$year, addEllipses = TRUE, invisible="quali.var", ellipse.level = 0.3, geom="text", palette="jco") 

fviz_mfa_ind(res, label=TRUE, axes=c(2,1), habillage=mecin.MFA$cntryround, addEllipses = TRUE, invisible="quali.var", ellipse.level = 0.03, geom="text", palette="jco") 

#4 clusters
res.hcpc<-HCPC(res ,nb.clust=4,consol=TRUE,min=3,max=12,graph=TRUE) #-1 om automatisk, 0 om cut

MFAclusterstat(res.hcpc)
## [1] 3

## x$data.clust$clust 
##       Frequency Percent
## 1          2180   26.24
## 2          2520   30.33
## 3          1952   23.49
## 4          1657   19.94
## Total      8309  100.00
## NULL
## NULL
##  [1] 1.18550 0.32843 0.22818 0.14970 0.08988 0.08940 0.08075 0.07026 0.06126 0.04090
##  [1] 0.8623 0.8890 0.9181 0.9464 0.9437 0.9461 0.9505 0.9546 0.9682 0.9694
## 
## Link between the cluster variable and the quantitative variables
## ================================================================
##           Eta2                                           P-value
## Dim.1 0.806720 0.00000000000000000000000000000000000000000000000
## Dim.2 0.454318 0.00000000000000000000000000000000000000000000000
## Dim.5 0.024635 0.00000000000000000000000000000000000000000001193
## Dim.4 0.021646 0.00000000000000000000000000000000000000367993195
## Dim.3 0.008462 0.00000000000000320295715699184972976005224762644
## 
## Description of each cluster by quantitative variables
## =====================================================
## $`1`
##        v.test Mean in category          Overall mean sd in category Overall sd          p.value
## Dim.4   6.490          0.06181  0.000000000000001391         0.6120     0.5177 0.00000000008575
## Dim.5   6.412          0.06036 -0.000000000000002097         0.5450     0.5117 0.00000000014376
## Dim.2  -6.796         -0.09729 -0.000000000000002691         0.6714     0.7782 0.00000000001076
## Dim.1 -67.739         -1.77998 -0.000000000000004516         0.7087     1.4284 0.00000000000000
## 
## $`2`
##        v.test Mean in category          Overall mean sd in category Overall sd                                  p.value
## Dim.2  55.185          0.71414 -0.000000000000002691         0.5029     0.7782 0.00000000000000000000000000000000000000
## Dim.1   2.233          0.05305 -0.000000000000004516         0.6101     1.4284 0.02552062948446199089347352639833843568
## Dim.5  -6.844         -0.05824 -0.000000000000002097         0.4933     0.5117 0.00000000000768733539029208676647114883
## Dim.4 -12.378         -0.10656  0.000000000000001391         0.5230     0.5177 0.00000000000000000000000000000000003428
## 
## $`3`
##        v.test Mean in category          Overall mean sd in category Overall sd                 p.value
## Dim.1   7.640          0.21608 -0.000000000000004516         0.5838     1.4284 0.000000000000021647842
## Dim.3  -6.348         -0.07890 -0.000000000000007849         0.5994     0.6277 0.000000000217961234076
## Dim.5  -8.798         -0.08915 -0.000000000000002097         0.4979     0.5117 0.000000000000000001387
## Dim.2 -45.268         -0.69749 -0.000000000000002691         0.5126     0.7782 0.000000000000000000000
## 
## $`4`
##       v.test Mean in category          Overall mean sd in category Overall sd                       p.value
## Dim.1 63.904          2.00656 -0.000000000000004516         0.5909     1.4284 0.000000000000000000000000000
## Dim.5 10.150          0.11418 -0.000000000000002097         0.4775     0.5117 0.000000000000000000000003316
## Dim.4  7.243          0.08243  0.000000000000001391         0.4312     0.5177 0.000000000000438415844270203
## Dim.3  6.757          0.09324 -0.000000000000007849         0.6368     0.6277 0.000000000014124431971437912
## Dim.2 -7.974         -0.13641 -0.000000000000002691         0.6083     0.7782 0.000000000000001534739969612
MFAclusterplot(res.hcpc)

res.hcpc$desc.var$quanti
## $`1`
##                        v.test Mean in category Overall mean sd in category  Overall sd                                                                                                                                                                                                                                                                                                                 p.value
## ReqWhite               41.574            3.322        1.543         2.8772      2.3270 0.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
## ReqWorkskill           37.920            7.478        5.332         1.9917      3.0762 0.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
## ReqLang                37.400            7.610        5.213         2.4959      3.4829 0.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003935
## ReqWayoflife           31.749            8.298        6.673         1.8429      2.7827 0.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000033189911480704632691978265731616295871445428614636843494159076499295803038874689721502494
## ReqEdu                 29.993            6.655        5.136         2.1661      2.7527 0.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000012095335650384282888538584808124723188712158042332739598936257230987501320120067618907295382525361488776752904436
## idno                    4.836       201568.501   172629.878    359566.4419 325298.6359 0.000001325445608309542158638255279767825811632064869627356529235839843750000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
## CreateNewJobs         -34.231            4.664        5.824         1.8412      1.8430 0.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000083319886317860670621135934306984103873820306236114702
## BetterCrime           -34.258            2.017        3.303         1.8860      2.0413 0.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000032742665683708882661682016270439827082333382086142487
## AddWelfareResou       -38.711            3.307        4.760         1.9330      2.0411 0.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
## MoreRaceMajor         -47.034            2.496        3.099         0.6681      0.6962 0.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
## GodForEconomy         -49.540            3.335        5.361         1.9385      2.2232 0.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
## CountrBetterPlaceLive -50.354            3.666        5.675         1.7828      2.1693 0.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
## CultLifeEnrich        -52.089            4.029        6.304         2.1029      2.3739 0.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
## MorePoorCouE          -53.885            2.147        2.902         0.6102      0.7617 0.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
## MorePoorCouNonE       -54.769            2.005        2.809         0.5873      0.7979 0.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
## MoreRaceMinor         -58.376            2.028        2.866         0.5545      0.7807 0.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
## 
## $`2`
##                       v.test Mean in category Overall mean sd in category Overall sd                                                                                                                                                                                                                                                                                               p.value
## ReqEdu                36.278            6.797        5.136         1.7111     2.7527 0.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003585
## ReqWorkskill          33.863            7.064        5.332         1.8380     3.0762 0.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000023019979942590098155043353410897179693205
## ReqLang               26.710            6.760        5.213         2.6578     3.4829 0.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000360035139780140877016200504654256239974990684122011628858036609082402028675751100744074986981028852541930196524042030927003980792269311
## GodForEconomy         22.224            6.183        5.361         1.6605     2.2232 0.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000199573642430134631477762544327181339627711414541825676683313491278056992487779699628502770670846979432080349850919614528962230369102246560491829535238852401933921441021887013710853839
## CreateNewJobs         19.058            6.408        5.824         1.5086     1.8430 0.000000000000000000000000000000000000000000000000000000000000000000000000000000005632195640418410240358691961762232151581091544439525357385567913885198054650602421398644533148679033493779396194470370072612425324899413409794799558028168331026841160564713181126602591431870944603185757948438095
## AddWelfareResou       17.302            5.348        4.760         1.6773     2.0411 0.000000000000000000000000000000000000000000000000000000000000000000453840718622616085129496137315906181003367000716551176684641992573446962122067876288987513036244919059364771828793101661896485667580013938463888444541500435515669876172795138558058170019648969173431396484375000000000000000000
## BetterCrime           16.255            3.855        3.303         2.0249     2.0413 0.000000000000000000000000000000000000000000000000000000000020563079824905099084638948632217622987182922899647735007497140427090872795791776737233136897301360945229018893387863268003036678179577539367177668044872618224871985148638486862182617187500000000000000000000000000000000000000000000000
## CountrBetterPlaceLive 15.531            6.235        5.675         1.5675     2.1693 0.000000000000000000000000000000000000000000000000000002124489295670587905441122849593709350334251392920131428225721715184866791230371455729486877047101585815810913586191667844400260653603775863607072693639565841294825077056884765625000000000000000000000000000000000000000000000000000000000000
## CultLifeEnrich        15.527            6.917        6.304         1.6882     2.3739 0.000000000000000000000000000000000000000000000000000002274605016677849035962971862273854081011403958632682123621317250341946788258553074746353259751485034433654848934993312674273882750095748285501517926832093507982790470123291015625000000000000000000000000000000000000000000000000000000000000
## ReqWayoflife          12.918            7.270        6.673         2.1901     2.7827 0.000000000000000000000000000000000000035822403154171813269473997292434917049140887077010351606831883805528530218907666097555508199733729536584636576890261494554579257965087890625000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
## MoreRaceMajor         11.734            3.235        3.099         0.5065     0.6962 0.000000000000000000000000000000085495978054419268068951514566541895584594308598451729396020573671573729090213323482741469838686043658526614308357238769531250000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
## MoreRaceMinor         10.205            2.998        2.866         0.5315     0.7807 0.000000000000000000000001884270239328813209917429657228236206941570072358221996489741274002222004568807278701569885015487670898437500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
## MorePoorCouE           9.282            3.020        2.902         0.5297     0.7617 0.000000000000000000016596161840920722664873498576330589618625761206554430383930398562597474665381014347076416015625000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
## MorePoorCouNonE        6.805            2.899        2.809         0.5771     0.7979 0.000000000010122936547532851536825268914755385349021898910848449304467067122459411621093750000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
## ReqWhite               3.119            1.663        1.543         2.1739     2.3270 0.001811955269200750959571188936081398423993960022926330566406250000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
## 
## $`3`
##                        v.test Mean in category Overall mean sd in category  Overall sd                                                                                                                                                                                                                                            p.value
## idno                   -2.304      157788.6337   172629.878    309401.8352 325298.6359 0.021202508768417113044213451189534680452197790145874023437500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
## MorePoorCouE           -3.847           2.8443        2.902         0.4719      0.7617 0.000119650745478634614338969699431913795706350356340408325195312500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
## CountrBetterPlaceLive  -5.936           5.4201        5.675         1.5572      2.1693 0.000000002913987531729157525974901077770590207549616934556979686021804809570312500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
## BetterCrime            -6.227           3.0517        3.303         1.7252      2.0413 0.000000000475359341156660461278484960527838595889527084636938525363802909851074218750000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
## GodForEconomy          -7.152           5.0461        5.361         1.6688      2.2232 0.000000000000852493208025935336876136276519945602714659060872293139254907146096229553222656250000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
## MoreRaceMajor          -8.944           2.9754        3.099         0.4610      0.6962 0.000000000000000000375578148305787446102477958997569474200099394925497059936903010424202875583432614803314208984375000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
## AddWelfareResou        -9.435           4.3791        4.760         1.5654      2.0411 0.000000000000000000003907638683214793690808307882475029642736032778736567409004487583246145732118748128414154052734375000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
## CreateNewJobs         -10.853           5.4283        5.824         1.5267      1.8430 0.000000000000000000000000001929270562919485646554548777849421290282241472793122966988901081306152546397669755862125384737737476825714111328125000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
## ReqWayoflife          -10.989           6.0671        6.673         2.7268      2.7827 0.000000000000000000000000000432105017714843318933417941565407212200002083412817385836042995351581505166296826025984501029597595334053039550781250000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
## ReqWhite              -21.210           0.5656        1.543         1.1184      2.3270 0.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000766795408307168602612434430270617740315292625008262763424289746076549024817179155480744067479110114675543738376503645644649049067199969300127
## ReqLang               -28.569           3.2433        5.213         2.7847      3.4829 0.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000016368013795364828953974584338606523615249564834637601571450961
## ReqEdu                -31.780           3.4042        5.136         2.0573      2.7527 0.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000012198086965955209367
## ReqWorkskill          -32.918           3.3268        5.332         2.3305      3.0762 0.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001229
## 
## $`4`
##                        v.test Mean in category Overall mean sd in category  Overall sd                                                                                                                                                                                                                                                                                                   p.value
## MoreRaceMinor          54.406            3.800        2.866         0.4018      0.7807 0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
## MorePoorCouNonE        53.856            3.753        2.809         0.4476      0.7979 0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
## MorePoorCouE           52.730            3.785        2.902         0.4194      0.7617 0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
## MoreRaceMajor          47.775            3.830        3.099         0.3806      0.6962 0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
## CountrBetterPlaceLive  43.870            7.767        5.675         1.6064      2.1693 0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
## CultLifeEnrich         41.091            8.448        6.304         1.4248      2.3739 0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
## GodForEconomy          36.564            7.148        5.361         1.6219      2.2232 0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001051
## AddWelfareResou        32.726            6.229        4.760         1.7828      2.0411 0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006577975578743345564251936790737190816326283519162391450181562
## CreateNewJobs          27.279            6.929        5.824         1.6334      1.8430 0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000762599008820549503493404961426856152783700026060883632434795245872749540021685596965376505252894288595978665666352261328110739598690
## BetterCrime            25.625            4.453        3.303         1.5608      2.0413 0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008058052926595910585651294566659351195809648117734040472058688550963454288444300648347658532448213018908154533938224783210398418884819478771990268042338
## idno                   -3.942       144439.641   172629.878    290614.8271 325298.6359 0.0000807033609314719010486074979304760290688136592507362365722656250000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
## ReqWhite              -26.857            0.169        1.543         0.6334      2.3270 0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000070129028732544694484904217846510477557884941039025377837244079600325039650478643353252254266297645738693094091652294662274065770898551494
## ReqWayoflife          -38.156            4.339        6.673         2.8998      2.7827 0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
## ReqEdu                -41.038            2.653        5.136         2.3359      2.7527 0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
## ReqLang               -41.593            2.029        5.213         2.6170      3.4829 0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
## ReqWorkskill          -45.781            2.236        5.332         2.3995      3.0762 0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
#1:req WASP, work/edu skills, society becomes worse, less immigrants: ANTI-IMMIGRANTS
#2: req work/edu/lang skills, positive economy/jobs, country overall better, more than average im: WORKIMPORTERS?
#3: less immigrants, country worse, few requirements, rel average?
#4: more immigrants, society much better, few requirement, not WASP: LIBERALISTS

res.hcpc$desc.var$category
## $`1`
##                          Cla/Mod Mod/Cla Global                                                                                                         p.value  v.test
## scandparty=radright       65.881 19.2202  7.654 0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001783  21.917
## cntry=DK                  36.831 39.7706 28.331 0.0000000000000000000000000000000000000000109799711349724110174285630535659462528642632702647731727512293055231  13.526
## cntryround=DK 1           40.594 20.6881 13.371 0.0000000000000000000000000000239067215674433822701561670736304480088855841357263327322873430665594780028353206  11.247
## cntryround=NO 1           35.776 30.2294 22.169 0.0000000000000000000000006342729667249244590828780645670103071145183233744648056520544146660509077229050944879  10.310
## scandparty=agrarians      38.561 16.4679 11.205 0.0000000000000000020347792062099747268648085157736515196912934631048039749168232503961917245760560035705566406   8.755
## year=2002                 30.029 61.1468 53.424 0.0000000000000000300958608692736678082096288431062731460984479843305539059628017639624886214733123779296875000   8.446
## cntry=NO                  31.201 43.6239 36.683 0.0000000000000076518349665836929239216687884620106187034006134384256370140064973384141921997070312500000000000   7.773
## cntryround=DK 7           33.467 19.0826 14.960 0.0000000007644366857520701489138108271185773762157467103861563373357057571411132812500000000000000000000000000   6.152
## scandparty=missing        31.320 18.0734 15.140 0.0000117907286422567187089130089083788277548592304810881614685058593750000000000000000000000000000000000000000   4.381
## scandparty=conservatives  22.299 13.2569 15.598 0.0003834241519675663455689329506270723868510685861110687255859375000000000000000000000000000000000000000000000  -3.551
## scandparty=socdemo        20.683 19.7248 25.021 0.0000000000139485495721118663071747160967757482152168391209556830290239304304122924804687500000000000000000000  -6.758
## year=2014                 21.886 38.8532 46.576 0.0000000000000000300958608692736369933305186473326242504513666254934572963364303177513647824525833129882812500  -8.446
## scandparty=greens          3.627  0.3211  2.323 0.0000000000000000267515304100769283155684124499441188502110158461966271659093763446435332298278808593750000000  -8.460
## scandparty=liberals       11.420  3.3945  7.799 0.0000000000000000000005925873871088637083479873737769216507527916019062239879949469112396798209374537691473961  -9.631
## scandparty=socialists     10.829  3.7156  9.002 0.0000000000000000000000000015801997533634097998367857184836487945633561640050859752960349941308996167543821088 -10.871
## cntryround=SE 1           15.007 10.2294 17.884 0.0000000000000000000000000000060434830307566743211305529923391133631644281739170644607416093314039579764983300 -11.368
## cntryround=SE 7            9.782  6.3761 17.102 0.0000000000000000000000000000000000000000000000000000000000000037345534940976276295952096550829666486780647021 -16.775
## cntry=SE                  12.453 16.6055 34.986 0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000007046 -21.854
## 
## $`2`
##                          Cla/Mod Mod/Cla Global               p.value v.test
## scandparty=conservatives   37.42 19.2460 15.598 0.0000000026217986197  5.954
## scandparty=agrarians       35.02 12.9365 11.205 0.0010939308640380283  3.265
## cntryround=DK 1            34.47 15.1984 13.371 0.0013830517486859127  3.198
## scandparty=socdemo         33.09 27.3016 25.021 0.0016318160062029654  3.150
## year=2002                  31.65 55.7540 53.424 0.0049516416437865550  2.810
## cntryround=SE 1            33.38 19.6825 17.884 0.0050499141854996937  2.804
## cntry=DK                   32.46 30.3175 28.331 0.0082375239685092468  2.642
## year=2014                  28.81 44.2460 46.576 0.0049516416437865533 -2.810
## scandparty=missing         26.31 13.1349 15.140 0.0006812457815901431 -3.397
## scandparty=socialists      23.80  7.0635  9.002 0.0000331334015374100 -4.151
## cntryround=SE 7            24.84 14.0079 17.102 0.0000005389646056658 -5.012
## scandparty=greens          12.95  0.9921  2.323 0.0000000119525472869 -5.700
## scandparty=radright        16.19  4.0873  7.654 0.0000000000000000184 -8.503
## 
## $`3`
##                       Cla/Mod Mod/Cla Global           p.value v.test
## cntry=NO                25.66  40.061 36.683 0.000421453182870  3.526
## scandparty=missing      27.34  17.623 15.140 0.000559048411993  3.451
## cntry=SE                25.35  37.756 34.986 0.003472911363971  2.922
## scandparty=christdemo   29.40   6.506  5.199 0.003668671755663  2.905
## cntryround=SE 1         26.04  19.826 17.884 0.011155922364713  2.538
## cntryround=NO 7         26.12  16.137 14.514 0.021076691675254  2.307
## cntryround=NO 1         25.35  23.924 22.169 0.033730913508061  2.123
## scandparty=socdemo      25.16  26.793 25.021 0.039657170130169  2.057
## cntryround=DK 7         20.76  13.217 14.960 0.012759940750217 -2.490
## scandparty=agrarians    17.83   8.504 11.205 0.000009208605499 -4.435
## scandparty=radright     16.19   5.277  7.654 0.000002864984920 -4.680
## cntryround=DK 1         15.75   8.965 13.371 0.000000000011737 -6.783
## cntry=DK                18.39  22.182 28.331 0.000000000002412 -7.008
## 
## $`4`
##                          Cla/Mod Mod/Cla Global                                                                                                    p.value  v.test
## cntry=SE                  32.989 57.8757 34.986 0.00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002064  21.380
## cntryround=SE 7           40.746 34.9427 17.102 0.00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000514467922322014  20.118
## scandparty=socialists     43.850 19.7948  9.002 0.00000000000000000000000000000000000000000000000000000018988173527265574853946763640423672820222287833260  15.686
## scandparty=greens         65.285  7.6041  2.323 0.00000000000000000000000000000000000000000010420425600180123871997167059104335871027807807558936000987389  13.864
## year=2014                 25.452 59.4448 46.576 0.00000000000000000000000000000008593352707989847370778293546198679343957667956140753021953626002813069689  11.733
## scandparty=liberals       30.401 11.8890  7.799 0.00000000003929704831044717631145333662973139279839251969406177522614598274230957031250000000000000000000   6.607
## cntryround=SE 1           25.572 22.9330 17.884 0.00000000490776472252565450332397286497057575793689920828910544514656066894531250000000000000000000000000   5.850
## scandparty=christdemo     14.120  3.6814  5.199 0.00129771165819011244195457788208614147151820361614227294921875000000000000000000000000000000000000000000  -3.216
## scandparty=conservatives  16.512 12.9149 15.598 0.00062560187061323389249439808068586899025831371545791625976562500000000000000000000000000000000000000000  -3.420
## cntryround=DK 7           15.125 11.3458 14.960 0.00000223507824171466472492567773011629128632193896919488906860351562500000000000000000000000000000000000  -4.731
## scandparty=missing        15.024 11.4062 15.140 0.00000113152901731647713442596540900364487924889544956386089324951171875000000000000000000000000000000000  -4.867
## scandparty=agrarians       8.593  4.8280 11.205 0.00000000000000000000001674317179852517861699279379749561761086044103275680675721757756022056717881696386  -9.991
## cntryround=DK 1            9.181  6.1557 13.371 0.00000000000000000000000026035282846787325497922883842758587104195807458966339538770245511101197877223967 -10.395
## cntry=DK                  12.319 17.5015 28.331 0.00000000000000000000000000000848284701117844255231966426207455076641979525988260182745813766458705941454 -11.338
## cntry=NO                  13.386 24.6228 36.683 0.00000000000000000000000000000023855080836362893883821711899547504696580762340601454814210708397242673068 -11.647
## year=2002                 15.139 40.5552 53.424 0.00000000000000000000000000000008593352707989845181249443038672006025630194065646797896544341820757176318 -11.733
## cntryround=NO 1           10.315 11.4665 22.169 0.00000000000000000000000000000000002521594902871092593659830602666812702460416132762070120974495737128394 -12.403
## scandparty=radright        1.730  0.6639  7.654 0.00000000000000000000000000000000000000000000000707795954243250061618775560792750004908498295883950749867 -14.537
#lagre klyngene og faktorane
klynger<-NULL
klynger<-as.data.frame(res.hcpc$data.clust$clust) # lagre klyngene
klynger$idno<-mecin.MFA$idno
colnames(klynger)[colnames(klynger)=="res.hcpc$data.clust$clust"] <- "pcmfakly4"

#klynger$pcmfa1<-res$ind$coord[,1]
#klynger$pcmfa2<-res$ind$coord[,2]
#klynger$pcmfa3<-res$ind$coord[,3]
#klynger$pcmfa4<-res$ind$coord[,4]

scand2<-merge(scand, klynger, "idno", all=TRUE)

scand2$pcmfakly<-scand2$pcmfakly4
sjt.xtab(scand2$cntry, scand2$pcmfakly, show.row.prc = TRUE, show.obs = FALSE)
cntry pcmfakly Total
1 2 3 4
DK 36.7 % 32.1 % 18.7 % 12.5 % 100 %
NO 27 % 28.5 % 25.4 % 19.1 % 100 %
SE 17.4 % 29.6 % 25.2 % 27.8 % 100 %
Total 25.7 % 29.8 % 23.7 % 20.8 % 100 %
χ2=432.124 · df=6 · Cramer’s V=0.147 · p=0.000
sjt.xtab(scand2$cntryround, scand2$pcmfakly, show.row.prc = TRUE, show.obs = FALSE)
cntryround pcmfakly Total
1 2 3 4
DK 1 40.2 % 33.7 % 16.5 % 9.6 % 100 %
DK 7 33.5 % 30.7 % 20.8 % 15.1 % 100 %
NO 1 28.2 % 26.8 % 25.2 % 19.8 % 100 %
NO 7 24.4 % 32 % 25.8 % 17.8 % 100 %
SE 1 15 % 33.4 % 26 % 25.6 % 100 %
SE 7 19 % 27.1 % 24.7 % 29.3 % 100 %
Total 25.7 % 29.8 % 23.7 % 20.8 % 100 %
χ2=496.375 · df=15 · Cramer’s V=0.128 · p=0.000
sjt.xtab(scand2$prtvtbno, scand2$pcmfakly, show.row.prc = TRUE, show.obs = FALSE)
prtvtbno pcmfakly Total
1 2 3 4
The Party Red (R 0 % 30 % 30 % 40 % 100 %
Socialist Left Party
(SV)
8 % 22 % 18 % 52 % 100 %
Labour Party (A) 15.2 % 34 % 26.3 % 24.5 % 100 %
Liberal Party (V) 6.2 % 30.8 % 24.6 % 38.5 % 100 %
Christian Democratic
Party (KRF)
16.3 % 32.7 % 30.6 % 20.4 % 100 %
Centre Party (SP) 30.4 % 28.6 % 30.4 % 10.7 % 100 %
Conservative Party
(H)
26 % 39.2 % 26.9 % 7.8 % 100 %
Progress Party (FRP) 58.5 % 23.8 % 13.1 % 4.6 % 100 %
Coastal Party (KYST) 0 % 50 % 50 % 0 % 100 %
Green Party (MDG) 3.8 % 19.2 % 26.9 % 50 % 100 %
Other 18.8 % 25 % 43.8 % 12.5 % 100 %
Total 23.4 % 32.8 % 25.2 % 18.6 % 100 %
χ2=229.789 · df=30 · Cramer’s V=0.267 · Fisher’s p=0.000
sjt.xtab(scand2$scandparty, scand2$pcmfakly, show.row.prc = TRUE, show.obs = FALSE)
scandparty pcmfakly Total
1 2 3 4
socialists 14.1 % 23.1 % 21.3 % 41.4 % 100 %
socdemo 21.2 % 33 % 24.6 % 21.3 % 100 %
liberals 12.5 % 32.3 % 26.4 % 28.7 % 100 %
christdemo 21.7 % 30.7 % 28.7 % 18.9 % 100 %
agrarians 37.4 % 34.2 % 18.6 % 9.8 % 100 %
conservatives 23.2 % 35.4 % 23.7 % 17.6 % 100 %
radright 57.3 % 18 % 17.5 % 7.2 % 100 %
greens 13.4 % 15.6 % 19.7 % 51.3 % 100 %
other 28.3 % 29.2 % 27.4 % 15.1 % 100 %
missing 28.7 % 26.3 % 27.6 % 17.3 % 100 %
Total 25.7 % 29.8 % 23.7 % 20.8 % 100 %
χ2=1129.183 · df=27 · Cramer’s V=0.194 · p=0.000
#5 clusters
res.hcpc<-HCPC(res ,nb.clust=5,consol=TRUE,min=3,max=12,graph=TRUE) #-1 om automatisk, 0 om cut

MFAclusterstat(res.hcpc)
## [1] 3

## x$data.clust$clust 
##       Frequency Percent
## 1          1307   15.73
## 2          2025   24.37
## 3          1851   22.28
## 4          1697   20.42
## 5          1429   17.20
## Total      8309  100.00
## NULL
## NULL
##  [1] 1.18550 0.32843 0.22818 0.14970 0.08988 0.08940 0.08075 0.07026 0.06126 0.04090
##  [1] 0.8623 0.8890 0.9181 0.9464 0.9437 0.9461 0.9505 0.9546 0.9682 0.9694
## 
## Link between the cluster variable and the quantitative variables
## ================================================================
##          Eta2                                                                 P-value
## Dim.1 0.85208 0.000000000000000000000000000000000000000000000000000000000000000000000
## Dim.2 0.52254 0.000000000000000000000000000000000000000000000000000000000000000000000
## Dim.4 0.03690 0.000000000000000000000000000000000000000000000000000000000000000002453
## Dim.5 0.03375 0.000000000000000000000000000000000000000000000000000000000001733206456
## Dim.3 0.00633 0.000000000096670276507472583585870368395225396551673213707545073702931
## 
## Description of each cluster by quantitative variables
## =====================================================
## $`1`
##        v.test Mean in category          Overall mean sd in category Overall sd                                                                                   p.value
## Dim.5   4.884          0.06346 -0.000000000000002097         0.5622     0.5117 0.000001040734290414789202209883828276204553731076885014772415161132812500000000000000000
## Dim.3   3.335          0.05316 -0.000000000000007849         0.6272     0.6277 0.000853859985650622533431830518679817032534629106521606445312500000000000000000000000000
## Dim.4   2.981          0.03919  0.000000000000001391         0.6344     0.5177 0.002877201607111197489974330210316111333668231964111328125000000000000000000000000000000
## Dim.2 -19.522         -0.38579 -0.000000000000002691         0.6584     0.7782 0.000000000000000000000000000000000000000000000000000000000000000000000000000000000000716
## Dim.1 -58.931         -2.13758 -0.000000000000004516         0.6781     1.4284 0.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
## 
## $`2`
##        v.test Mean in category          Overall mean sd in category Overall sd                                                                                                                                                                                                         p.value
## Dim.2  29.908          0.44984 -0.000000000000002691         0.5001     0.7782 0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001540525701
## Dim.5   4.822          0.04769 -0.000000000000002097         0.5081     0.5117 0.0000014208841319415931165844654143759484554720984306186437606811523437500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
## Dim.4   4.518          0.04521  0.000000000000001391         0.5667     0.5177 0.0000062312489399692643727364689543168907448489335365593433380126953125000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
## Dim.1 -30.338         -0.83753 -0.000000000000004516         0.4533     1.4284 0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003623
## 
## $`3`
##        v.test Mean in category          Overall mean sd in category Overall sd                    p.value
## Dim.1   8.392          0.24565 -0.000000000000004516         0.5582     1.4284 0.000000000000000047771661
## Dim.3  -5.509         -0.07087 -0.000000000000007849         0.5920     0.6277 0.000000036091329609437847
## Dim.5  -9.520         -0.09983 -0.000000000000002097         0.4908     0.5117 0.000000000000000000001734
## Dim.2 -44.832         -0.71498 -0.000000000000002691         0.5000     0.7782 0.000000000000000000000000
## 
## $`4`
##        v.test Mean in category          Overall mean sd in category Overall sd                                                                                     p.value
## Dim.2  45.121           0.7604 -0.000000000000002691         0.5220     0.7782 0.00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
## Dim.1  19.642           0.6076 -0.000000000000004516         0.5144     1.4284 0.00000000000000000000000000000000000000000000000000000000000000000000000000000000000006829
## Dim.5  -9.795          -0.1086 -0.000000000000002097         0.4856     0.5117 0.00000000000000000000011799835902810600695498995343638458991565372525220316848071117239727
## Dim.4 -16.175          -0.1814  0.000000000000001391         0.4704     0.5177 0.00000000000000000000000000000000000000000000000000000000007542322374059803114270197726882
## 
## $`5`
##        v.test Mean in category          Overall mean sd in category Overall sd                                           p.value
## Dim.1  61.135          2.10219 -0.000000000000004516         0.5704     1.4284 0.00000000000000000000000000000000000000000000000
## Dim.5  10.764          0.13260 -0.000000000000002097         0.4737     0.5117 0.00000000000000000000000000510878479273996970062
## Dim.4   9.542          0.11893  0.000000000000001391         0.4172     0.5177 0.00000000000000000000139685902159711768013096993
## Dim.3   4.678          0.07069 -0.000000000000007849         0.6226     0.6277 0.00000289483085825712842243089689686641463595151
## Dim.2 -13.960         -0.26154 -0.000000000000002691         0.5322     0.7782 0.00000000000000000000000000000000000000000002727
MFAclusterplot(res.hcpc)

res.hcpc$desc.var$quanti
## $`1`
##                        v.test Mean in category Overall mean sd in category  Overall sd                                                                                                                                                                                                                                                                                            p.value
## ReqWhite               30.331            3.335        1.543         3.0343      2.3270 0.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000443655338013838598386888146642110634207058910827120187091363713723700483804530953520933
## ReqLang                26.593            7.565        5.213         2.6313      3.4829 0.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008088784595992211554281734354765822661107679131207550986628469449840905171340562337701289422204815132843216708714169448887068046688930
## ReqWorkskill           25.588            7.331        5.332         2.2412      3.0762 0.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002066596525129611052694193306794825016235222830556994991234072017990126892852759148370191839460043340853517603639942037385371994098691964108829416
## ReqWayoflife           24.807            8.425        6.673         1.9436      2.7827 0.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000760674066161522293351982062943452030163536177689639795866216865837502634000625238024493797632090927215899331135811750640864776870072546701400932512864778
## ReqEdu                 19.241            6.481        5.136         2.4127      2.7527 0.000000000000000000000000000000000000000000000000000000000000000000000000000000000166366487405496933119555886426888621442288028609313329796974752499245867728163584028882571192198152550903039991763116820655581997368203081314888855526527180925602803903304328131026319071015301489615862036431
## idno                    4.665       211165.884   172629.878    365969.0087 325298.6359 0.000003084913958770704179559920404818385009093617554754018783569335937500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
## BetterCrime           -34.592            1.510        3.303         1.6342      2.0413 0.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000337134849671021240091114753
## CreateNewJobs         -36.104            4.135        5.824         1.8651      1.8430 0.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001991
## AddWelfareResou       -39.824            2.696        4.760         1.8449      2.0411 0.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
## MoreRaceMajor         -42.240            2.352        3.099         0.6776      0.6962 0.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
## MorePoorCouNonE       -46.926            1.858        2.809         0.5706      0.7979 0.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
## MorePoorCouE          -47.123            1.991        2.902         0.5970      0.7617 0.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
## CountrBetterPlaceLive -48.338            3.012        5.675         1.7305      2.1693 0.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
## CultLifeEnrich        -49.492            3.321        6.304         2.0116      2.3739 0.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
## GodForEconomy         -50.181            2.528        5.361         1.7568      2.2232 0.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
## MoreRaceMinor         -50.238            1.870        2.866         0.5174      0.7807 0.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
## 
## $`2`
##                        v.test Mean in category Overall mean sd in category Overall sd                                                                                                                                                                                                                                                                                          p.value
## ReqWorkskill           35.960            7.470        5.332         1.6678     3.0762 0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003481
## ReqLang                33.130            7.443        5.213         2.3467     3.4829 0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011105332744092881597324103983446532087114772596
## ReqEdu                 32.638            6.873        5.136         1.7301     2.7527 0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000120514464208833102344063257207842343585159801544670414
## ReqWhite               29.535            2.871        1.543         2.5315     2.3270 0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100846375067403524001032765720365346855504731296701879596539814491447125129334322889073283016674
## ReqWayoflife           22.856            7.902        6.673         1.8039     2.7827 0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001262431118183457588125260898854561154701141465952783498796302711442066481048475795545606958383330270120052989316973913071009616601772689474195428382003402223312537912286101
## BetterCrime            -4.624            3.121        3.303         2.0327     2.0413 0.0000037658740877113369330915146337979138024820713326334953308105468750000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
## CreateNewJobs          -5.285            5.636        5.824         1.4755     1.8430 0.0000001258004350875911918996213944080264646174782683374360203742980957031250000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
## AddWelfareResou        -6.582            4.501        4.760         1.6505     2.0411 0.0000000000464534180532466765023669481708169792799623110113316215574741363525390625000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
## GodForEconomy          -8.032            5.016        5.361         1.6122     2.2232 0.0000000000000009556202492221548370362442495614399435958241256147682740618165553314611315727233886718750000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
## MoreRaceMajor         -14.308            2.906        3.099         0.5498     0.6962 0.0000000000000000000000000000000000000000000001942549051182398486410154088424144361564292320054213785424912101851300840289643364296412605631123324728472404340171584072316512958877865457907319068908691406250000000000000000000000000000000000000000000000000000000000000000000000000000000000
## CountrBetterPlaceLive -14.546            5.065        5.675         1.3951     2.1693 0.0000000000000000000000000000000000000000000000061773027007721723667592180483906870784285494672419592984166192045712840721007564613024483210857652033469405158910470643625345577021334975142963230609893798828125000000000000000000000000000000000000000000000000000000000000000000000000000000
## CultLifeEnrich        -14.777            5.626        6.304         1.7447     2.3739 0.0000000000000000000000000000000000000000000000002076003408812593407819460934175376071476872044394058950926472465821503797354426327386122050271609513851283846952432182486657577524802320567687274888157844543457031250000000000000000000000000000000000000000000000000000000000000000000000000
## MorePoorCouE          -19.192            2.620        2.902         0.5592     0.7617 0.0000000000000000000000000000000000000000000000000000000000000000000000000000000004332692666850278723334387415700662256188360883689319276080853278460899474682556059710437382176683457073175058439623923208122694810819568816408428998811562217439861754824440701689547116814178169357223840974
## MorePoorCouNonE       -22.039            2.469        2.809         0.5830     0.7979 0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000120859883031281999960761320293904114571331956669021071762272390725837506422481062193261393115312344807731547909141307412907162139215296167713138118387537154546529609831918863450097
## MoreRaceMinor         -22.435            2.527        2.866         0.5501     0.7807 0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000017884223793621786560236644633220001473664724891384159953732853223252935142837004982102923574941958250608166869607169746863003119905479755086845614790926793851962441496336096811
## 
## $`3`
##                        v.test Mean in category Overall mean sd in category  Overall sd                                                                                                                                                                                                                                             p.value
## idno                   -2.492      156019.6310   172629.878    306410.6795 325298.6359 0.0127132297035661648992865835339216573629528284072875976562500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
## MorePoorCouE           -2.877           2.8574        2.902         0.4697      0.7617 0.0040204025955230086875058503892432781867682933807373046875000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
## CountrBetterPlaceLive  -5.584           5.4268        5.675         1.5367      2.1693 0.0000000234595870586386982998178566892089058626424957765266299247741699218750000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
## BetterCrime            -5.820           3.0600        3.303         1.7223      2.0413 0.0000000059008002234606944303737584929438891867548022673872765153646469116210937500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
## GodForEconomy          -6.606           5.0600        5.361         1.6596      2.2232 0.0000000000394784516973707969728350668793369218981248458533173106843605637550354003906250000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
## MoreRaceMajor          -8.167           2.9822        3.099         0.4593      0.6962 0.0000000000000003158423127490475277603705076800332758605373848284636473238151666009798645973205566406250000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
## AddWelfareResou        -9.293           4.3717        4.760         1.5547      2.0411 0.0000000000000000000150435365494348720647732082569517703401412907733920157403277595431489999100449495017528533935546875000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
## CreateNewJobs         -10.253           5.4371        5.824         1.5102      1.8430 0.0000000000000000000000011471267739591658531384137486890117875599842149511113538552033896305085147737656825484009459614753723144531250000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
## ReqWayoflife          -10.591           6.0686        6.673         2.7242      2.7827 0.0000000000000000000000000329774614211087151770639382730383151811720148591698434424894882934452787492940473157432279549539089202880859375000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
## ReqWhite              -21.964           0.4954        1.543         1.0010      2.3270 0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000642881391724110659413582528264789168058097634851245258056061031315841795783252240932120813075641197046542633430712665642202955610618660
## ReqLang               -29.020           3.1421        5.213         2.7599      3.4829 0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000365822535870261984823761717539534518324035773191104459044
## ReqEdu                -31.750           3.3452        5.136         2.0570      2.7527 0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000321394572660064160350
## ReqWorkskill          -32.969           3.2534        5.332         2.3171      3.0762 0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002297
## 
## $`4`
##                       v.test Mean in category Overall mean sd in category Overall sd                                                                                                                                                                                                     p.value
## GodForEconomy          30.02           6.8061        5.361         1.5640     2.2232 0.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005871
## CountrBetterPlaceLive  26.41           6.9157        5.675         1.5115     2.1693 0.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001075153481809270381513262347161494144022315526255
## CreateNewJobs          26.06           6.8645        5.824         1.4643     1.8430 0.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000009713122784293388605636884278637979916960429454709388
## CultLifeEnrich         25.63           7.6217        6.304         1.4919     2.3739 0.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000736877499015832586535692039507534217866496860605372276919
## AddWelfareResou        24.62           5.8486        4.760         1.6328     2.0411 0.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000080426034542319176089546561220884950778037523192274803706013749829103
## MoreRaceMinor          23.09           3.2563        2.866         0.5204     0.7807 0.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000572575112322857299276627887597170592830181204691260078042285134068014953164641285421
## ReqEdu                 21.95           6.4449        5.136         1.8428     2.7527 0.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000081684333847551627611433670214596171895398439837546944224914463533991879493985158814860753182062
## MoreRaceMajor          20.58           3.4090        3.099         0.5151     0.6962 0.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000416721393312153340842705899176530153768044426601576783272411554642729210603238136077321094603794254964437520
## MorePoorCouE           20.21           3.2357        2.902         0.5328     0.7617 0.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000734503399800332279109049253928572440980688208314554775635248318198590399653831952661583474755676729872792071663
## BetterCrime            20.00           4.1874        3.303         1.9317     2.0413 0.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000058503832575430489216588060016568007787389677319754015108660405873851119083990460240564449831936560481499852939468
## MorePoorCouNonE        18.99           3.1367        2.809         0.5694     0.7979 0.000000000000000000000000000000000000000000000000000000000000000000000000000000019687862005498651061959474842691980938782761806298853111423438405749116907590521561410442988302229169260189099538257267280
## ReqWorkskill           17.86           6.5215        5.332         2.0697     3.0762 0.000000000000000000000000000000000000000000000000000000000000000000000024009676032090616975658511943515186250002415547559689105988522079135032262643349883009659509173033667422508158323484213902593686614
## ReqLang                11.01           6.0442        5.213         2.8663     3.4829 0.000000000000000000000000000323820397736730394046789571462862028537847570902730733646935725346075273900318947095655630619148723781108856201171875000000000000000000000000000000000000000000000000000000000
## ReqWhite              -12.50           0.9128        1.543         1.6203     2.3270 0.000000000000000000000000000000000007335038897711852921181235854028973141307068234947122793848110288042472232021268531072832105172087935329727770294994115829467773437500000000000000000000000000000000000
## 
## $`5`
##                        v.test Mean in category Overall mean sd in category  Overall sd                                                                                                                                                                                                                                          p.value
## MorePoorCouNonE        50.297            3.775        2.809         0.4342      0.7979 0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
## MoreRaceMinor          50.176            3.809        2.866         0.3949      0.7807 0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
## MorePoorCouE           48.875            3.798        2.902         0.4132      0.7617 0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
## MoreRaceMajor          44.051            3.837        3.099         0.3769      0.6962 0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
## CountrBetterPlaceLive  41.130            7.823        5.675         1.6004      2.1693 0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
## CultLifeEnrich         38.492            8.504        6.304         1.4036      2.3739 0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
## GodForEconomy          32.770            7.115        5.361         1.6054      2.2232 0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001571
## AddWelfareResou        29.857            6.227        4.760         1.7909      2.0411 0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000007037502876109477891911464532062733781759069
## CreateNewJobs          24.308            6.903        5.824         1.6366      1.8430 0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001608006888563570147315618392666684202023123864681995352429494458326832389678549401545077647696046834579341093
## BetterCrime            23.689            4.467        3.303         1.5196      2.0413 0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004717607914424271158116687958356907178821871781882123693787967318175758468524319954288447812781370710524805067016238
## idno                   -3.974       141506.655   172629.878    287722.3057 325298.6359 0.0000705545019895987494517458626930306309077423065900802612304687500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
## ReqWhite              -25.292            0.126        1.543         0.4801      2.3270 0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000039155995178439995947369448061578482900121025465894391257710807098180818333174354010615364630487132
## ReqWayoflife          -38.058            4.123        6.673         2.9203      2.7827 0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
## ReqLang               -43.116            1.598        5.213         2.2854      3.4829 0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
## ReqEdu                -44.138            2.211        5.136         2.0759      2.7527 0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
## ReqWorkskill          -48.326            1.753        5.332         2.0569      3.0762 0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
res.hcpc$desc.var$category
## $`1`
##                          Cla/Mod Mod/Cla Global                                                                                         p.value  v.test
## scandparty=radright       48.113 23.4124  7.654 0.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001273  20.187
## cntry=DK                  23.704 42.6932 28.331 0.000000000000000000000000000000000510850535604402605265496379586497005016324578689795346444946  12.159
## cntryround=DK 1           26.643 22.6473 13.371 0.000000000000000000000006310346580287526907664220549663851880060373738579426562542561292799836  10.087
## year=2002                 18.135 61.5914 53.424 0.000000000093630985456988592992110737421319324388924165702974278246983885765075683593750000000   6.477
## cntryround=NO 1           20.304 28.6151 22.169 0.000000002471831977775379906488359540777874356898280439054360613226890563964843750000000000000   5.963
## cntryround=DK 7           21.078 20.0459 14.960 0.000000055010533288123493477124616559195691145589535153703764081001281738281250000000000000000   5.434
## scandparty=agrarians      21.482 15.3022 11.205 0.000000825976897153556864663291083028529016019092523492872714996337890625000000000000000000000   4.929
## scandparty=missing        20.350 19.5868 15.140 0.000002055666134279008671264599508732295873869588831439614295959472656250000000000000000000000   4.748
## cntry=NO                  17.257 40.2448 36.683 0.003777989465298575537388625633639094303362071514129638671875000000000000000000000000000000000   2.896
## scandparty=christdemo     12.269  4.0551  5.199 0.038157235750089044112876024428260279819369316101074218750000000000000000000000000000000000000  -2.073
## cntryround=NO 7           12.604 11.6297 14.514 0.000986315500763645372148125112232719402527436614036560058593750000000000000000000000000000000  -3.294
## scandparty=conservatives  11.651 11.5532 15.598 0.000006106557469454340736727572525044394069482223130762577056884765625000000000000000000000000  -4.523
## year=2014                 12.972 38.4086 46.576 0.000000000093630985456988657615596093126606423717728233668822213076055049896240234375000000000  -6.477
## scandparty=greens          1.554  0.2295  2.323 0.000000000028864196601295022528292308788888719060100607194385702314320951700210571289062500000  -6.652
## scandparty=socdemo        11.111 17.6741 25.021 0.000000000005860409477838833139310813378400723868549837547448078112211078405380249023437500000  -6.883
## scandparty=liberals        6.636  3.2900  7.799 0.000000000000386248885903220278475425036024486666569148496375163404081831686198711395263671875  -7.260
## cntryround=SE 1            9.085 10.3290 17.884 0.000000000000000252068008666068094193839755181551609246399701068364063161197918816469609737396  -8.194
## scandparty=socialists      6.150  3.5195  9.002 0.000000000000000083899692560380373843697139196475008323120999497411742762409403439960442483425  -8.326
## cntryround=SE 7            6.193  6.7330 17.102 0.000000000000000000000000000000018390960243023044651585105082543424372242690769895161636458984 -11.863
## cntry=SE                   7.671 17.0620 34.986 0.000000000000000000000000000000000000000000000000000002129309014608256859399846822342762820003 -15.531
## 
## $`2`
##                          Cla/Mod Mod/Cla Global                                   p.value  v.test
## scandparty=agrarians      36.090 16.5926 11.205 0.000000000000000018116995345797486824493   8.505
## year=2002                 27.619 60.5432 53.424 0.000000000000127580975195140060193911040   7.409
## cntryround=NO 1           30.890 28.0988 22.169 0.000000000000417904463110799996861454595   7.250
## cntryround=DK 1           32.673 17.9259 13.371 0.000000000016345765741167501634825894314   6.735
## cntry=NO                  28.346 42.6667 36.683 0.000000000175637525144578931251159105198   6.381
## cntry=DK                  28.972 33.6790 28.331 0.000000001266839589681405363805045166301   6.072
## scandparty=conservatives  27.006 17.2840 15.598 0.017078888906689623089496521401997597422   2.385
## scandparty=radright       28.302  8.8889  7.654 0.017799801451518583450539523482802906074   2.370
## scandparty=christdemo     28.472  6.0741  5.199 0.044360649635901666654191899397119414061   2.011
## cntryround=SE 1           19.785 14.5185 17.884 0.000003793082744171337218630230686544635  -4.622
## scandparty=liberals       14.969  4.7901  7.799 0.000000001193181488724641380424093021974  -6.081
## year=2014                 20.646 39.4568 46.576 0.000000000000127580975195140009706813106  -7.409
## scandparty=greens          4.663  0.4444  2.323 0.000000000000101819089949762574987008801  -7.439
## scandparty=socialists     12.299  4.5432  9.002 0.000000000000000008100986883693434693875  -8.598
## cntryround=SE 7           13.019  9.1358 17.102 0.000000000000000000000000000000702277680 -11.554
## cntry=SE                  16.477 23.6543 34.986 0.000000000000000000000000000000000003165 -12.568
## 
## $`3`
##                       Cla/Mod Mod/Cla Global           p.value v.test
## cntry=SE                24.36  38.250 34.986 0.000888310698780  3.324
## scandparty=missing      25.76  17.504 15.140 0.001496102532267  3.175
## cntry=NO                24.15  39.762 36.683 0.001896293400110  3.106
## cntryround=SE 1         25.24  20.259 17.884 0.002772383109447  2.992
## cntryround=NO 7         24.71  16.099 14.514 0.029495820764562  2.177
## scandparty=christdemo   26.39   6.159  5.199 0.037962879162260  2.075
## cntryround=DK 7         19.23  12.912 14.960 0.004580018787660 -2.835
## scandparty=radright     15.72   5.402  7.654 0.000019120245098 -4.275
## scandparty=agrarians    16.33   8.212 11.205 0.000001856416975 -4.768
## cntryround=DK 1         15.12   9.076 13.371 0.000000000169838 -6.386
## cntry=DK                17.29  21.988 28.331 0.000000000002702 -6.992
## 
## $`4`
##                          Cla/Mod Mod/Cla Global                        p.value  v.test
## scandparty=liberals       27.160  10.371  7.799 0.0000178573821059935290982319   4.290
## scandparty=conservatives  24.151  18.444 15.598 0.0003644021674581277123357304   3.565
## cntryround=SE 1           23.822  20.860 17.884 0.0004073037109074265950392491   3.535
## scandparty=socdemo        23.136  28.344 25.021 0.0004510839587623383648874731   3.508
## cntry=SE                  22.222  38.067 34.986 0.0029807219191392694476738789   2.970
## cntryround=NO 7           23.466  16.676 14.514 0.0051528452403577966814407496   2.797
## year=2014                 21.705  49.499 46.576 0.0068649615888415078251982848   2.703
## cntryround=DK 1           17.552  11.491 13.371 0.0097844497214384408556586692  -2.583
## year=2002                 19.306  50.501 53.424 0.0068649615888415086925600228  -2.703
## scandparty=missing        16.614  12.316 15.140 0.0002099493654479549025436425  -3.707
## cntryround=NO 1           16.721  18.150 22.169 0.0000055856694880584071671425  -4.541
## scandparty=radright        6.289   2.357  7.654 0.0000000000000000000000006159 -10.313
## 
## $`5`
##                          Cla/Mod Mod/Cla Global                                                                                                p.value  v.test
## cntry=SE                  29.274 59.5521 34.986 0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004635  20.907
## cntryround=SE 7           36.805 36.5990 17.102 0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000006742688943448  19.875
## scandparty=socialists     38.904 20.3639  9.002 0.0000000000000000000000000000000000000000000000000272939477576204288755368338550185098498056741695212  14.913
## scandparty=greens         59.585  8.0476  2.323 0.0000000000000000000000000000000000000000715318103436682937460393927241707593207554149299186805176123  13.388
## year=2014                 22.196 60.1120 46.576 0.0000000000000000000000000000183108823524346155834617325785322104147322623644072109672306339551506160  11.271
## scandparty=liberals       27.315 12.3863  7.799 0.0000000000195307902697568195415801219435745703090212543884263141080737113952636718750000000000000000   6.709
## cntryround=SE 1           22.073 22.9531 17.884 0.0000000852964167410430645894399968344468110359457568847574293613433837890625000000000000000000000000   5.356
## cntryround=NO 7           14.760 12.4563 14.514 0.0139355980580345688996102282430911145638674497604370117187500000000000000000000000000000000000000000  -2.459
## scandparty=christdemo     12.269  3.7089  5.199 0.0039378352135607782094628426250437769340351223945617675781250000000000000000000000000000000000000000  -2.883
## scandparty=conservatives  13.580 12.3163 15.598 0.0001219748947061572602081069849333516685874201357364654541015625000000000000000000000000000000000000  -3.842
## cntryround=DK 7           12.711 11.0567 14.960 0.0000028249793323985603887295824099279428764930344186723232269287109375000000000000000000000000000000  -4.683
## scandparty=missing        12.162 10.7068 15.140 0.0000001049992121381847176006990628518988906137110461713746190071105957031250000000000000000000000000  -5.318
## cntryround=DK 1            8.011  6.2281 13.371 0.0000000000000000000047146810926580070822938584849054311925413808608366551420806866978807647683424875  -9.415
## scandparty=agrarians       7.089  4.6186 11.205 0.0000000000000000000022621069333636964678862937101189190280337814995328313600231502633608471342085977  -9.492
## cntry=DK                  10.493 17.2848 28.331 0.0000000000000000000000000338668598453841076183257154135073513593391001005040590218308712184029293790 -10.588
## year=2002                 12.841 39.8880 53.424 0.0000000000000000000000000000183108823524346380042371617756053451944055950030653114514217039794029642 -11.271
## cntry=NO                  10.860 23.1631 36.683 0.0000000000000000000000000000000044289665572208825665441814868673005653666865007861427016977252441189 -11.982
## cntryround=NO 1            8.306 10.7068 22.169 0.0000000000000000000000000000000002148352964350388620033355129959207761303624731470068083164736411959 -12.230
## scandparty=radright        1.572  0.6998  7.654 0.0000000000000000000000000000000000000004285258414794688396576297602999990109232269746164728536672332 -13.254
klynger<-NULL
klynger<-as.data.frame(res.hcpc$data.clust$clust) # lagre klyngene
klynger$idno<-mecin.MFA$idno
colnames(klynger)[colnames(klynger)=="res.hcpc$data.clust$clust"] <- "pcmfakly5"
scand2<-merge(scand2, klynger, "idno", all=TRUE)
scand2$pcmfakly<-scand2$pcmfakly5
sjt.xtab(scand2$cntry, scand2$pcmfakly, show.row.prc = TRUE, show.obs = FALSE)
cntry pcmfakly Total
1 2 3 4 5
DK 23.3 % 28.7 % 17.7 % 19.6 % 10.7 % 100 %
NO 14.6 % 24 % 23.6 % 19.5 % 18.3 % 100 %
SE 11.1 % 20.2 % 23.7 % 20.6 % 24.4 % 100 %
Total 14.8 % 23.4 % 22.6 % 19.9 % 19.3 % 100 %
χ2=427.433 · df=8 · Cramer’s V=0.128 · p=0.000
sjt.xtab(scand2$cntryround, scand2$pcmfakly, show.row.prc = TRUE, show.obs = FALSE)
cntryround pcmfakly Total
1 2 3 4 5
DK 1 25.6 % 31.7 % 16.2 % 17.9 % 8.6 % 100 %
DK 7 21.1 % 25.7 % 19.2 % 21.3 % 12.7 % 100 %
NO 1 15 % 23.8 % 23.4 % 18.3 % 19.5 % 100 %
NO 7 13.2 % 24.7 % 24.4 % 23.1 % 14.6 % 100 %
SE 1 9.1 % 19.8 % 25.2 % 23.8 % 22.1 % 100 %
SE 7 11.8 % 20.4 % 23.2 % 19.3 % 25.3 % 100 %
Total 14.8 % 23.4 % 22.6 % 19.9 % 19.3 % 100 %
χ2=508.844 · df=20 · Cramer’s V=0.099 · p=0.000
sjt.xtab(scand2$prtvtbno, scand2$pcmfakly, show.row.prc = TRUE, show.obs = FALSE)
prtvtbno pcmfakly Total
1 2 3 4 5
The Party Red (R 0 % 20 % 10 % 30 % 40 % 100 %
Socialist Left Party
(SV)
8.9 % 1.8 % 17.9 % 21.4 % 50 % 100 %
Labour Party (A) 7.6 % 19.6 % 24.6 % 28 % 20.2 % 100 %
Liberal Party (V) 1.4 % 5.8 % 20.3 % 39.1 % 33.3 % 100 %
Christian Democratic
Party (KRF)
3.9 % 35.3 % 23.5 % 15.7 % 21.6 % 100 %
Centre Party (SP) 15.5 % 25.9 % 29.3 % 22.4 % 6.9 % 100 %
Conservative Party
(H)
12.8 % 32.8 % 26.7 % 23.3 % 4.4 % 100 %
Progress Party (FRP) 34.8 % 35.5 % 15.2 % 10.1 % 4.3 % 100 %
Coastal Party (KYST) 0 % 50 % 50 % 0 % 0 % 100 %
Green Party (MDG) 3.8 % 3.8 % 26.9 % 19.2 % 46.2 % 100 %
Other 5 % 30 % 45 % 20 % 0 % 100 %
Total 12.2 % 24.8 % 24.1 % 23.5 % 15.3 % 100 %
χ2=293.092 · df=40 · Cramer’s V=0.253 · Fisher’s p=0.000
sjt.xtab(scand2$scandparty, scand2$pcmfakly, show.row.prc = TRUE, show.obs = FALSE)
scandparty pcmfakly Total
1 2 3 4 5
socialists 9.9 % 13.2 % 20.1 % 20.1 % 36.6 % 100 %
socdemo 11.2 % 23.6 % 23.2 % 22.5 % 19.5 % 100 %
liberals 6.8 % 15.5 % 26.9 % 25.7 % 25.1 % 100 %
christdemo 11.6 % 25.5 % 24.3 % 19.5 % 19.1 % 100 %
agrarians 19.8 % 32.9 % 18.1 % 19.3 % 9.8 % 100 %
conservatives 12.3 % 27 % 22.7 % 21.4 % 16.6 % 100 %
radright 38.5 % 24.6 % 17.5 % 10.3 % 9.1 % 100 %
greens 8.9 % 13.5 % 16.5 % 16 % 45 % 100 %
other 20 % 19.3 % 28.6 % 18.6 % 13.6 % 100 %
missing 17.2 % 23.6 % 26.1 % 17.7 % 15.3 % 100 %
Total 14.8 % 23.4 % 22.6 % 19.9 % 19.3 % 100 %
χ2=1290.324 · df=36 · Cramer’s V=0.157 · p=0.000
#1:
#- radright, DK, 2002. NOT sweden, 2014,socialists, democrats, green
#2:
#- agrarians, 2002, NOK/DK, NOT SE
#3: 
#- SE/NO, NOT DK
#4: 
#- liberals, conservative, SE, NOT NO1 radright
#5:
#- SE, socialists, greens, 2014, NOT NO/DK radright

#write.dta(scand2, "ESS17scand.dta")

DO NOT RUN