NonSpatialLogLikelihood_or_gradient: NonSpatialLogLikelihood_or_gradient function

View source: R/nonspatial_log_likelihood_and_derivatives.R

NonSpatialLogLikelihood_or_gradientR Documentation

NonSpatialLogLikelihood_or_gradient function

Description

A function to evaluate the log-likelihood of a non-spatial parametric proportional hazards model. Not intended for general use.

Usage

NonSpatialLogLikelihood_or_gradient(
  surv,
  X,
  beta,
  omega,
  control,
  loglikelihood,
  gradient
)

Arguments

surv

an object of class Surv

X

the design matrix, containing covariate information

beta

parameter beta

omega

parameter omega

control

a list containg various control parameters for the MCMC and post-processing routines

loglikelihood

logical whether to evaluate the log-likelihood

gradient

logical whether to evaluate the gradient

Value

...

References

  1. 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.


spatsurv documentation built on Oct. 19, 2023, 9:07 a.m.