BTRR_post_hoc_AR1_llik: Calculate the log-likelihood

View source: R/903_post_hoc_fns.R

BTRR_post_hoc_AR1_llikR Documentation

Calculate the log-likelihood

Description

Calculate the log-likelihood for the Bayesian tensor response regression model. This can be useful when performing diagnostics. This is excluded from the Markov Chain function for performance gains.

Usage

BTRR_post_hoc_AR1_llik(input_data, results_obj)

Arguments

input_data

A list of class TRR_data containing (at least) a response array Y and a design matrix x.

results_obj

A list of class BTRR_result containing the draws from the posterior distribution from BTRR_single_subject.

Value

A vector with length equal to the number of samples from the posterior distribution containing the log-likelihood values for each sample.


danieladamspencer/bayestensorreg documentation built on July 23, 2024, 10:14 a.m.