FILENAME goptions URL "http://192.38.117.59/~linearpredictors/datafiles/goptions.sas"; %include goptions; FILENAME url URL "http://192.38.117.59/~linearpredictors/datafiles/readVitaminD.sas"; %include url; /* Women from Ireland and Poland */ PROC FORMAT; VALUE bmigroupf 0 = "Normal weight" 1 = "Over weight"; RUN; DATA irpo; SET vitamind (WHERE = (country in (4,6) and category=2)); if bmi > 0 then bmigroup = 0; if bmi >= 25 then bmigroup = 1; logvitd=log10(vitd); RUN; title 'Expected levels in additive model'; PROC GLM DATA=irpo; CLASS country bmigroup; MODEL logvitd = country bmigroup; format country countryf.; format bmigroup bmigroupf.; estimate 'Expected level, Normal weight Polish women' intercept 1 country 0 1 bmigroup 1 0; estimate 'Expected level, Normal weight Irish women' intercept 1 country 1 0 bmigroup 1 0; estimate 'Expected level, Over weight Polish women' intercept 1 country 0 1 bmigroup 0 1; estimate 'Expected level, Over weight Irish women' intercept 1 country 1 0 bmigroup 0 1; RUN;