[R] (no subject)
Pascal Oettli
kridox at ymail.com
Wed Nov 20 02:20:39 CET 2013
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
More information about the R-help
mailing list