Learn R Programming

spatsurv (version 2.0)

psplineRWprior: psplineRWprior function

Description

A function to define Gaussian priors for omega. This function simply stores a vector of means and standard deviations to be passed to the main MCMC function, survspat.

Usage

psplineRWprior(taumean, tausd, basehaz, order = 2)

Value

an object of class "omegapriorGauss"

Arguments

taumean

the prior mean, a vector of length 1 or more. 1 implies a common mean.

tausd

the prior standard deviation, a vector of length 1 or more. 1 implies a common standard deviation.

basehaz

an object inheriting class "basehazardspec", specificlly, this function was used for such objects created by a call to the function PsplineHaz

order

the order of the random walk, default is 2

See Also

survspat, betapriorGauss, omegapriorGauss, etapriorGauss, indepGaussianprior, derivindepGaussianprior