powered by
ldiag: Left (i.e., pre) Multiply a matrix by a diagonal matrix (with only the diagonal elements being given).
ldiag
ldiag(y, X)
an \(I\) by \(J\) matrix equal to diag(y)
a \(I\) element vector (of the diagonal elements of an \(I\) by \(I\) matrix)
an \(I\) by \(J\) matrix.
Hervé Abdi
rdiag