title: How to resolve error in Holtwinters forecast model with R?
body: <p>I have simple monthly dataset and simply trying this code:</p>
  <pre><code>`df2.holtwinters &lt;- subset(df, account_id==loopitem) 
    x.holtwinters &lt;- ts(df2.holtwinters$amount_usd, start = c(2015,1), end = c(2019,5), frequency = 12)
    arima1.holtwinters &lt;- HoltWinters(x.holtwinters)
    forecast1.holtwinters &lt;- predict(arima1.holtwinters, n.ahead=1*1)
  </code></pre>
  <p>The dataset look like this:</p>
  <pre><code>`      id     &lt;date&gt;         &lt;dbl&gt;
  1     123  2015-01-01       -390
  2     123  2015-02-01        944
  3     999  2015-01-01        672
  </code></pre>
  <p>It is giving following erros:</p>
  <pre><code>`In HoltWinters(x.holtwinters) :
    optimization difficulties: ERROR: ABNORMAL_TERMINATION_IN_LNSRCH
  </code></pre>