clean_family: Family status

Description Usage Arguments Details Value Examples

View source: R/clean_family.R

Description

Process the data on the number of children in the household and the relationship status of each respondent.

Usage

1

Arguments

data

Data table - the Health Survey for England dataset.

Details

NUMBER OF CHILDREN AGE 0-15 YEARS IN THE HOUSEHOLD

Categorised into: 0, 1, 2, 3+. The problem with the Health Survey for England is that from 2015 onwards, the number of children in the household is not provided as this information could be identifiable (you can get it if you apply and pay for a secure dataset). Therefore, for years 2015+, the number of children in the household is completely missing and needs to be imputed.

RELATIONSHIP STATUS

In previous versions of modelling (the SAPM alcohol binge model) relationship status has been described as married/not-married. Here, we include more detail by using:

Value

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

Examples

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

data_2001 <- read_2001()

data_2001 <- clean_family(data = data_2001)


## End(Not run)

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