Re: [R] Method for checking automatically which distribtions fits a data

From: Ben Bolker <>
Date: Mon, 07 Jul 2008 13:49:14 +0000 (UTC)

Stephen Tucker <brown_emu <at>> writes:

> I don't know that there is a single function, but you can perhaps apply a
sequence of available functions -
> For instance, you can use fitdistr() in library(MASS) to estimate optimal
parameters for a candidate set
> of distributions; then look at each fit and also compare the deviance among
the fits (possibly penalizing
> distributions which require more parameters - for instance, using the Akaike
> Criterion(?)).
> ----- Original Message ----
> From: Gundala Viswanath <gundalav <at>>
> To: r-help <at>
> Sent: Sunday, July 6, 2008 4:50:20 PM
> Subject: [R] Method for checking automatically which distribtions fits a data
> Hi,
> Suppose I have a vector of data.
> Is there a method in R to help us automatically
> suggest which distributions fits to that data
> (e.g. normal, gamma, multinomial etc) ?
> - Gundala Viswanath
> Jakarta - Indonesia


  for example, normal vs gamma might be a sensible question (for which you can use fitdistr() as suggested above), but "multinomial" implies a very specific kind of response -- discrete data with a specified number of possible outcomes.

  Ben Bolker mailing list PLEASE do read the posting guide and provide commented, minimal, self-contained, reproducible code. Received on Mon 07 Jul 2008 - 13:52:31 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Mon 07 Jul 2008 - 15:31:11 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive