[R] R-package imputeTS / warning messages

Ivan Krylov kry|ov@r00t @end|ng |rom gm@||@com
Fri Nov 4 08:40:00 CET 2022

Dear Paulo Barata,

On Wed, 26 Oct 2022 11:27:54 -0300
Paulo Barata <pb using infolink.com.br> wrote:

> In stats::StructTS(data, ...) :
>    possible convergence problem: 'optim' gave code = 52 and message
> The function StructTS is called by the function na_kalman of the 
> imputeTS package.

Since you're not getting replies here, it might help to contact

I think that ABNORMAL_TERMINATION_IN_LNSRCH happens when the line
search part of the L-BFGS-B algorithm determines that the directional
derivative of the function being optimised along the direction of the
previous step turns out to be positive, meaning that the step direction
was bad in the first place. There may be many reasons for this to

It might also help to look at the optimisation process by passing the
optim.control = list(trace = 3) argument (available levels are 1 to 6,
with 6 being very verbose).

Best regards,

More information about the R-help mailing list