View source: R/alc_drink_now_allages.R
alc_drink_now_allages | R Documentation |
Clean the data on whether someone is a current drinker (drank in last 12 months) and if they did drink how frequently they did so. Several definitions are used for youth drinking (< 16 years).
alc_drink_now_allages(data)
data |
Data table - the survey dataset. |
Combines information from adults and children. In general, someone is classed as a drinker even if they only reported drinking once or twice a year - which is a less strict definition than used by some other surveys. Any missing data is supplemented by responses to if currently drinks or if always non-drinker.
For youth drinking, variables are also created for: drinks at least once a week, drinks at least once a month, and drank in the last week.
Note: The Scottish Health Survey dataset does not have drinking data on children younger than 16 years old.
Drank at all in the last 12 months (drinker, non_drinker).
Frequency of drinking, expressed in terms of the expected number of drinking ocassions per week (numerical variable calculated from categorical responses to how frequently someone drinks).
Youth drinks at least once a week (yes, no).
Youth drinks at least once a month (yes, no).
Youth drank in the last week (yes, no).
## Not run:
data <- read_2017()
data <- clean_age(data)
data <- alc_drink_now_allages(data)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.