Learn R Programming

ExtDist (version 0.7-2)

compareDist: Compare a sample to one or more fitted distributions

Description

Compare a sample to one or more fitted distributions

Usage

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

Value

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

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.

Author

Haizhen Wu and A. Jonathan R. Godfrey.

Examples

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

Run the code above in your browser using DataLab