ldiag | R Documentation |
ldiag
: Left (i.e., pre) Multiply
a matrix by a diagonal matrix (with only
the diagonal elements being given).
ldiag(y, X)
y |
a I element vector (of the diagonal elements of an I by I matrix) |
X |
an I by J matrix. |
an I by J matrix equal to diag(y)
Hervé Abdi
rdiag
## Not run: Z = ldiag(y, X) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.