Convenience function for extracting the pointwise log-likelihood matrix or array from a fitted Stan model.
A varstan object of the time series fitted model.
A logical scalar indicating whether the draws after
additional values need in log_lik methods
Usually, an S x N matrix containing the pointwise log-likelihood
samples, where S is the number of samples and N is the number
of observations in the data. If
an S x N x R array is returned, where R is the number of fitted
Vehtari, A., Gelman, A., & Gabry J. (2016). Practical Bayesian model
evaluation using leave-one-out cross-validation and WAIC. In Statistics
Gelman, A., Hwang, J., & Vehtari, A. (2014). Understanding predictive information criteria for Bayesian models. Statistics and Computing. 24, 997-1016.
Watanabe, S. (2010). Asymptotic equivalence of Bayes cross validation and widely applicable information criterion in singular learning theory. The Journal of Machine Learning Research. 11, 3571-3594.
1 2 3 4 5 6
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.