Hi, I'm trying fitdistr but I'm getting some errors> fitdistr(rnorm(100),"Normal")Error in fitdistr(rnorm(100), "Normal") : 'start' must be a named list> fitdistr(rnorm(100),"Normal",start=list(mean=0,sd=1))Error in fitdistr(rnorm(100), "Normal", start = list(mean = 0, sd = 1)) : supplying pars for the Normal is not supported What is the problem here ? Am I doing something wrong ? Regards EJ
Which version of R and the MASS library? It worked for me just now with R 1.8.1: > library(MASS) > fitdistr(rnorm(100),"Normal",start=list(mean=0,sd=1)) mean sd 0.03760724 0.97053743 (0.09705374) (0.06862975) hope this helps. spencer graves Ernesto Jardim wrote:>Hi, > >I'm trying fitdistr but I'm getting some errors > > > >>fitdistr(rnorm(100),"Normal") >> >> >Error in fitdistr(rnorm(100), "Normal") : 'start' must be a named list > > >>fitdistr(rnorm(100),"Normal",start=list(mean=0,sd=1)) >> >> >Error in fitdistr(rnorm(100), "Normal", start = list(mean = 0, sd = 1)) >: > supplying pars for the Normal is not supported > > >What is the problem here ? Am I doing something wrong ? > >Regards > >EJ > >______________________________________________ >R-help at stat.math.ethz.ch mailing list >https://www.stat.math.ethz.ch/mailman/listinfo/r-help >PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html > >
Which version of MASS (not that you gave me any credit)? This works in the current 7.1-14. On Tue, 17 Feb 2004, Ernesto Jardim wrote:> I'm trying fitdistr but I'm getting some errors > > > fitdistr(rnorm(100),"Normal") > Error in fitdistr(rnorm(100), "Normal") : 'start' must be a named list > > fitdistr(rnorm(100),"Normal",start=list(mean=0,sd=1)) > Error in fitdistr(rnorm(100), "Normal", start = list(mean = 0, sd = 1)) > : > supplying pars for the Normal is not supported > > > What is the problem here ? Am I doing something wrong ?-- 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 272866 (PA) Oxford OX1 3TG, UK Fax: +44 1865 272595