[R] named list 'start' in fitdistr

Thomas Lumley tlumley at u.washington.edu
Fri Jul 25 17:10:41 CEST 2003


On Fri, 25 Jul 2003 vincent.stoliaroff at sgcib.com wrote:

>
> >fitdistr(test,"lognormal")
> Error in fitdistr(test, "lognormal") : `start' must be a named list
>
> > fitdistr(test,"lognormal",start$meanlog=0,start$sdlog=1)
> Error: syntax error
>
> How I am supposed to type a value for start depending on the distribution
> on which I am fitting my set

Well, if start is supposed to be a named list I would try that:

fitdistr(test,"lognormal",start=list(meanlog=0, sdlog=1))

	-thomas

Thomas Lumley			Assoc. Professor, Biostatistics
tlumley at u.washington.edu	University of Washington, Seattle




More information about the R-help mailing list