Mmodel_compute_cor | R Documentation |
This function takes a inla
object fitted using the MCAR_INLA
function and computes the correlation coefficients between diseases.
Mmodel_compute_cor(model, n.sample = 10000)
model |
object of class |
n.sample |
numeric; number of samples to generate from the approximated joint posterior for the hyperparameters (see |
The input inla
object with two additional elements:
summary.cor |
A data.frame containing the mean, standard deviation, quantiles and mode of the correlation coefficients between diseases. |
marginals.cor |
A list containing the posterior marginal densities of the correlation coefficients between diseases. |
summary.var |
A data.frame containing the mean, standard deviation, quantiles and mode of the variances for each disease. |
marginals.var |
A list containing the posterior marginal densities of the variances for each disease. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.