getISCED: Calcualtion of ISCED level of parent

Description Usage Author(s) Examples

Description

ISCED is coded by several variables. This function combines them int one variable.

Usage

1

Author(s)

Przemyslaw Biecek

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
library(PISA2009lite)
iscedFather <- 
  getISCED("ISCED level 6" = student2009$ST15Q01, 
         "ISCED level 5A" = student2009$ST15Q02, 
         "ISCED level 5B" = student2009$ST15Q03, 
         "ISCED level 4" = student2009$ST15Q04, 
         base = as.character(student2009$ST14Q01))
         
table(iscedFather)

iscedMother <- 
  getISCED("ISCED level 6" = student2009$ST11Q01, 
         "ISCED level 5A" = student2009$ST11Q02, 
         "ISCED level 5B" = student2009$ST11Q03, 
         "ISCED level 4" = student2009$ST11Q04, 
         base = as.character(student2009$ST10Q01))

table(iscedMother)

pbiecek/PISAtools documentation built on May 24, 2019, 10:35 p.m.