Learn R Programming

ExtDist (version 0.3.3)

compareDist: Compare sample and fitted distributions

Description

A method to Compare sample and fitted distributions

Usage

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

Arguments

X
- the (unweighted) sample
Dist1,Dist2,Dist3
- the eDist objects or names of the distribution to be fitted.

Examples

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

Run the code above in your browser using DataLab