rsfm_mcmc | R Documentation |
Fit 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 |
$unrestricted |
A list containing
|
$restricted |
A list containing
|
$out |
BUGS output |
$time |
time elapsed for fitting the model |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.