Skip to content

error in fitdistr

2 messages · Soheila Khodakarim, Mark Difford

#
On Feb 23, 2012 at 11:19am Soheila wrote:

            
The warning message tells you to use "Brent" rather than the default
Nelder-Mead. So do that.

##
?optim
est.chi[i,]<-c( fitdistr(as.numeric(data2[,i]), densfun="chi-squared",
start=list(df=1), method="Brent")$estimate)

Regards, Mark.

-----
Mark Difford (Ph.D.)
Research Associate
Botany Department
Nelson Mandela Metropolitan University
Port Elizabeth, South Africa
--
View this message in context: http://r.789695.n4.nabble.com/error-in-fitdistr-tp4413293p4413459.html
Sent from the R help mailing list archive at Nabble.com.