This function allows you to calculate the level of school completion

level_completion(
  data = ech::toy_ech_2018,
  e197 = "e197",
  e197_1 = "e197_1",
  e201 = "e201",
  e51_4 = "e51_4",
  e51_5 = "e51_5",
  e51_6 = "e51_6",
  e51_7_1 = "e51_7_1",
  e51_7 = "e51_7",
  e51_8 = "e51_8",
  e51_9 = "e51_9",
  e51_10 = "e51_10",
  e212 = "e212",
  e215 = "e215",
  e218 = "e218",
  e221 = "e221",
  n = 4
)

Arguments

data

data.frame

e197

Variable name of attends primary school

e197_1

Variable name of completed primary

e201

Variable name of attends secondary

e51_4

Variable name of years passed in lower secondary

e51_5

Variable name of years passed in upper secondary

e51_6

Variable name of years passed in technical upper secondary

e51_7_1

Variable name of technical education requirements

e51_7

Variable name of years passed in technical education

e51_8

Variable name of years passed in magisterio/profesorado

e51_9

Variable name of years passed in university or similar

e51_10

Variable name of years passed in tertiary (non-university)

e212

Variable name of attendance technical school (non-university)

e215

Variable name of attendance magisterio

e218

Variable name of attendance university

e221

Variable name of attendance tertiary

n

years of tertiary

Value

data.frame

Details

Disclaimer: This script is not an official INE product. Aviso: El script no es un producto oficial de INE.

See also

Examples

# \donttest{
toy_ech_2018 <- level_completion(data = ech::toy_ech_2018)
#> Variables have been created: 
#>  	 primary_completion (primaria completa);
#>          lower_secondary_completion (ciclo basico completo) &
#>          upper_secondary_completion (bachillerato completo) &
#>           tertiary_completion (terciaria completa)
# }