> -----Original Message----- > From: Nils Aschenbruck > Sent: Thursday, August 19, 2004 11:51 AM > To: [EMAIL PROTECTED] > Subject: [R] Erlang distribution > > > Hello, > > is there a packet that supports the Erlang distribution? > > I want to use this distribution for tests against empirical data. Thus, is > there a packet that also supports "fitdistr" (Maximum-likelihood fitting) > for this distribution? > [Dietrich Trenkler] Hi Nils,
you do not need a special package because the Erlang is a special gamma distribution. For instance "derlang" <- function(x, k, l = 1) { f <- dgamma(x, k, l) f } delivers the density of the Erlang(k,1) distribution. HTH D. Trenkler ______________________________________________ [EMAIL PROTECTED] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html