Message-ID: <CAAcyNCxd=wr98J7d2qPXjY0jAmnNu03YuK8myWJARJ6ew=M-kQ@mail.gmail.com>
Date: 2013-11-20T01:20:39Z
From: Pascal Oettli
Subject: (no subject)
In-Reply-To: <CAGPwjHwVZmNrVSd8WWjkcOuX62+KqrgnBa1vey5U=ApCJ+afqg@mail.gmail.com>
Hello,
The value for 'start' is not correct. According to the help for
"fitdistr", 'start' should contain the paramaters used by the random
function (?rchisq)
Hope this helps,
Pascal
On 20 November 2013 09:29, Jim Silverton <jim.silverton at gmail.com> wrote:
> I generated some random data using R and then trying to see if it came from
> the same distribution but the erros keep piling. Can anyone help?
>
>
>
> y=rchisq(100000,1)
> mean(y)
> var(y)
> library(MASS)
> fitdistr(y, "chi-squared", start = list(4), method = "Brent", lower=0.9,
> upper=3)
>
>
> --
> Thanks,
> Jim.
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
--
Pascal Oettli
Project Scientist
JAMSTEC
Yokohama, Japan