Description Usage Arguments Value
View source: R/hmi_mainfunctions_2016-07-27withMCMCglmm.R View source: R/hmi_mainfunctions_2016-07-13.R
It generates the Markov chains of the imputation parameters by drawing from their conditional distributions until convergence
It generates the Markov chains of the imputation parameters by drawing from their conditional distributions until convergence
1 2 3 4 5 | gibbs.coef(y_gibbs, X_gibbs, Z_gibbs, clID, n.iter = 100, M = 10,
n.chains = 3, burn.in = 1/3, max.iter = 5000)
gibbs.coef(y_gibbs, X_gibbs, Z_gibbs, clID, n.iter = 100, M = 10,
n.chains = 3, burn.in = 1/3, max.iter = 5000)
|
y_gibbs |
A vector or data.frame with |
X_gibbs |
A data.frame containing the covariates influencing |
Z_gibbs |
A data.frame containing the covariates influencing |
clID |
A factor (should come as data.frame or vector) containing the cluster IDs. |
n.iter |
An integer defining the number of iterations that should be run in each bunch of iterations. |
M |
An integer defining the number of imputations that should be made. |
n.chains |
An integer defining the number of Markov chains to be made. |
burn.in |
A numeric between 0 and 1 defining the percentage of draws from the gibbs sampler that should be discarded as burn in. |
max.iter |
An integer defining the maximum number of iterations that should be run in total. |
y |
A vector or data.frame with |
X |
A vector a data.frame containing the covariates influencing |
Z |
A vector a data.frame containing the covariates influencing |
cl.id |
A factor (should come as data.frame or vector) containing the cluster IDs. |
m |
An integer defining the number of imputations that should be made. |
n.iter |
An integer defining the number of iterations that should be run in each bunch of iterations. |
max.iter |
An integer defining the maximum number of iterations that should be run in total. |
n.chains |
An integer defining the number of Markov chains to be made. |
burn.in |
A numeric between 0 and 1 defining the percentage of draws from the gibbs sampler that should be discarded as burn in. |
It returns a multidimensional vector with the Markov chains
containing the imputation parameters needed for imp_multi
.
It returns a multidimensional vector with the Markov chains
containing the imputation parameters needed for imp_multi
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.