read_SHeS_2008: Read Scottish Health Survey 2008

Description Usage Arguments Details Value Examples

View source: R/read_SHeS_2008.R

Description

Reads and does basic cleaning on the Scottish Health Survey 2008.

Usage

1
2
3
4
5
read_SHeS_2008(
  root = c("X:/", "/Volumes/Shared/"),
 
    file = "ScHARR/PR_Tobacco_mup/Data/Scottish Health Survey/SHeS 2008/UKDA-6383-tab/tab/shes08i_v11.tab"
)

Arguments

root

Character - the root directory.

file

Character - the file path and name.

Details

The Scottish Health Survey is designed to yield a representative sample of the general population living in private households in Scotland every year. An initial sample of 9,906 addresses were selected, comprising of three sample types:

Note: Optional NHS Health Board boost - NHS Health Boards were given the option to boost their samples beyond the levels which is funded centrally. In 2008, Fife Borders and Grampian Health Boards chose to boost the number of adults interviewed. These cases have been included in the main 2008 file, and their additional selection probability has been adjusted for in the weighting scheme.

MISSING VALUES

Value

Returns a data table. Note that:

Examples

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

data_2008 <- read_SHeS_2008("X:/", 
"ScHARR/PR_Tobacco_mup/Data/Scottish Health Survey/SHeS 2008/UKDA-6383-tab/tab/shes08i_v11.tab")


## End(Not run)

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