It seems like there is substantial finite-sample bias in the MLEs.  Either that 
or there is some error in your procedure.  See attached code.

Ravi

From: Ravi Varadhan
Sent: Wednesday, November 11, 2015 2:33 PM
To: 'denizozo...@gazi.edu.tr' <denizozo...@gazi.edu.tr>; r-help@r-project.org
Cc: 'profjcn...@gmail.com' <profjcn...@gmail.com>
Subject: Re: [R] About error: L-BFGS-B needs finite values of 'fn'

With a small sample size, n=30, you will have realizations of data where you 
will run into difficulties with the MLE of generalized Gamma distribution.  
This is mainly due to the `k' parameter.  Increase the sample size (e.g., n=50 
or 100) and this problem is less likely to happen (but can still happen).

I would strongly suggest that when you are doing simulations, you should 
encapsulate the parameter estimation inside a `try' or `tryCatch' statement so 
that when there is an error, the simulation keeps going rather than crashing 
out.

See the attached code.

Best,
Ravi

Ravi Varadhan, Ph.D. (Biostatistics), Ph.D. (Environmental Engg)
Associate Professor,  Department of Oncology
Division of Biostatistics & Bionformatics
Sidney Kimmel Comprehensive Cancer Center
Johns Hopkins University
550 N. Broadway, Suite 1111-E
Baltimore, MD 21205
410-502-2619

______________________________________________
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
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.

Reply via email to