compareDist: Compare a sample to one or more fitted distributions

Description Usage Arguments Value Author(s) Examples

View source: R/compareDist.R

Description

Compare a sample to one or more fitted distributions

Usage

1
compareDist(X, Dist1, Dist2 = NULL, Dist3 = NULL)

Arguments

X

An unweighted sample

Dist1,Dist2,Dist3

The fitted distribution, specified as either the objects of class eDist or names of the distribution to be fitted.

Value

compareDist returns an object of class histogram comparing the sample distribution to the specified fitted distribution(s).

Author(s)

Haizhen Wu and A. Jonathan R. Godfrey.

Examples

1
2
X <- rBeta(n=100, params=list(shape1=1, shape2=2))
compareDist(X, "Beta", "Normal", eNormal(X))

Example output

Attaching package: 'ExtDist'

The following object is masked from 'package:stats':

    BIC

ExtDist documentation built on Jan. 8, 2021, 2:39 a.m.