Description Usage Arguments Author(s) References Examples
View source: R/recode_from_ISCO88_to_ISEI.R
This function recodes the International Socio-Economic Index of Occupational Status (ISEI) from ISCO 1988 codes
1 | recode_from_ISCO88_to_ISEI(ISCO88, data)
|
ISCO88 |
The name of the variable containing ISCO 1988 codes, ideally coded on 4 digits, although the function also supportes variables coded on 3 digits, and even on 2 digits |
data |
The name of the dataset |
Julie Falcon (University of Lausanne)
The ISEI index was constructed by Harry Ganzeboom, Paul De Graaf and Donald Treiman. Please refer to the following article to find out more about this index and to cite it:
The function was constructed from Harry Ganzeboom's SPSS syntax available on his website:
http://www.harryganzeboom.nl/isco88/index.htm
This syntax is part of the "International Stratification and Mobility File" project which provides several social position conversion tools in SPSS format:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | #load the data
data(data_MCH2007)
#visualize the data
str(data_MCH2007)
head(data_MCH2007)
#check the variables needed for social position coding
table(data_MCH2007$iscoR,useNA="always")
#Then, you can run the function:
data_MCH2007 <- recode_from_ISCO88_to_ISEI(
ISCO88=data_MCH2007$iscoR,
data=data_MCH2007)
#Check the variable created:
names(data_MCH2007)
head(data_MCH2007)
table(data_MCH2007$ISEI,useNA="always")
|
'data.frame': 300 obs. of 2 variables:
$ iscoR : num 5123 3231 2113 2131 NA ...
$ nb_emp_SE: num NA NA NA NA NA NA NA 0 NA 0 ...
iscoR nb_emp_SE
6 5123 NA
19 3231 NA
22 2113 NA
30 2131 NA
31 NA NA
32 4223 NA
100 1000 1143 1210 1222 1223 1225 1226 1230 1231 1313 1314 1317 1319 2000 2100
1 2 1 1 1 2 2 1 1 3 1 2 1 1 2 1
2113 2131 2140 2141 2142 2143 2148 2149 2211 2212 2221 2223 2300 2310 2320 2351
2 4 3 1 1 2 1 1 2 1 1 1 1 2 3 1
2410 2411 2419 2429 2432 2441 2445 2446 2452 2470 3100 3113 3114 3115 3118 3119
1 1 3 1 1 1 1 3 1 1 1 1 1 1 1 2
3120 3143 3211 3221 3226 3228 3231 3310 3320 3340 3400 3410 3412 3413 3414 3415
2 1 1 4 5 1 7 3 6 1 5 3 1 1 2 5
3416 3419 3430 3431 3433 3460 3470 3471 3473 3475 3480 4000 4100 4110 4115 4121
1 4 3 5 3 2 1 3 2 1 1 2 1 8 1 1
4131 4133 4141 4142 4190 4200 4210 4212 4222 4223 5120 5121 5122 5123 5130 5131
2 2 1 1 16 1 1 1 1 2 1 1 3 8 1 3
5132 5133 5141 5161 5169 5220 6112 6120 6130 7000 7100 7133 7136 7141 7200 7222
9 1 4 1 3 7 1 1 8 5 1 1 2 2 3 1
7224 7230 7231 7241 7242 7311 7340 7400 7410 7411 7412 7422 7430 7433 7440 8000
1 1 3 2 1 1 1 1 1 1 3 2 1 1 1 1
8150 8251 8280 8311 8320 8323 8324 8330 9130 9141 9151 9152 9161 9320 9999 <NA>
1 1 1 1 3 1 3 1 2 1 1 1 1 1 2 4
[1] "iscoR" "nb_emp_SE" "ISEI"
iscoR nb_emp_SE ISEI
6 5123 NA 34
19 3231 NA 38
22 2113 NA 74
30 2131 NA 71
31 NA NA NA
32 4223 NA 52
16 20 23 24 25 26 27 29 30 31 32 33 34 35 36 38
2 1 12 1 15 1 1 6 7 8 3 5 26 1 1 20
39 40 41 42 43 45 46 48 49 50 51 52 53 54 55 56
19 7 1 1 9 6 3 1 3 5 24 6 6 12 15 8
58 59 60 61 65 67 68 69 70 71 73 74 77 78 82 83
1 4 5 1 1 3 2 17 4 5 3 2 5 1 1 1
88 <NA>
1 7
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.