lmn_loglik | R Documentation |
Loglikelihood function for LMN models.
lmn_loglik(Beta, Sigma, suff)
Beta |
A |
Sigma |
A |
suff |
An object of class |
Scalar; the value of the loglikelihood.
# generate data n <- 50 q <- 3 Y <- matrix(rnorm(n*q),n,q) # response matrix X <- 1 # intercept covariate V <- 0.5 # scalar variance specification suff <- lmn_suff(Y, X = X, V = V) # sufficient statistics # calculate loglikelihood Beta <- matrix(rnorm(q),1,q) Sigma <- diag(rexp(q)) lmn_loglik(Beta = Beta, Sigma = Sigma, suff = suff)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.