FWIW, the following are 2 shorter ways for converting an input vector to lm()
into a matrix:
reshape(x,:,1)
view(x,:,:)
FWIW, the following are 2 shorter ways for converting an input vector to lm()
into a matrix:
reshape(x,:,1)
view(x,:,:)