A function to evaluate the log-posterior of a spatial parametric proportional hazards model using gridded Y. Not intended for general use.
logPosterior_gridded(
surv,
X,
beta,
omega,
eta,
gamma,
priors,
cov.model,
u,
control,
gradient = FALSE,
hessian = FALSE
)
evaluates the log-posterior and the gradient and hessian, if required.
an object of class Surv
the design matrix, containing covariate information
parameter beta
parameter omega
parameter eta
parameter gamma
the priors, an object of class 'mcmcPriors'
the spatial covariance model
vector of interpoint distances
a list containg various control parameters for the MCMC and post-processing routines
logical whether to evaluate the gradient
logical whether to evaluate the Hessian
Benjamin M. Taylor and Barry S. Rowlingson (2017). spatsurv: An R Package for Bayesian Inference with Spatial Survival Models. Journal of Statistical Software, 77(4), 1-32, doi:10.18637/jss.v077.i04.