loglik: Compute log-likelihood

Description Usage Arguments Value

View source: R/mt.R

Description

This function calculates the log-likelihood (LL). It takes as input three vectors (or matrices) with one containing the real y's, one with the predicted y's from the model and the last one with the variance of the y's.

Usage

1
loglik(y, ypred, Vpred)

Arguments

y

Response data

ypred

Mean of predicted responses

Vpred

Variance of the predicted responses

Value

LL for the given data


mgoulet847/tagi documentation built on Dec. 21, 2021, 5:10 p.m.