upper95: Calculate upper 95 % confidence limit

View source: R/upper95.R

upper95R Documentation

Calculate upper 95 % confidence limit

Description

Function with a short name to calculate 97.5th percentile of a distribution. Calls stats::quantile, but is shorter and is easier to use in calls to apply family of functions.

Usage

upper95(x)

Arguments

x

A numeric vector or matrix.

Value

Numeric vector of length 1 containing 97.5th percentile for sampling distribution of x.

Examples

# Example usage
## Not run: 
  
 x <- rnorm(1e4, 0, 1)
 
 upper95(x)
  

## End(Not run)

danStich/anadrofish documentation built on Jan. 17, 2025, 9:46 a.m.