View source: R/f07.normal.code.r
dev4mn | R Documentation |
From the n
observed values of a vector of size p
(Y),
their expectations (EY) and the variance matrix (VY) supposed
identical for all vectors, returns the deviance, i.e.
-2*log(p(Y))
.
dev4mn(Y, EY, VY)
Y |
Matrix |
EY |
Expectation of |
VY |
Matrix of the variance of each row of |
When EY
is a vector with length ncol(Y)
this supposes
that all observations have the same expectation.
A scalar
dev4mn(matrix(runif(3), 1), t(rbmn0mn.01$mu), rbmn0mn.01$gamma);
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.