pctile {NCmisc}R Documentation

Find data thresholds corresponding to percentiles

Description

Finds the top and bottom bounds corresponding to percentile 'pc' of the data 'dat'.

Usage

pctile(dat, pc = 0.01)

Arguments

dat

numeric vector of data

pc

the percentile to seek, c(pc, 1-pc)

Value

returns the upper and lower threshold

Author(s)

Nicholas Cooper njcooper@gmx.co.uk

Examples

pctile(rnorm(100000),.025)
pctile(sample(100),.9)

[Package NCmisc version 1.2.0 Index]