Description Usage Arguments Details Value Author(s) References See Also Examples
This function performs Monte Carlo maximum likelihood in a generalised linear spatial model, based on a Monte Carlo sample from the conditional distribution.
1 2 3 4 |
mcmc.obj |
object with the Monte Carlo simulations and corresponding approximating density.
This object should be an output from the function
|
trend |
specifies the covariate values at the data
locations.
See documentation of |
cov.model |
a string specifying the model for the correlation
function. For further details see documentation for |
kappa |
additional smoothness parameter required by the following correlation
functions: |
ini.phi |
initial value for the covariance parameter phi. |
fix.nugget.rel |
logical, saying whether the parameter
tau_R^2 (relative nugget) should be regarded as fixed
( |
nugget.rel |
value of the relative nugget parameter.
Regarded as a fixed value if |
aniso.pars |
parameters for geometric anisotropy
correction. If |
fix.lambda |
logical, indicating whether the Box-Cox transformation parameter
lambda should be regarded as fixed
( |
lambda |
value of parameter lambda in the Box-Cox class of link functions.
Regarded as a fixed value if |
limits |
values defining lower and upper limits for the model parameters used in the numerical minimization.
The auxiliary function |
messages |
logical. Indicates whether status messages should be printed on the screen (or output device) while the function is running. |
... |
additional parameters to be passed to the optimisation
function. Typically arguments of the type |
This function estimates the parameters in the Poisson/Binomial normal model, using a Monte Carlo approximation to the likelihood. Further details can be found in Christensen (2004).
Parameter estimation is done numerically using the R function
optim
with box-constraints, i.e. method="L-BFGS-B"
.
Lower and upper limits for parameter values can be specified using the function pars.limits()
.
For example, including limits = pars.limits(phi=c(0.01, 10))
in the function call
will specify the limits for the parameter phi.
Default values are used if the argument limits
is not provided.
Only when the mcmc.obj
object contains an object mu
giving the intensity, is it possible to use other link
functions than the link function used for the generated sample in
mcmc.obj
We strongly recommend that the user does not
provide self-made input objects for mcmc.obj
, but only uses objects created by prepare.likfit.glsm
. In case the user
really wants to create his own objects, he should study the source code
very carefully to understand how it works.
Summary and print methods for summarising and printing the output also exist.
A list with the following components:
family |
the error distribution (Poisson or Binomial). |
link |
the name of the link function. |
cov.model |
a string with the name of the correlation function. |
beta |
estimate of the parameter beta. This can be a scalar or vector depending on the covariates (trend) specified in the model. |
cov.pars |
a vector with the estimates of the parameters sigma^2 and phi, respectively. |
nugget.rel |
value of the relative nugget parameter tau_R^2.
This is an estimate if |
kappa |
value of the smoothness parameter. Valid only when
the correlation function is one of: |
lambda |
values of the parameter for the Box-Cox class of link functions. A fixed value if
|
aniso.pars |
values of the anisotropy parameters used. |
trend |
the trend |
parameters.summary |
a data-frame with all model parameters, their status (estimated or fixed) and values. |
loglik |
the value of the maximized likelihood. |
npars |
number of estimated parameters. |
info.minimisation |
results returned by the minimisation function. |
call |
the function call. |
Ole F. Christensen OleF.Christensen@agrsci.dk,
Paulo J. Ribeiro Jr. Paulo.Ribeiro@est.ufpr.br.
Christensen, O. F. (2004). Monte Carlo maximum likelihood in model-based geostatistics. Journal of computational and graphical statistics 13 702-718.
Further information about geoRglm can be found at:
http://gbi.agrsci.dk/~ofch/geoRglm.
prepare.likfit.glsm
on how to prepare the object mcmc.obj
, glsm.mcmc
for
MCMC simulation in generalised linear spatial model, and summary.likGLSM
for
summarising the output. See also likfit
for
parameter estimation in the Gaussian spatial model.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | data(p50)
## Not run:
mcmc.5 <- mcmc.control(S.scale = 0.6, thin=20, n.iter=50000, burn.in=1000)
model.5 <- list(cov.pars=c(0.6, 0.1), beta=1, family="poisson")
outmcmc.5 <- glsm.mcmc(p50, model= model.5, mcmc.input = mcmc.5)
mcmcobj.5 <- prepare.likfit.glsm(outmcmc.5)
lik.5 <- likfit.glsm(mcmcobj.5, ini.phi = 0.1, fix.nugget.rel = TRUE)
print(lik.5)
summary(lik.5)
lik.5.sph.nugget <- likfit.glsm(mcmcobj.5, ini.phi = 1,
cov.model = "spherical", nugget.rel = 0.385)
print(lik.5.sph.nugget)
summary(lik.5.sph.nugget)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.