Description Usage Arguments Value Author(s) Examples

Compare a sample to one or more fitted distributions

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

`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. |

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

Haizhen Wu and A. Jonathan R. Godfrey.

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

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.