请大家帮看下这个问题,代码如下:
fitdistr(c(rep(1,6),rep(2,5)),beta,list(shape1=1,shape2=1));
错误于fitdistr(c(rep(1, 6), rep(2, 5)), beta, list(shape1 = 1, shape2 = 1)) :
'start' specifies names which are not arguments to 'densfun'
> traceback()
2: stop("'start' specifies names which are not arguments to 'densfun'")
1: fitdistr(c(rep(1, 6), rep(2, 5)), beta, list(shape1 = 1, shape2 = 1))
> sessionInfo()
R version 2.12.1 (2010-12-16)
Platform: i386-pc-mingw32/i386 (32-bit)
locale:
[1] LC_COLLATE=Chinese_People's Republic of China.936
[2] LC_CTYPE=Chinese_People's Republic of China.936
[3] LC_MONETARY=Chinese_People's Republic of China.936
[4] LC_NUMERIC=C
[5] LC_TIME=Chinese_People's Republic of China.936
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] MASS_7.3-11
loaded via a namespace (and not attached):
[1] tools_2.12.1