On Fri, 25 Jul 2003 [EMAIL PROTECTED] 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 d
x <- exp(rnorm(100))
> fitdistr(x,"lognormal",start=list(meanlog=0,sdlog=1))
meanlogsdlog
-0.099743740.92352880
( 0.09235288) ( 0.06530569)
>
Ruud
*** REPLY SEPARATOR ***
On 7/25/2003 at 4:50 [EMAIL PROTECTED] wrote:
>Hi R lovers!
>
>I'd like to know
On Fri, 25 Jul 2003 [EMAIL PROTECTED] wrote:
> Hi R lovers!
>
> I'd like to know how to use the parameter 'start' in the function
> fitdistr()
kindly provided for you in package MASS, but churlishly unattributed
> obviously I have to provide the initial value of the parameter to optimize
> exce
PROTECTED]
|
| Subject: Re: [R] named list 'start' in fitdistr
|
>--|
An example in help(
An example in help(fitdistr) (R 1.7.1 for Windows) is "fitdistr(x,
dgamma, list(shape = 1, rate = 0.1), lower = 0.01)". Based on this,
have you tried the following:
>>fitdistr(test,"lognormal", start=list(meanlog=0, sdlog=1))
hope this helps. spencer graves
[EMAIL PROTECTED] wrote:
Hi R love
Hi R lovers!
I'd like to know how to use the parameter 'start' in the function
fitdistr()
obviously I have to provide the initial value of the parameter to optimize
except in the case of a certain set of given distribution
Indeed according to the help file for fitdistr
" For the following na