get.loglik | R Documentation |
Provides the pointwise log-likelihood contribution for each datapoint and simulation which is required to compute the Pseudo-Marginal Likelihood (PML) and Widely Applicable Information Criterion (WAIC).
get.loglik(df, lambda_df, changepoint_df)
object |
of class "changepoint". |
chng.numvalue |
indicating the changepoint model to plotted, default is "all", in which all posterior simulations will be used. |
a matrix of size nSims by n_obs (number of simulations and number of observations respectively).
## Not run:
Can take a considerable time to evaulate.
log.lik.df <- get.loglik(Collapsing_Model)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.