Description Usage Arguments Details Value Author(s) References Examples
Mediterranean Adherence score index, as modified in 2003, whith the addition of fish item.
1 2 3 4 |
data |
Your data set with nutritional information about food or nutrient consumption. Each row is expected to be a person, and food or nutrient intake are in columns |
Vegetables |
Numeric variable with Vegetables consumption as grams |
Legumes |
Numeric variable with Legumes consumption as grams |
FruitAndNuts |
Numeric variable with consumption of Fruits and Nuts as grams |
Cereals |
Numeric variable with Cereals consumption as grams |
Potatoes |
Numeric variable with Potatoes consumption as grams |
Fish |
Numeric variable with Fish consumption as grams |
Meat |
Numeric variable with Meat consumption as grams |
Dairy |
Numeric variable with Dairy consumption as grams |
Alcohol |
Numeric variable with Alcohol consumption as etanol grams from any beberage origin |
Fats |
Optional. Numeric variable with a ratio of consumption of Mono Unsaturated Fatty Acids (MUFA) over Saturated Fatty Acids (SFA). If it is not provided, then individual MUFA and SFA should be provided |
MUFA |
Optional if Fats is provided. Numeric variable with consumption of Mono Unsaturated Fatty Acids, units should be the same as used with PUFA and SFA |
SFA |
Optional if Fats is provided. Numeric variable with consumption of Saturated Fatty Acids |
Sex |
Vector with gender, it can be numeric, factor or character, as long as its values are provided by 'men' and 'women' arguments. If 'Sex' argument is character or factor, and values for male are either 'man', 'male', 'MAN' or 'MALE', and for females are 'woman', 'female', 'WOMAN' or 'FEMALE', then, the arguments 'men' and 'women' can be missing |
men |
A character string with the value of male gender, default is "male" |
women |
A character string with the value of female gender, default is "female" |
frequency |
A character string. Allowed values are 'daily', 'weekly' and 'monthly'. It informs about the frequency which food or nutrient consumption refers to (i.e. wether the rest of arguments are 'grams per day' or 'grams per week' or 'grams per month') |
output |
A character string to set which output should the formula give, allowed values are 'data.frame', 'score' and 'percent' (default). |
rm.na |
Logical. If set to FALSE (default), a diet score will be computed only if a person has all score components informed. If set to TRUE, NA values in score components will be drop off and a value of available components will be returned, but percent of score adherence will be computed with basis of the whole score range (see Details) |
This score is an update of the landmark first Mediterranean Diet Score (MDS), published in 1995, but including fish consumption.
Computed MDS03 score. Depending on 'output' argument, value can be a data.frame, or a vector:
if output = 'data.frame' |
A data frame with a row corresponding to each person in data. Columns are the score of each component, as well as the global score as natural sum ('absolute' column) and as percentage ('percent' column) |
if output = 'score' |
Instead of the full data.frame, just the integer vector corresponding to the absolute points of adherence to Mediterranean Diet for each person, from 0 (min.) to 9 (max.) |
if output = 'percent' |
Instead of the full data.frame, just the numeric vector corresponding to the percent of adherence to Mediterranean Diet for each person, from 0 (min. adherence) to 100 percent (max. adhrence) |
Miguel Menendez
Trichopoulou, A., A. Kouris-Blazos, M. L. Wahlqvist, C. Gnardellis, P. Lagiou, E. Polychronopoulos, T. Vassilakou, L. Lipworth, and D. Trichopoulos. 1995. "Diet and Overall Survival in Elderly People." BMJ (Clinical Research Ed.) 311 (7018): 1457–60.
Trichopoulou, Antonia, Tina Costacou, Christina Bamia, and Dimitrios Trichopoulos. 2003. "Adherence to a Mediterranean Diet and Survival in a Greek Population." New England Journal of Medicine 348 (26): 2599–2608. doi:10.1056/NEJMoa025039.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | MedDiet <- computeMDS03(data = nutriSample,
Vegetables = P41grCom + P42grCom,
Legumes = P46grCom,
FruitAndNuts = P50grCom + P52grCom + P53grCom,
Cereals = P55grCom + P56grCom + P57grCom + P59grCom +
P60grCom + P61grCom + P62grCom,
Fish = P35grCom + P36grCom + P37grCom + P38grCom,
Meat = P29grCom + P30grCom + P31grCom + P32grCom,
Dairy = P19grCom + P20grCom + P20grCom + P22grCom +
P23grCom + P24grCom + P25grCom + P26grCom + P27grCom,
Alcohol = 12 * (P94rac + P96rac + P97rac + P98rac + P99rac),
Potatoes = P43grCom + P44grCom + P45grCom,
MUFA = totalGrasaMonoins,
SFA = totalGrasaSat,
Sex = SEXO, men = "Hombre", women = "Mujer", frequency = "daily",
output = "percent", rm.na = FALSE)
hist(MedDiet)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.