title: How to solve error in array when using dynardl in R?
body: <p>I am receiving an error message when I am trying to perform an ARDL in R.</p>
  <pre><code>install.packages(&quot;dynamac&quot;)
  library(dynamac)
  
  recession_data &lt;- read_excel(&quot;recession_data copy.xls&quot;)
  head(recession_data)
  
  y &lt;- ts(recession_data$USREC, start = c(1982,1,1), frequency = 12)
  SPREAD &lt;- ts(recession_data$T10Y3M, start = c(1982,1,1), frequency = 12)
  stockprice &lt;- ts(recession_data$WILL5000PRFC, start = c(1982,1,1), frequency = 12)
  
  ardl.model &lt;- dynardl(y ~ SPREAD + stockprice, data = recession_data, 
  +                       lags = list(&quot;y&quot; = 1, &quot;SPREAD&quot; = 1, &quot;stockprice&quot; = 1),
  +                       diffs = c(&quot;SPREAD&quot;, &quot;stockprice&quot;), 
  +                       ec = TRUE, simulate = FALSE)
  
  Error in array(x, c(length(x), 1L), if (!is.null(names(x))) list(names(x),  : 
    'data' must be of a vector type, was 'NULL'
  </code></pre>