calc_ll_pg_stlm: Log-likelihood for pg_stlm() model for use in model selection

View source: R/calc_ll.R

calc_ll_pg_stlmR Documentation

Log-likelihood for pg_stlm() model for use in model selection

Description

this function generates the log-linkelihood for data fit using the pg_splm() function. The log-likelihood can be used for model selection and evaluation.

Usage

calc_ll_pg_stlm(Y, X, out)

Arguments

Y

is a N x J x T array of compositional count data.

X

is a n_sites x p matrix of climate variables.

out

is a list of MCMC outputs from pg_stlm()


jtipton25/pgR documentation built on July 8, 2022, 12:44 a.m.