ivxj.delete_period_obs ====================== .. py:module:: ivxj.delete_period_obs Functions --------- .. autoapisummary:: ivxj.delete_period_obs.delete_period_obs Module Contents --------------- .. py:function:: delete_period_obs(A, Tlens, h, fromStart=True) Delete `h` observations from the start or end of each submatrix. This function removes the first `h` observations from each submatrix in unbalanced panel data to create a lag effect. If `fromStart` is set to `False`, the function will delete the last `h` observations instead. :param A: The full dataset, represented as a stacked 1D array. :type A: 1D array-like, dtype=float64 :param Tlens: The lengths of each submatrix (individual time series) in the panel. :type Tlens: 1D array-like, dtype=int :param h: The number of observations to delete from each submatrix. :type h: int :param fromStart: If `True`, delete the first `h` observations; if `False`, delete the last `h` observations. :type fromStart: bool, default=True :returns: **B** -- The dataset after deleting `h` observations from each submatrix. :rtype: 2D array-like, dtype=float64