Last data update: 2014.03.03

R: Soybeans
soyaR Documentation

Soybeans

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.

  • pot - Factor five levels of potassium fertilization.

  • water - Factor three levels of amount of water in the soil.

  • block - Factor five levels.

  • grain - Continuous - Grain yield per plant.

  • seeds - Count - Number of seeds per plant.

  • viablepeas - Binomial - Number of viable peas per plant.

  • totalpeas - Binomial - Total number of peas per plant.

Usage

data(soya)

Format

a data.frame with 75 records and 7 variables.

Source

Bonat, W. H. (2016). Multiple Response Variables Regression Models in R: The mcglm Package. Journal of Statistical Software, submitted.

Examples

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)

Results