clean_education: Education variables

Description Usage Arguments Details Value Examples

View source: R/clean_education.R

Description

Process the data on education.

Usage

1

Arguments

data

Data table - the Health Survey for England dataset.

Details

The main education variable used is a four category description of the age at which someone finished full-time education. The categories are:

If someone was still in full time education at the time of the survey, then if they were younger than 18 years, we assumed they would leave at 16-18, and if they were older than 18 years, we assumed they would leave at 19 years or over.

A further education variable is also produced - which indicates whether an individual reached a degree as their top qualification or not. Here a degree is defined as an "NVQ4/NVQ5/Degree or equiv".

Value

Returns an updated version of data with the new education variables:

Examples

1
2
3
4
5
6
7
8
## Not run: 

data_2016 <- read_2016()

data_2016 <- clean_education(data = data_2016)


## End(Not run)

dosgillespie/hseclean documentation built on May 2, 2020, 1:15 a.m.