Message: 4
Date: Tue, 8 May 2012 14:35:10 -0500
From: Wenhao Gui <guiwenhao at gmail.com>
To: r-help at r-project.org
Subject: [R] optim question
Message-ID:
<CABZdO=zKr1wsXmTOQ54UieVQfpkAx=CYT0dZiP7Yt1CjB6Exyg at mail.gmail.com>
Content-Type: text/plain
Hello,
I used optim to find the MLE estimates of some parameters. See the code
below. It works for data1(x). but It did not work for data2 and the error
says" L-BFGS-B needs finite values of 'fn' ".
data2: c(x, 32) that is, if I added the number 32 at the end of data1.
The error appears "non-finite function value" etc.
Any comments or suggestions?
Thanks!
Wenhao