identityMatrix | R Documentation |
Returns a d-by-d identity matrix (square matrix of 0's, with 1's on the main diagnol).
identityMatrix(d)
d |
The size of the identity matrix to return, will return a d-by-d matrix |
This function can be used in NIMBLE run code. It is deprecated because now one can use diag(d) instead.
A d-by-d identity matrix
Daniel Turek
Id <- identityMatrix(d = 3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.