Reference Interval Estimation using Real-World Data
Add a grid to an existing plot.
Helper function to align the content of printed tables
Convert color-names or RGB-code to possibly semi-transparent RGB-code.
Estimate density of distribution employing the R package "ash" using R...
One-parameter Box-Cox transformation.
Calculate costs for a specific combinations of lambda, muVec and sigma...
Function to calculate the RI from a set of parameters
Check Invalid Arguments
Create Verification Table
Helper function to define search regions for mu and sigma and to get t...
Helper function to find region around the main peak of a distribution
Helper function to find the main peak of a distribution
Find the index of the peaks and valleys of the density estimation.
Function to estimate reference intervals for a single population
Estimate rounding base of the input data.
Generate list with histogram data.
Calculate equivalence limits
Method to calculate reference intervals (percentiles) for objects of c...
Get Reference Interval from RWDRI
Calculate uncertainty margins for a reference interval using the asymp...
Calculate similarity of two reference intervals
Helper function to calculate the amount of observed and estimated data...
Get the correct values for RI, RIperc, Lambda, and Shift for the verif...
Inverse of the one-parameter Box-Cox transformation.
Helper function for grid search for mu and sigma.
Function to approximate the sampling uncertainty of quantiles using th...
Standard plot method for objects of class 'RWDRI'
Plot method for RI verification
Approximate calculation of CDF of normal distribution.
Standard print method for objects of class 'RWDRI'
Print Data Fractions Within and Outside Reference Intervals
Helper function to print the results of getRISimilarity
Helper function to print Table Header
Helper function to print Table Rows
Print Verification Table
refineR: Reference Interval Estimation using Real-World Data (RWD)
Helper function to find optimal parameters lambda, mu and sigma.
Verify Reference Intervals
Indirect method for the estimation of reference intervals (RIs) using Real-World Data ('RWD') and methods for comparing and verifying RIs. Estimates RIs by applying advanced statistical methods to routine diagnostic test measurements, which include both pathological and non-pathological samples, to model the distribution of non-pathological samples. This distribution is then used to derive reference intervals and support RI verification, i.e., deciding if a specific RI is suitable for the local population. The package also provides functions for printing and plotting algorithm results. See ?refineR for a detailed description of features. Version 1.0 of the algorithm is described in 'Ammer et al. (2021)' <doi:10.1038/s41598-021-95301-2>. Additional guidance is in 'Ammer et al. (2023)' <doi:10.1093/jalm/jfac101>. The verification method is described in 'Beck et al. (2025)' <doi:10.1515/cclm-2025-0728>.