Learn R Programming

R330 (version 1.0)

budworm.df: Budworm data

Description

Data from a small experiment on the toxicity to the tobacco budworm

Usage

data(budworm.df)

Arguments

Format

A data frame with 12 observations on the following 4 variables:
sex
the sex of the budworm
dose
amount of cypermethrin exposed to
s
number of budworms affected
n
total number of budworms

Source

Collette, D. (1991) Modelling Binary Data. Chapman and Hall, London. p 75

Details

The data come from an experiment on the toxicity to the tobacco budworm Heliothis virescens of doses of the pyrethoid trans-cypermethrin to which the moths were beginning to show resistance. Batches of 20 moths of each sex were exposed for three days to the pyrethroid and the number in each batch that were dead or knocked down was recorded.

References

Venables, W.N and Ripley, B. (2002) Modern Applied Statitics with S, Springer, New York.

Examples

Run this code
data(budworm.df)
bugs.glm<-glm(s/n~sex+dose,family=binomial,weights=n,data=budworm.df)
summary(bugs.glm)

Run the code above in your browser using DataLab