Hi R-Community, I have a vector of Weibull distributed observations and I would like to estimate the parameters "shape" and "scale" of the Weibull distribution. Is there a way to do this in R? Much thanks in advance, Hagen Schm?ller -- ----------------------------------------------------------------------- Dipl.-Ing. Hagen K. Schm?ller Institut f?r Elektrische Anlagen und Energiewirtschaft, RWTH Aachen Schinkelstra?e 6, D-52056 Aachen, Germany Tel.: +49 (0)241 - 80 - 96734 Fax : +49 (0)241 - 80 - 92197 Hagen.Schmoeller at iaew.rwth-aachen.de -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
On Tue, 6 Aug 2002, Hagen [ISO-8859-1] Schmöller wrote:> I have a vector of Weibull distributed observations and I would like to > estimate the parameters "shape" and "scale" of the Weibull distribution. > Is there a way to do this in R?Many ways. Perhaps the simplest is function fitdistr in package MASS. Another is via survreg() in package survival. -- Brian D. Ripley, ripley at stats.ox.ac.uk Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272860 (secr) Oxford OX1 3TG, UK Fax: +44 1865 272595 -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
>>>>> "Hagen" == Hagen Schm?ller <Hagen.Schmoeller at iaew.rwth-aachen.de> writes:Hagen> I have a vector of Weibull distributed observations Hagen> and I would like to estimate the parameters "shape" Hagen> and "scale" of the Weibull distribution. Is there a Hagen> way to do this in R? Yes, use the fitdistr() function from the MASS package. Its help file starts as>> fitdistr package:MASS R Documentation >> >> Maximum-likelihood Fitting of Univariate Distributions >> >> Description: >> >> Maximum-likelihood fitting of univariate distributions, allowing >> parameters to be held fixed if desired. >> >> Usage: >> >> fitdistr(x, densfun, start, ...) >> >> Arguments: >> >> x: A numeric vector. >> >> densfun: Either a character string or a function returning a density >> evaluated at its first argument. >> >> Distributions `"beta"', `"cauchy"', `"chi-squared"', >> `"exponential"', `"f"', `"gamma"', `"log-normal"', >> `"lognormal"', `"logistic"', `"negative binomial"', >> `"normal"', `"t"', `"uniform"' and `"weibull"' are >> recognised, case being ignored.Regards, Martin Maechler <maechler at stat.math.ethz.ch> http://stat.ethz.ch/~maechler/ Seminar fuer Statistik, ETH-Zentrum LEO C16 Leonhardstr. 27 ETH (Federal Inst. Technology) 8092 Zurich SWITZERLAND phone: x-41-1-632-3408 fax: ...-1228 <>< -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._