Calculates the lower and upper reference limit for given probabilities.

reference_limits(x, probs = c(0.025, 0.975), na.rm = TRUE)

Arguments

x

numeric, laboratory values

probs

numeric, probabilities of the lower and upper reference limit, default: c(0.025, 0.975) (spanning 95 %).

na.rm

logical, if TRUE (default) NA values are removed before the reference limits are calculated.

Value

numeric of length 2 with the lower and upper limit.

Author

Sebastian Gibb

Examples

reference_limits(1:10)
#> lower upper 
#> 1.225 9.775