Learn R Programming

rgr (version 1.1.0)

gx.fractile: Estimate the Fractile for a Specified Quantile

Description

Estimates the fractile for a specified quantile of a data set by linear interpolation from the ranked data. If the function is run as temp <- gx.fractile(xx, q) the fractile is not displayed, but retained in temp for subsequent use or display.

Usage

gx.fractile(xx, q, display = TRUE)

Arguments

xx
the data set for which the quantile is to be estimated.
q
the fractile for which the quantile is required.
display
the default is to display the quantile and estimated fractile on the current device. If no display is required, set display = FALSE.

Value

  • fthe estimated fractile.

See Also

ltdl.fix.df, remove.na, gx.quantile

Examples

Run this code
## Make test data available
data(kola.o)
attach(kola.o)

## Estimate the fractile for 20 mg/kg As
gx.fractile(As, 20)
temp <- gx.fractile(As, 20)
temp

## Clean-up and detach test data
rm(temp)
detach(kola.o)

Run the code above in your browser using DataLab