ivxj.within_trans ================= .. py:module:: ivxj.within_trans Functions --------- .. autoapisummary:: ivxj.within_trans.within_trans Module Contents --------------- .. py:function:: within_trans(A, Tlens) Perform within-group transformation for unbalanced panel data. This function applies a within-group transformation to unbalanced panel data by removing individual-specific means from each submatrix. :param A: The full dataset, represented as a panel of stacked submatrices (one for each individual). :type A: 2D array-like, dtype=float64 :param Tlens: The lengths of each submatrix (individual time series) in the panel. :type Tlens: 1D array-like, dtype=int :returns: **B** -- The dataset after applying the within-group transformation, with individual-specific means removed. :rtype: 2D array-like, dtype=float64