Quantiles: The 'Quantiles' function

Description Usage Arguments Value Author(s) Examples

Description

Calculates the quantiles of a univariate distribution.

Usage

1
Quantiles(pvalues, distribName, distribParameters, shrink=0.95)

Arguments

pvalues

a vector of probability values.

distribName

a string giving the name of a probability distribution.

distribParameters

a list of parameters of the distribution.

shrink

a scalar eqn<=1 to determine how to shrink the pvalues(used when the quantiles are infinite for pvalues equal to 0 or 1).

Value

the q-values

Author(s)

Hervé Monod, MIA-Jouy, Inra, Domaine de Vilvert, 78352 Jouy en Josas, France

Examples

1
2
3
Quantiles(seq(0,1,length=11),"unif",list(min=8,max=10))
Quantiles(seq(0,1,length=11),"unif",list(min=8,max=10),shrink=0.5)
Quantiles(seq(0,1,length=11),"norm",list(mean=0, sd=1),shrink=0.5)

Example output

Loading required package: stringr
Loading required package: XML
Loading required package: sensitivity
Loading required package: lhs
Loading required package: rgl
Warning messages:
1: In rgl.init(initValue, onlyNULL) : RGL: unable to open X11 display
2: 'rgl_init' failed, running with rgl.useNULL = TRUE 
3: .onUnload failed in unloadNamespace() for 'rgl', details:
  call: fun(...)
  error: object 'rgl_quit' not found 
 [1]  8.0  8.2  8.4  8.6  8.8  9.0  9.2  9.4  9.6  9.8 10.0
 [1]  8.0  8.2  8.4  8.6  8.8  9.0  9.2  9.4  9.6  9.8 10.0
 [1] -0.6744898 -0.5244005 -0.3853205 -0.2533471 -0.1256613  0.0000000
 [7]  0.1256613  0.2533471  0.3853205  0.5244005  0.6744898
Warning message:
In Quantiles(seq(0, 1, length = 11), "norm", list(mean = 0, sd = 1),  :
  Infinite values in the design. P-values shrinked by 0.5

mtk documentation built on May 2, 2019, 4:15 a.m.