read_2011: Read HSE 2011

Description Usage Arguments Details Value Examples

View source: R/read_2011.R

Description

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

Usage

1
2
3
4
read_2011(
  root = c("X:/", "/Volumes/Shared/"),
  file = "ScHARR/PR_Consumption_TA/HSE/HSE 2011/UKDA-7260-tab/tab/hse2011ai.tab"
)

Arguments

root

Character - the root directory.

file

Character - the file path and name.

Details

The HSE 2011 included a general population sample of adults and children, representative of the whole population at both national and regional level. For the sample, 8,992 addresses were randomly selected in 562 postcode sectors, issued over twelve months from January to December 2011. 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.

In each selected household, all individuals were eligible for inclusion in the survey. Where there were three or more children aged 0-15 in a household, two of the children were selected at random. A nurse visit was arranged for all participants who consented.

A total of 8,610 adults aged 16 and over and 2,007 children aged 0-15 were interviewed. A household response rate of 66 population sample, 5,715 adults and 1,257 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

5.6 Drinking diary weight

The drinking diary was given to all participants aged 18 and over who completed the main HSE interview and had had an alcoholic drink in the previous 12 months. A drinking diary weight has been generated for all adults eligible for the drinking diary. This weight (wt_drink) should be used on all analysis of drinking diary questions.

MISSING VALUES

Value

Returns a data table. Note that:

Examples

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

data_2011 <- read_2011("X:/", 
"ScHARR/PR_Consumption_TA/HSE/HSE 2011/UKDA-7260-tab/tab/hse2011ai.tab")


## End(Not run)

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