View source: R/alc_drink_freq.R
alc_drink_freq | R Documentation |
Convert the surveyed drink frequency to a measure of days per week on which drinking occurred.
alc_drink_freq(x)
x |
Drinking frequency |
Returns a numeric translation (days/week) of the categorical drinking frequency variable.
Almost every day |
7 |
Five or six days a week |
5.5 |
Three or four days a week |
3.5 |
Once or twice a week |
1.5 |
Once or twice a month |
0.375 |
Once every couple of months |
0.188 |
Once or twice a year |
0.029 |
## Not run:
alc_drink_freq(1)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.