loglik: Calculate log-likelihood

Description Usage Arguments Value

View source: R/RcppExports.R

Description

Calculates log-likelihood after obtaining draws from the joint posterior distribution. Use after running run_mcmc.

Usage

1
loglik(y, X, Bs, Bt, missing, Theta, Varphi, iter, burnin)

Arguments

y

A list of of length n containing responses

X

An n x p design matrix

Bs

Basis matrix for longitudinal direction

Bt

Basis matrix for functional direction

missing

A list of length n containing missing indices for each response

Theta

Posterior draws of Theta, arranges in a cube

Varphi

Posterior draws of Varphi, vector format

iter

Number of total samples

burnin

Number of samples to use as burnin

Value

A Matrix of size (iter - burnin) x number of observed time points over all subjects containing log-likelihood values


jshamsho/LFBayes documentation built on June 8, 2021, 4:38 a.m.