marginal_d_cpp | R Documentation |
It calculates the marginal density (Lewis and Raftery, 1997) from the DIFM sample using C++.
marginal_d_cpp(data, attributes, hyp_parm, Gibbs, burnin = -1L, verbose = TRUE)
data |
The dataset |
attributes |
Model attributes generated from |
hyp_parm |
Hyperparameters generated from |
Gibbs |
Result of Gibbs sampler from DIFM function. |
burnin |
Burn-in period. If not specified, one tenths of the iterations will be the burn-in period. |
verbose |
Print out the process. |
A list of 4 items: Laplace-Metropolis predictive density of the given DIFM, integrated likelihood, the maximum of the predictive densities and determinant of the covariance matrix of the parameters.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.