Learn R Programming

refineR (version 2.0.0)

getRISimilarity: Calculate similarity of two reference intervals

Description

Calculate similarity of two reference intervals

Usage

getRISimilarity(
  RIdata,
  RIcand,
  RIperc = c(0.025, 0.975),
  pointEst = c("fullDataEst", "medianBS"),
  UMprop = 0.9,
  Overlap = c("OverlapMargins", "OverlapPointEst"),
  printResults = TRUE,
  verbose = TRUE,
  ...
)

Value

		(data.frame) containing the similarity of the two reference intervals

Arguments

RIdata

specifying the RI of the local population: (1) (object) of class RWDRI or (2) (numeric) representation of reference limits

RIcand

specifying the RI that needs to be verified: (1) (object) of class RWDRI or (2) (numeric) representation of reference limits

RIperc

(numeric) value specifying the percentiles, which define the reference interval (default c(0.025, 0.975))

pointEst

(character) specifying the point estimate determination: (1) using the full dataset ("fullDataEst"), (2) calculating the median model from the bootstrap samples ("medianBS"), (2) works only if NBootstrap > 0

UMprop

(numeric) specifying the confidence level for the uncertainty margins

Overlap

(character) specifying the overlap criteria for the verification process. Options are: (1) uncertainty margins overlap "OverlapMargins" and (2) point estimates must be within the uncertainty margins "OverlapPointEst"

printResults

(logical) specifying if the results are printed to the console

verbose

(logical) specifying if additional warning messages are printed

...

arguments to overwrite the default values of the Uncertainty Margin calculation

Author

Matthias Beck matthias.beck.mb1@roche.com

Examples

Run this code
if (FALSE) {
	example <- list(Mu = 3.41, Sigma = 0.504, Shift = 1, Lambda = 0.06,
							  Method = "manual", roundingBase = NA)
	class(example) <- "RWDRI"
	test <- getRISimilarity(example, c(4, 55.5))
	getRISimilarity(c(4, 55.5), c(6, 58))
	getRISimilarity(c(4, 55.5), c(6, 58), UMprop = 0.95)
}

Run the code above in your browser using DataLab