How do I Create the Identity Matrix in R?
I googled for this once upon a time and nothing came up. Hopefully this saves someone ten minutes of digging about in the documentation.
You make identity matrices with the keyword diag, and the number of dimensions in parentheses.
__ diag(3)
[,...
[Read more...]