qqtrunc {truncdist} | R Documentation |
QQ Plot for a Truncated Random Variable
Description
This function produces a QQ plot of sample quantiles against theoretical quantiles for a truncated random variable.
Usage
qqtrunc(x, spec, a = -Inf, b = Inf, title = "Truncated Distribution Q-Q Plot",
xlabel = "Theoretical Quantiles", ylabel = "Sample Quantiles", ...)
Arguments
x |
a numeric vector of sample 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 |
title |
A character value for the chart title |
xlabel |
A character value for the horizon axis label |
ylabel |
A character value for the vertical axis label |
... |
other arguments are are passed to the corresponding quantile function |
Value
A plot.
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 <- rtrunc( 500, spec="norm", a=1, b=2 )
qqtrunc( x, spec="norm", a=1, b=2 )