powered by
A total of 433 persons were tested for hypertension and checked for whether they were smokers, obese, or snored. The data are in Altman(1991).
data(Snoring)
A data frame with 8 observations on the following 5 variables:
smoking
did the person smoke (1) or not (0)?
obese
was the person obese (1) or not (0)?
snoring
did the person snore (1) or not (0)?
n
the number of persons observed with these covariates
hypert
did the person suffer from hypertension (1) or not (0)?
van Hulst, R. 2018. Evaluating Scientific Evidence. ms.
# NOT RUN { data(Snoring) fit <- glm(cbind(hypert, n - hypert) ~ smoking + obese + snoring, family=binomial, data=Snoring) summary(fit) # }
Run the code above in your browser using DataLab