powered by
reference_range estimates the reference range (reference interval) of a numerical variable.
reference_range
reference_range(avg, std)
A data frame with the reference range limits.
The arithmetic mean (a scalar numerical value).
The standard deviation (a scalar numerical value).
The reference range assumes normality and represents the limits that would include 95 observations.
x <- rnorm(100, 170, 8) round(mean(x), 2) round(sd(x), 2) round(reference_range(mean(x), sd(x)), 2)
Run the code above in your browser using DataLab