central: central generates three estimates of central tendency

View source: R/cMSY_funs.R

centralR Documentation

central generates three estimates of central tendency

Description

central generates three estimates of central tendency and the quantiles about the distribution of the inut vector of values. The three measures are the arithmetic mean, the naive geometric mean, and the bias corrected geometric mean.

Usage

central(x, P = 0.9)

Arguments

x

the vector of values whose central tendency is to be characertized

P

the quantiles to be determined

Value

a 4 x 2 matrix containing the central tendency measures and the quantiles

Examples

## Not run: 
x <- rnorm(1000,mean=5,sd=1)
central(x,P=0.9)
x <- rlnorm(1000,meanlog=2,sdlog=0.2)
central(x,P=0.95)
exp(2)

## End(Not run)

haddonm/datalowSA documentation built on Nov. 5, 2023, 6:40 p.m.