mcl.HCAR: The Monte Carlo likelihood function of the HCAR model.

Description Usage Arguments Value Author(s) See Also

View source: R/mcl.HCAR.R

Description

Evaluate the Monte Carlo likelihood of a hierarchical conditional-autoregressive model at a given parameter value and importance sampler value.

Usage

1
mcl.HCAR(pars, mcdata, data, Evar = FALSE)

Arguments

pars

parameter values at which the Monte Carlo likelihood function to be evaluated

mcdata

The Monte Carlo sample object returned by the function sim.HCAR

data

A list or an environment containing the same variables same as the input for sim.HCAR,

Evar

If true, the Monte Carlo variance is evaluated.

Value

mc.lr

the Monte Carlo likelihood

v.lr

if Evar = TRUE, the Monte Carlo variance of the likelihood is also returned

Author(s)

Zhe Sha zhesha1006@gmail.com

See Also

sim.HCAR, OptimMCL.HCAR, summary.OptimMCL.HCAR


mclcar documentation built on Jan. 8, 2022, 5:07 p.m.