Learn R Programming

BSagri (version 0.1-10)

MMPoisRep: Simulated data for a simple mixed model with Poisson response

Description

Simulated data with a fixed factor cult (4 levels), with 8 randomized replications each, a (fixed) factor time (6 levels), which are repeated measurements taken from the same experimental units. The 32 experimental (plotid) units differ in their mean response follwing a gaussian distribution. The response Y follows a Poisson distribution.

Usage

data(MMPoisRep)

Arguments

Format

A data frame with 192 observations on the following 4 variables.

plotid

a factor with 32 levels, representing the 32 experimental units (plots)

cult

a factor with 4 levels (C1 C2 C3 C4), representing a fixed factor (e.g. the cultivar)

time

a factor with 6 levels (T1 T2 T3 T4 T5 T6) specifying repeated measurements on the same experimental units (plotid) over time

Y

a numeric vector, following a Poisson distribution

Examples

Run this code
# NOT RUN {
data(MMPoisRep)

boxplot(Y ~ cult*time, data=MMPoisRep, las=TRUE)

# }

Run the code above in your browser using DataLab