R: Simulated data for a simple mixed model with Poisson response
MMPoisRep
R Documentation
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)
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 (C1C2C3C4), representing a fixed factor (e.g. the cultivar)
time
a factor with 6 levels (T1T2T3T4T5T6) specifying repeated measurements on the same experimental units (plotid) over time
Y
a numeric vector, following a Poisson distribution
R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)
R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.
R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.
Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.
> library(BSagri)
Loading required package: gamlss
Loading required package: splines
Loading required package: gamlss.data
Loading required package: gamlss.dist
Loading required package: MASS
Loading required package: nlme
Loading required package: parallel
********** GAMLSS Version 4.4-0 **********
For more on GAMLSS look at http://www.gamlss.org/
Type gamlssNews() to see new features/changes/bug fixes.
Loading required package: multcomp
Loading required package: mvtnorm
Loading required package: survival
Attaching package: 'survival'
The following object is masked from 'package:gamlss.data':
leukemia
Loading required package: TH.data
Attaching package: 'TH.data'
The following object is masked from 'package:MASS':
geyser
Loading required package: MCPAN
> png(filename="/home/ddbj/snapshot/RGM3/R_CC/result/BSagri/MMPoisRep.Rd_%03d_medium.png", width=480, height=480)
> ### Name: MMPoisRep
> ### Title: Simulated data for a simple mixed model with Poisson response
> ### Aliases: MMPoisRep
> ### Keywords: datasets
>
> ### ** Examples
>
> data(MMPoisRep)
>
> boxplot(Y ~ cult*time, data=MMPoisRep, las=TRUE)
>
>
>
>
>
>
> dev.off()
null device
1
>