Learn R Programming

DrBats (version 0.1.3)

calc.loglik: Calculate the log likelihood of the model

Description

Calculate the log likelihood of the model

Usage

calc.loglik(Y, W, B, sigma2, tau2, a = 0.001, b = 0.001)

Arguments

Y
is an NxP matrix
W
is a PxD matrix
B
is a DxN matrix
sigma2
is a real number
tau2
is a real number
a
the first parameter of the inverse gamma distribution
b
the second parameter of the inverse gamma distribution

Value

  • loglik the likelihood