Description Usage Arguments Value Author(s) See Also Examples
This function takes an output object from glsm.mcmc
, and the corresponding data object of class
geodata
, and prepares the
variables needed for the Monte Carlo maximum likelihood function
likfit.glsm
.
1 | prepare.likfit.glsm(mcmc.output, use.intensity = FALSE)
|
mcmc.output |
an output file from the function |
use.intensity |
logical. If |
An object containing the sample and the approximating density to be used in likfit.glsm
.
Ole F. Christensen OleF.Christensen@agrsci.dk,
Paulo J. Ribeiro Jr. Paulo.Ribeiro@est.ufpr.br.
likfit.glsm
for how to use the output from this function, and glsm.mcmc
for
generating the object mcmc.output
.
1 2 3 4 5 6 7 8 9 10 11 | ## Not run:
data(p50)
mcmc.4 <- mcmc.control(S.scale = 0.000035, n.iter = 1000)
kr4 <- list(family="poisson", cov.pars=c(1,1), beta=0)
condsim.4 <- glsm.mcmc(p50, mcmc.input = mcmc.4, model = kr4)
mcmcobj.4 <- prepare.likfit.glsm(condsim.4)
lik.4 <- likfit.glsm(mcmcobj.4, ini.phi = 10, fix.nugget.rel = TRUE)
lik.4.spherical.nugget <- likfit.glsm(mcmcobj.4, ini.phi = 5.59,
cov.model = "spherical", nugget.rel = 0.385)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.