| soya | R Documentation |
Dataset from an experiment conducted in a vegetation house with soybeans.
Each plot contained two plants and the experiment involved three levels of
soil water (water) and five levels of potassium fertilization (pot),
arranged in five blocks (block). Three response variables are recorded:
grain yield, number of seeds, and number of viable peas per plant. The dataset
contains 75 observations and 7 variables.
data(soya)
A data.frame with 75 observations and 7 variables:
potFactor with five levels of potassium fertilization.
waterFactor with three levels of amount of water in the soil.
blockFactor with five levels representing experimental blocks.
grainContinuous variable representing grain yield per plant.
seedsCount variable representing number of seeds per plant.
viablepeasBinomial variable representing number of viable peas per plant.
totalpeasBinomial variable representing total number of peas per plant.
Bonat, W. H. (2018). Multiple Response Variables Regression Models in R: The mcglm Package. Journal of Statistical Software, 84(4):1–30.
library(mcglm)
library(Matrix)
data(soya, package = "mcglm")
# Linear predictor example
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.