Hello,
 
I tried to fit a lognormal distribution by using optim. But sadly the output
seems to be incorrect.
Who can tell me where the "bug" is?
 
test     =     rlnorm(100,5,3)
logL    =     function(parm, x,...) -sum(log(dlnorm(x,parm,...)))
start    =     list(meanlog=5, sdlog=3)
optim(start,logL,x=test)$par
 
Carsten.

	[[alternative HTML version deleted]]


