This is the function called to work on each individual vector of data.
singleRefLimit(data, dname = "default", out.method = "horn", out.rm = FALSE,
RI = "p", CI = "p", refConf = 0.95, limitConf = 0.9, bootStat = "basic")
Returns a list of necessary information.
Size of dataset
Name of dataset
Method of outlier detection
Boolean indicating whether outliers are automatically removed
Vector of detected outliers
Method for reference interval calculations (p, n, or r)
Method for confidence interval calculations (p, n, boot)
Results of running Shapiro-Wilk and Kolmorgorov-Smirnov normacy tests
Desired coverage of reference interval
Desired confidence interval level
List containing the reference interval and confidence interval values
A vector of data points.
Name of dataset.
The outlier detection method. Valid options include "horn", "cook", "dixon", and "vanderLoo".
Remove outliers. If value is TRUE, outliers will be automatically removed prior to calculations. If FALSE (default), outliers will be detected but not removed.
Method for reference interval calculations. Valid options include "p" (default) for parametric, "n" for non-parametric, and "r" for robust method.
Method for confidence interval calculations. Valid options include "p" for parametric (default), "n" for non-parametric, and "boot" for bootstrapping method. The minimum sample size for non-parametric confidence interval calculations is 120. With smaller samples, bootstrapping methods are used.
Desired coverage for the calculated reference interval. The default is a 95
Desired confidence interval level. The default is a 90 confidence interval around the reference interval limits.
Method for calculating confidence intervals from package boot. Valid arguments include "basic" (basic bootstrap method), "perc" (bootstrap percentile method), "norm" (normal approximation method), "stud" (studentized bootstrap method), and "bca" (adjusted bootstrap percentile method).
Daniel Finnegan
singleRefLimit(set200, out.method = "horn", out.rm = TRUE)
Run the code above in your browser using DataLab