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

Description Usage Arguments Examples

Description

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

Usage

1
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

1
2
3
4
5
6
7
8
9
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)

ecor/RMRAINGEN documentation built on May 15, 2019, 8:53 p.m.