This function runs the quadrants analysis suggested by Cate and Nelson (1965)
cate_nelson_1965(data = NULL, stv, ry, target, tidy = TRUE, plot = FALSE)boot_cn_1965(data, ry, stv, target = 90, n = 5, ...)
returns an object of type ggplot
if plot = TRUE.
returns an object of class data.frame
if tidy = TRUE,
returns an object of class list
if tidy = FALSE.
boot_cn_1965: bootstrapping function
argument to call a data.frame or data.table containing the data
argument to call the vector or column containing the soil test value (stv) data
argument to call the vector or column containing the relative yield (ry) data
argument to specify the ry target (numeric) to estimate the critical stv for
logical operator (TRUE/FALSE) to decide the type of return. TRUE returns a tibble, FALSE returns a list. Default: TRUE.
logical operator (TRUE/FALSE) to decide the type of return. TRUE returns a ggplot, FALSE returns either a list (tidy == FALSE) or a tibble (tidy == TRUE).
sample size for the bootstrapping Default: 500
when running bootstrapped samples, the ...
(open arguments) allows to add grouping variable/s (factor or character) Default: NULL
See online-documentation for additional details.
Cate & Nelson (1965). A rapid method for correlation of soil test analysis with plant response data. North Carolina Agric. Exp. Stn., International soil Testing Series l. No. 1.
# \donttest{
# Example 1 dataset
dat <- data.frame("ry" = c(65,80,85,88,90,94,93,96,97,95,98,100,99,99,100),
"stv" = c(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15))
# Run
fit_example_cn_1965 <- cate_nelson_1965(data = dat,
ry = ry, stv = stv, target = 90, tidy=FALSE, plot=FALSE)
fit_example_cn_1965
# }
Run the code above in your browser using DataLab