# Reference Interval Estimation using Real-World Data

## Documentation for package ‘refineR’ version 1.0.0

- DESCRIPTION file.

## Help Pages

addGrid | Add a grid to an existing plot.
as.rgb | Convert color-names or RGB-code to possibly semi-transparent RGB-code.
ashDensity | Estimate density of distribution employing the R package "ash" using R-wrapper function.
BoxCox | One-parameter Box-Cox transformation.
calculateCostHist | Calculate costs for a specific combinations of lambda, muVec and sigmaVec.
estimateStartValues | Helper function to estimate search regions for mu and sigma and to get the region around main peak 'ab'
findPeaksAndValleys | Find the index of the peaks and valleys of the density estimation.
findRI | Function to estimate reference intervals for a single population
generateHistData | Generate list with histogram data.
getRI | Method to calculate reference intervals (percentiles) for objects of class 'RWDRI'
getSumForPArea | Helper function to calculate the amount of observed and estimated data points within specified regions around the peak.
invBoxCox | Inverse of the one-parameter Box-Cox transformation.
optimizeGrid | Helper function for grid search for mu and sigma.
plot.RWDRI | Standard plot method for objects of class 'RWDRI'
pnormApprox | Approximate calculation of CDF of normal distribution.
print.RWDRI | Standard print method for objects of class 'RWDRI'
testcase1 | Simulated Testcase 1.
testcase2 | Simulated Testcase 2.
testcase3 | Simulated Testcase 3.
testcase4 | Simulated Testcase 4.
testParam | Helper function to find optimal parameters lambda, mu and sigma.