check.data.sp: Check consistency for sweetpotato experimental data

View source: R/check_data_sp.R

check.data.spR Documentation

Check consistency for sweetpotato experimental data

Description

Set of rules to check for consistency of sweetpotato experimental data. Data labels must be defined as specified in the Procedures for the evaluation and analysis of sweetpotato trials, ISBN 978-92-9060-522-5.

Usage

check.data.sp(
  dfr,
  f = 5,
  out.mod = c("none", "rcbd", "met"),
  out.max = 4,
  add = NULL,
  format = c("plain.text", "data.frame")
)

Arguments

dfr

The name of the data frame.

f

Factor for extreme values detection. See details.

out.mod

Statistical model for outliers' detection. See details.

out.max

Threshold for outliers' detection.

add

Additional quantitative traits.

format

Output format as "plain.text" or "data.frame".

Details

The data frame must use the labels (lower or upper case) listed in function check.names.sp.

Extreme low and high values are detected using the interquartile range. The rule is to detect any value out of the interval [Q_1 - f \times IQR; Q_3 + f \times IQR]. By default f = 5.

Outliers are detected based on standardized residuals for some statistical models. Options are "rcbd" and "met" for a randomized complete block design and a multi environment trial with RCBD in each environment. By default the threshold value is out.max = 4.

Value

It returns all rows with some kind of inconsistency or outliers.

Author(s)

Raul Eyzaguirre.

Examples

check.data.sp(pjpz09)

reyzaguirre/st4gi documentation built on April 20, 2024, 3:53 a.m.