/*********************************************** This program generates dataset vitaminD, both for girls and women, and from all countries *******************************************/ FILENAME vitamind URL "http://staff.pubhealth.ku.dk/~linearpredictors/datafiles/VitaminD.csv"; PROC FORMAT; VALUE categoryf 1 = "Girl" 2 = "Woman"; VALUE sunf 1 = "Avoid sun" 2 = "Sometimes in sun" 3 = "Prefer sun"; VALUE countryf 1 = "Denmark" 2 = "Finland" 4 = "Ireland" 6 = "Poland"; RUN; DATA vitamind; INFILE vitamind DLM=';' FIRSTOBS=2; INPUT country category vitd age bmi sunexp vitdintake; FORMAT category categoryf. ; FORMAT country countryf. ; FORMAT sunexp sunf. ; LABEL vitd = "Vitamin D" sunexp="Sun exposure" bmi = "BMI"; RUN; DATA irlwomen; SET vitamind; WHERE country=4 and category=2; RUN;