Learn R Programming

spatsurv (version 0.9-11)

proposalVariance: proposalVariance function

Description

A function to compute an approximate scaling matrix for the MCMC algorithm. Not intended for general use.

Usage

proposalVariance(X, surv, betahat, omegahat, Yhat, priors, cov.model, u,
  control)

Arguments

X
the design matrix, containing covariate information
surv
an object of class Surv
betahat
an estimate of beta
omegahat
an estimate of omega
Yhat
an estimate of Y
priors
the priors
cov.model
the spatial covariance model
u
a vector of pairwise distances
control
a list containg various control parameters for the MCMC and post-processing routines

Value

  • an estimate of eta and also an approximate scaling matrix for the MCMC