On Fri, Sep 30, 2022 at 11:47 AM Cottrell, Allin <cottrell(a)wfu.edu> wrote:
No question about it, Jack's use of mshape() is vastly superior to the
version I posted. For the uninitiated, here's what the mshape call is
doing:
Take a row vector of length N*T, of the form "T observations for unit
i, variable 1; T observations for unit i, variable 2,..." and reshape
it into a T x nvars matrix, which is precisely what we want for block
i of the final panel dataset.
Oops, I misstated that, The row vector in question is of length
nvars*T, not N*t (nvars = number of variables, N = number of units in
the panel dataset).
Allin