Generate a diagonal matrix from a vector of the diagonal entries like.
The difference to original
diag is that it always
gives a diagonal matrix and does nothing flawed in case of a length
a diagonal matrix.
Do not use gsi.* functions directly since they are internal functions of the package
K.Gerald v.d. Boogaart http://www.stat.boogaart.de
1 2 3 4
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.