ptrunc {truncdist} | R Documentation |
Cumulative distribution function of a truncated random variable
Description
This function compute values of the cumulative distribution function for truncated random variables.
Usage
ptrunc(q, spec, a = -Inf, b = Inf, ...)
Arguments
q |
a numeric vector of quantile values |
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 function |
Value
A vector of probability values.
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
See Also
Examples
x <- seq( 0, 3, .1 )
cdf <- ptrunc( x, spec="norm", a=1, b=2 )
[Package truncdist version 1.0-2 Index]