Description Usage Arguments Value Author(s) See Also
Simulate samples from a hierarchical conditional-autoregressive model.
1 |
psi |
A vector of the length of all parameters used for the importance sampler. When the spatial weight matrix W for individual unit is supplied in the data, the first four entries of psi are
Then the rest of entries are values for the linear coefficient beta. Otherwise, the function assumes that there is no spatial correlation among the individual unit and the first three entries are used to specify lambda, sigma.e, sigma.u and the rest for beta. |
data |
A list or an environment contains the following variables
|
n.samples |
the number of Monte Carlo samples |
psi |
the importance sampler value used for generating the samples, |
n.samples |
the number of Monte Carlo samples, |
u.y |
the Monte Carlo samples of the randome effects, |
lpsi |
the unnormalsied likelihood components evaluated at psi, |
const.psi |
the constant in the likelihood function evaluated at psi |
Zhe Sha zhesha1006@gmail.com
mcl.HCAR
, OptimMCL.HCAR
, summary.OptimMCL.HCAR
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.