In the third of three related workshops we will learn to apply and interpret the glm() function to binary (binomial) response data.
By actively following the first lecture, working through workbook examples during the workshop workshop and any completing follow-up independent study the successful student will be able to:
glm()
summary()
and anova()
You can optionally stretch yourself by asking for more in-depth explanations about the meaning of the estimates, and the direction and magnitude of the effects or creating figures to go with your analyses. Biomedical Scientists might be particularly interested in binomial glm estimates (‘odds ratios’).
The workbook for this session is divided in to 2 sections.
You are not expected do all of the workbook examples
Choose one from each section that best matches your biological interests. For each example you choose, you should:
glm()
summary()
and anova()
predict()
plot(mod, which = 1)
and plot(mod, which = 2)
to examine the assumptionsOptional Extension: Practice your plotting skills.
Choose one of:
This example concerns the effect of sand grain size on the presence of wolf spiders. Suzuki et al. (2006) measured sand grain size on 28 beaches in Japan and observed the presence or absence of the burrowing wolf spider Lycosa ishikariana on each beach. The data are in grainsize.txt. Can you predict the presence of spiders from the sand grain size?
This examples examines the effect of alcohol consumption on the incidence of oesophageal cancer in men over 55 years of age. Thirty men aged 55 years and over were survey for their alcohol consumption then followed up 10 years later for the occurrence of oesophageal cancer. The data are in oesoph.txt and comprise two variables:
Choose one of:
Human skin is colonised by a diverse collection of micro-organisms which vary considerably between individuals. The presence or absence of a particular micro-organism on the skin of a number of individuals was determined along with variables which might influence presence. The data are in microrg.txt and comprise following variables:
The goal of analysis was to determine if the presence of the micro-organism could be predicted from an individual’s gender, melanin concentration or age.
Suggested analyses and interpretation for Workbook examples are marked:
#============== WORKBOOK EXAMPLE ==============#