Description Usage Arguments Value Note Author(s) See Also Examples
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.
1 | gx.fractile(xx, q, display = TRUE)
|
xx |
the data set for which the quantile is to be estimated. |
q |
the fractile (value) for which the quantile is required, must be within the range of |
display |
the default is to display the quantile and estimated fractile on the current device. If no display is required, set |
f |
the estimated fractile. |
Any less than detection limit values represented by negative values, or zeros or other numeric codes representing blanks in the data, must be removed prior to executing this function, see ltdl.fix.df
.
Any NA
s in the data vector are removed prior to preparing the boxplots.
Based on a script shared on S-News by Nick Ellis, April 2002
ltdl.fix.df
, remove.na
, gx.quantile
1 2 3 4 5 6 7 8 9 10 11 12 | ## 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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.