read_2012: Read HSE 2012

Description Usage Arguments Details Value Examples

View source: R/read_2012.R

Description

Reads and does basic cleaning on the Health Survey for England 2012.

Usage

1
2
3
4
read_2012(
  root = c("X:/", "/Volumes/Shared/"),
  file = "ScHARR/PR_Consumption_TA/HSE/HSE 2012/UKDA-7480-tab/tab/hse2012ai.tab"
)

Arguments

root

Character - the root directory.

file

Character - the file path and name.

Details

The HSE 2012 included a general population sample of adults and children, representative of the whole population at both national and regional level. For the sample, 9,024 addresses were randomly selected in 564 postcode sectors, issued over twelve months from January to December 2013. Where an address was found to have multiple dwelling units, one dwelling unit was selected at random and where there were multiple households at a dwelling unit, one household was selected at random.

A total of 8,291 adults aged 16 and over and 2,043 children aged 0-15 were interviewed. A household response rate of 64 population sample, 5,470 adults and 1,203 children had a nurse visit.

WEIGHTING

5.2 Individual weight

For analyses at the individual level, the weighting variable to use is (wt_int). These weights are generated separately for adults and children:

For analysis of children aged 0-15 in both the Core and the Boost sample, taking into account child selection only and not adjusting for non-response, the (wt_child) variable can be used. For analysis of children aged 2-15 in the only Boost sample the (wt_childb) variable can

MISSING VALUES

Value

Returns a data table. Note that:

Examples

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

data_2012 <- read_2012("X:/", 
"ScHARR/PR_Consumption_TA/HSE/HSE 2012/UKDA-7480-tab/tab/hse2012ai.tab")


## End(Not run)

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