qtrunc {truncdist}R Documentation

Quantitle Function for Truncated Random Variable

Description

This function evaluates the inverse of the cumulative distribution funciton for a truncated random variable or so the so called quantile function for a given vector of probabilities and the specified distribution.

Usage

qtrunc(p, spec, a = -Inf, b = Inf, ...)

Arguments

p

A vector of probabilities

spec

a character value that specifies the underlying probability distribution

a

a numeric value for the lower bound of the random variable

b

a numeric value for the upper bound of the random variable

...

other arguments are are passed to the corresponding quantile and distribution function

Value

A vector of quantile values in the range of the truncated random variable.

Author(s)

Frederick Novomestky fn334@nyu.edu

Saralees Nadarajah saralees.nadarajah@manchester.ac.uk

References

Nadarajah, S. and S. Kotz, 2006. R Programs for Computing Truncated Distributions, Journal of Statistical Software, 16, August 2006, http://www.jstatsoft.org/v16/c02

Examples

p <- seq( .1, .9, .01 )
q <- qtrunc( p, spec="norm", a=1, b=2 )

[Package truncdist version 1.0-2 Index]