Description Usage Arguments Details Value References See Also Examples
View source: R/logLik.bayesbr.R
A function that receives the information from the estimated model, the response variable and the theta and zeta chains and returns a vector containing loglik values for each iteration excluding warmups.
1 2 |
object |
an object of the class bayesbr, containing the list returned from the |
... |
further arguments passed to or from other methods. |
Loglik is commonly used to measure fit quality, or to assess whether an fit has converged. The loglik is calculated using maximum likelihood, but as we are in the Bayesian context we will use the mean of the posterior distribution of the parameters, so the calculation occurs from an adaptation of the original form to the loglik.
The function returns a list with
A vector with the estimated model loglik chain,
A matrix with all loglik's chain.
doi: 10.1080/0266476042000214501 Ferrari, S.L.P., and Cribari-Neto, F. (2004). Beta Regression for Modeling Rates and Proportions. Journal of Applied Statistics, 31(7), 799–815.
bayesbr
,residuals.bayesbr
,loglikPlot
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.