rsfm_mcmc.RdFit a Restricted Spatial Frailty model using BUGS
rsfm_mcmc(model, data, inits, parameters, covariates, area, proj = "none", fast = TRUE, nsamp = 1000, burnin = 5000, lag = 10, ...)
| model | character with the model in text format. |
|---|---|
| data | a data frame or list containing the variables in the model. |
| inits | initial values for the chain. |
| parameters | vector of parameters names to restore. |
| covariates | vector of covariates names. |
| area | areal variable name in |
| proj | "none" or "rhz". |
| fast | set TRUE, to use the reduction operator. |
| nsamp | number of samples. Default = 1000. |
| burnin | burn-in size. |
| lag | lag parameter. |
| ... | other parameters used in ?R2OpenBUGS::bugs |
A list containing
$sample: a sample of size nsamp for all parameters in the model
$summary_fixed: summary measures for the coefficients
$summary_hyperpar: summary measures for hyperparameters
$summary_random: summary measures for random quantities
A list containing
$sample: a sample of size nsamp for all parameters in the model
$summary_fixed: summary measures for the coefficients
$summary_hyperpar: summary measures for hyperparameters
$summary_random: summary measures for random quantities
BUGS output
time elapsed for fitting the model