View source: R/referenceIntervals.R
singleRefLimit | R Documentation |
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")
data |
A vector of data points. |
dname |
Name of dataset. |
out.method |
The outlier detection method. Valid options include "horn", "cook", "dixon", and "vanderLoo". |
out.rm |
Remove outliers. If value is TRUE, outliers will be automatically removed prior to calculations. If FALSE (default), outliers will be detected but not removed. |
RI |
Method for reference interval calculations. Valid options include "p" (default) for parametric, "n" for non-parametric, and "r" for robust method. |
CI |
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. |
refConf |
Desired coverage for the calculated reference interval. The default is a 95 |
limitConf |
Desired confidence interval level. The default is a 90 confidence interval around the reference interval limits. |
bootStat |
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). |
Returns a list of necessary information.
size |
Size of dataset |
dname |
Name of dataset |
out.method |
Method of outlier detection |
out.rm |
Boolean indicating whether outliers are automatically removed |
outliers |
Vector of detected outliers |
methodRI |
Method for reference interval calculations (p, n, or r) |
methodCI |
Method for confidence interval calculations (p, n, boot) |
norm |
Results of running Shapiro-Wilk and Kolmorgorov-Smirnov normacy tests |
refConf |
Desired coverage of reference interval |
limitConf |
Desired confidence interval level |
Ref_Int |
List containing the reference interval and confidence interval values |
Daniel Finnegan
singleRefLimit(set200, out.method = "horn", out.rm = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.