Hi all,
It seems that Stata 13 had a simple way to create diagonal matrix from non-diagonal matrix:
diag(Z), Z a matrix, extracts the principal diagonal of Z to create a new matrix.
Apparently you can't do it with Stata 15. Is there a simple alternative?
Thank you,
Stan
It seems that Stata 13 had a simple way to create diagonal matrix from non-diagonal matrix:
diag(Z), Z a matrix, extracts the principal diagonal of Z to create a new matrix.
Apparently you can't do it with Stata 15. Is there a simple alternative?
Thank you,
Stan
Comment