powered by
Compare a sample to one or more fitted distributions
compareDist(X, Dist1, Dist2 = NULL, Dist3 = NULL)
compareDist returns an object of class histogram comparing the sample distribution to the specified fitted distribution(s).
An unweighted sample
The fitted distribution, specified as either the objects of class eDist or names of the distribution to be fitted.
Haizhen Wu and A. Jonathan R. Godfrey.
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