title: Simples moving average error using the forecast package
body: <p>When I try to forecast a time series with sma using the forecasting function I get this error:</p>
  
  <pre><code>fc &lt;- forecast(sma(ts),h=3)
  </code></pre>
  
  <blockquote>
    <p>Error: The provided model is not Simple Moving Average!</p>
  </blockquote>
  
  <p>Anyone knows how to fix it?
  The forecast is from the fpp2 package and the moving average function is from the smooth package.</p>
  
  <p>This is an example:</p>
  
  <pre><code>library(smooth)
  library(fpp2)
  library(readxl)
  setwd("C:\\Users\\lferreira\\Desktop\\FORECASTING") 
  
  data&lt;- read_xlsx("BASE_TESTE.xlsx") 
   ts &lt;- ts(data$`1740`,start=c(2014,1),frequency=4)
  &gt; fc &lt;- forecast(sma(ts),h=3)
  </code></pre>
  
  <blockquote>
    <p>Error: The provided model is not Simple Moving Average!</p>
  </blockquote>