psplineRWprior: psplineRWprior function

View source: R/RWprior.R

psplineRWpriorR Documentation

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)

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

Value

an object of class "omegapriorGauss"

See Also

survspat, betapriorGauss, omegapriorGauss, etapriorGauss, indepGaussianprior, derivindepGaussianprior


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