Learn R Programming

SMPracticals (version 1.4-3.1)

toxo: Toxoplasmosis Data

Description

Data on the relation between rainfall and the numbers of people testing positive for toxoplasmosis in 34 cities in El Salvador.

Usage

data(toxo)

Arguments

Format

A data frame with 34 observations on the following 3 variables.

rain

Annual rainfall (mm)

m

Number of persons tested

r

Number of persons testing positive for toxoplasmosis

References

Davison, A. C. (2003) Statistical Models. Cambridge University Press. Page 516.

Examples

Run this code
data(toxo)
anova(glm(cbind(r,m-r)~poly(rain,3),data=toxo,family=binomial),test="Chi")
fit <- glm(cbind(r,m-r)~poly(rain,3),data=toxo,family=quasibinomial)
anova(fit,test="F")
summary(fit)

Run the code above in your browser using DataLab