>Source: <a href="https://github.com/danigiro/FoReco/blob/HEAD/R/fun_export.R" class="external-link"><code>R/fun_export.R</code></a></small>
      <div class="d-none name"><code>unbalance_hierarchy.Rd</code></div>
    </div>

    <div class="ref-description section level2">
    <p>A hierarchy with \(L\) upper levels is said to be balanced if each variable at level
\(l\) has at least one child at level \(l+1\). When this doesn't hold, the
hierarchy is unbalanced.
This function transforms an aggregation matri