soya: Soybeans

Description Usage Format Source Examples

Description

Experiment carried out in a vegetation house with soybeans. The experiment has two plants by plot with three levels of the factor amount of water in the soil (water) and five levels of potassium fertilization (pot). The plots were arranged in five blocks (block). Three response variables are of the interest, namely, grain yield, number of seeds and number of viable peas per plant. The data set has 75 observations of 7 variables.

Usage

1

Format

a data.frame with 75 records and 7 variables.

Source

Bonat, W. H. (2018). Multiple Response Variables Regression Models in R: The mcglm Package. Journal of Statistical Software, 84(4):1–30.

Examples

1
2
3
4
5
6
7
8
library(mcglm)
library(Matrix)
data(soya, package="mcglm")
formu <- grain ~ block + factor(water) * factor(pot)
Z0 <- mc_id(soya)
fit <- mcglm(linear_pred = c(formu), matrix_pred = list(Z0),
          data = soya)
          anova(fit)

wbonat/mcglm documentation built on June 23, 2020, 11:06 a.m.