e forecast</span></span>
<span class="r-in"><span class="va">h</span> <span class="op">&lt;-</span> <span class="fl">12</span></span>
<span class="r-in"></span>
<span class="r-in"><span class="co"># split to training/testing partition</span></span>
<span class="r-in"><span class="va">split_ts</span> <span class="op">&lt;-</span> <span class="fu"><a href="ts_split.html">ts_split</a></span><span class="op">(</span><span class="va">USgas</span>, sample.out  <span class="op">=</span> <span class="va">h</span><s