Learn R Programming

agridat (version 1.12)

jansen.apple: Infestation of apple shoots by apple canker.

Description

Infestation of apple shoots by apple canker.

Usage

data("jansen.apple")

Arguments

Format

A data frame with 36 observations on the following 5 variables.

inoculum

inoculum level

gen

genotype/variety

block

block

y

number of inoculations developing canker

n

number of inoculations

Details

Shoots of apple trees were infected with fungus Nectria galligena, which may cause apple canker.

The incoulum density treatment had 3 levels, measured in macroconidia per ml.

There were 4 blocks.

References

None.

Examples

Run this code
# NOT RUN {
data(jansen.apple)


dat <- jansen.apple

require(lattice)
dotplot(gen ~ y/n|block, data=dat, group=inoculum, auto.key=TRUE,
        main="jansen.apple",
        xlab="Proportion infected per block/inoculum", ylab="Genotype")

if(require(lme4)){
  # Tentative model.  Needs improvement.
  m1 <- glmer(cbind(y,n-y) ~ gen + factor(inoculum) + (1|block),
              data=dat, family=binomial)
  summary(m1)
}

# }

Run the code above in your browser using DataLab