title: genFEVD function does not work on my VECM model, why?
body: <p>So here is how I build my VECM model (the model has 4 variables):</p>
  <pre><code>model1 &lt;- VECM(VARdf, lag = 6, include = &quot;const&quot;, estim = &quot;ML&quot;, r = 3)
  </code></pre>
  <p>and this is the code which I used to get the order-independent variance decomposition with:</p>
  <pre><code>genfevd_total &lt;- genFEVD(vec2var(model1, r=3), n.ahead = 6)
  
  </code></pre>
  <p>but I got the following error:</p>
  <pre><code>Error in irf(est, n.ahead = n.ahead, boot = F, ortho = F) : 
    Unsupported class of estimate
  In addition: Warning messages:
  1: In if (class(est) %in% c(&quot;varest&quot;, &quot;vec2var&quot;)) { :
    the condition has length &gt; 1 and only the first element will be used
  2: In if (class(est) == &quot;BigVAR.results&quot;) { :
    the condition has length &gt; 1 and only the first element will be used
  
  </code></pre>