Learn R Programming

RMRAINGEN (version 1.0)

qqfit: Quantile-Quantile Fit between observed data and a parametric probability distribution.

Description

Quantile-Quantile Fit between observed data and a parametric probability distribution.

Usage

qqfit(x, FUN = qexp, par = list(), use.x = FALSE)

Arguments

x
observed data
FUN
quantile probability function, e.g. qexp or "exp"
par
list of parameters
use.x
logical. Default is FALSE. If it is TRUE, the quantiles correspond to x and function ecdf is not used.

Examples

Run this code
x <- rexp(100,rate=2)
y2 <- qqfit(x,FUN=qexp,list(rate=2))
y4 <- qqfit(x,FUN=qexp,list(rate=4))

qqplot(x,y2)
abline(0,1)

qqplot(x,y4)
abline(0,1)

Run the code above in your browser using DataLab