repo.crd: Automatic report for a Completely Randomized Design (CRD)

View source: R/repo_crd.R

repo.crdR Documentation

Automatic report for a Completely Randomized Design (CRD)

Description

Produces an automatic report for selected traits in an experiment with a CRD.

Usage

repo.crd(
  traits,
  trt,
  trt.lab = "treatment",
  eu = NULL,
  dfr,
  mc = FALSE,
  title = "Automatic report for a Completely Randomized Design (CRD)",
  subtitle = NULL,
  author = "International Potato Center",
  format = c("html", "word", "pdf")
)

Arguments

traits

The traits to analize.

trt

The treatments.

trt.lab

The labels for treatments.

eu

The experimental unit. Must be defined in case of subsamples.

dfr

The name of the data frame.

mc

Logical. If "mc = TRUE" multiple comparison tests are included even if the factor effect is not significat. Default to "mc = FALSE".

title

Report title.

subtitle

Report subtitle.

author

Report author.

format

The output file format for the report, "html" by default. Other options are "word" and "pdf".

Details

It fits a linear model for a CRD and explains the results.

Under the assumption of fixed effects an ANOVA table is computed. In case of subsampling the ANOVA table is computed over the means for each experimental unit, and a second ANOVA table is computed considering subsampling. If the ANOVA results in a significant value then the Tukey HSD method for pairwise differences is applied. Assumptions of the model are evaluated with residual plots.

Under the assumption of random effects the model is estimated using REML and the variance components are shown.

Value

It returns an explanation about the CRD fitted model.

Author(s)

Raul Eyzaguirre.

Examples

repo.crd(c("trw", "vw"), "geno", "genotype", dfr = pjpz09)
# With a small data set
temp <- pjpz09[1:18, ]
repo.crd(c("trw", "vw", "crw"), "geno", "genotypes", dfr = temp)

reyzaguirre/pepa documentation built on April 20, 2024, 3:50 a.m.