View source: R/check_data_pt.R
check.data.pt | R Documentation |
Set of rules to check for consistency of potato experimental data. Data labels must be defined as specified in http://www.cropontology.org/ontology/CO_330/Potato.
check.data.pt(
dfr,
f = 5,
out.mod = c("none", "rcbd", "met"),
out.max = 4,
add = NULL,
format = c("plain.text", "data.frame")
)
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 |
The data frame must use the labels (lower or upper case) listed in
function check.names.pt
.
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
.
It returns all rows with some kind of inconsistency or outliers.
Johan Ninanya, Raul Eyzaguirre.
check.data.pt(potatoyield)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.