[R] Error message handling

Kang.Changku@epamail.epa.gov Kang.Changku at epamail.epa.gov
Wed Jun 23 23:24:14 CEST 2004

Dear, R experts.
Does anybody have experience with 'optim' function?

I have an error message as the following.

Error in optim(transcoefs, fn = hfdeviance, gr = hfdeviance.grad, method
= "BFGS",  :
initial value in vmmin is not finite

I want to make a comment when this happen.
Is there way I can put *my* message after this error occur?

Thanks in advance

Changku Kang
National Center for Environmental Assessment
EPA  (B211F)
919-541-0245 (fax)
Kang.Changku at epa.gov

Graduate Student
Department of Statistics, NCSU
ckang2 at stat.ncsu.edu

More information about the R-help mailing list