reference_range: Reference range (reference interval).

View source: R/descriptive_functions.R

reference_rangeR Documentation

Reference range (reference interval).

Description

reference_range estimates the reference range (reference interval) of a numerical variable.

Usage

reference_range(avg, std)

Arguments

avg

The arithmetic mean (a scalar numerical value).

std

The standard deviation (a scalar numerical value).

Details

The reference range assumes normality and represents the limits that would include 95 observations.

Value

A data frame with the reference range limits.

Examples

x <- rnorm(100, 170, 8)
round(mean(x), 2)
round(sd(x), 2)

round(reference_range(mean(x), sd(x)), 2)

pubh documentation built on Oct. 8, 2024, 9:08 a.m.