Dietary Pattern
To classify subjects into a dietary patern, we use a maximum consumption frequency of 1/month, rather than complete abstinence.
For instance, if a subject consumes meat more than once per month, they are considered NONVEG.
Alternatively, if a subject consumes meat, fish, and dairy less than 1/month, then they are classified as VEGAN.
| VEGE_GROUP | VEGAN | LACTO | PESCO | SEMI | NONVEG |
|---|---|---|---|---|---|
| 1 | 1 | 0 | 0 | 0 | 0 |
| 2 | 0 | 1 | 0 | 0 | 0 |
| 3 | 0 | 0 | 1 | 0 | 0 |
| 4 | 0 | 0 | 0 | 1 | 0 |
| 5 | 0 | 0 | 0 | 0 | 1 |
This code calculates the dietary pattern based on the frequency of consumption of various hardcoded questions and write-ins.
NOTE: you will likely need to merge in a dataset that has the FISHOTHF variable.
Different methods/data sources
The file ''s:/shared/research/Source Data/Historic/Dietary Pattern - Generic/ahs-data-dietary-patterns.csv'' contains a collection of AHS dietary patterns.
The groups of dietary pattern variables are:
- ''*_gen_bl'' - historic dietary pattern produced by jing, believed to be singly imputed. ~91,000 subjects only.
- ''*_z_sf'' - zero-imputed shortform dietary pattern. 964 subjects only.
- ''*_z_bl'' - zero-imputed baseline dietary pattern. 95863 subjects (all current subjects).
The code used to produce these variables is: ''S:\SHARED\RESEARCH\Utility Code\Dietary Pattern Construction\detailed-dietary-pattern-construction.R''