gx.quantiles: Estimate the Common Quantiles

Description Usage Arguments Note Author(s) See Also Examples

Description

Estimates and displays the common quantiles. i.e. quartiles, quintiles, deciles, and for upper and lower extreme percentiles, for a numeric variable. For any other quantile use function gx.quantile.

Usage

1

Arguments

x

the data set for which the quantiles are to be estimated.

xname

by default the character string for x is used for the display. An alternate title can be displayed with xname = "text string", see Example.

Note

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 NAs in the data vector are removed prior to estimation.

Author(s)

Robert G. Garrett

See Also

ltdl.fix.df, gx.fractile

Examples

1
2
3
4
5
6
7
8
9
## Make test data available
data(kola.o)
attach(kola.o)

## Estimate the common quantiles
gx.quantiles(As, "As (mg/kg) in Kola O-horizon soil")

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

Example output

Loading required package: MASS
Loading required package: fastICA
  Quantiles for: As (mg/kg) in Kola O-horizon soil , N = 617 

	        Min      Q1       Med       Q2       Max
  Quartiles:    0.364     0.893     1.16     1.53     43.5 

  Quintiles:   Min      20      40      60       80       Max
	       0.364     0.834    1.044     1.316    1.658    43.5 

  Deciles:     Min      10      20      30       40      50       60        70        80       90       Max
	       0.364     0.7    0.834     0.9522    1.044    1.16     1.316     1.45     1.658     2.13    43.5 

  Lower extreme %iles:     Min     1st      2nd     5th     10th     20th
			   0.364     0.4568    0.5093     0.5758     0.7     0.834 

  Upper extreme %iles:    80th     90th     95th     98th     99th     Max
			  1.658     2.13    3.056     6.36     11.77     43.5 

rgr documentation built on May 2, 2019, 6:09 a.m.

Related to gx.quantiles in rgr...