Learn R Programming

bayesSurv (version 2.6)

bayesHistogram.help: Helping function for Bayesian smoothing of (bi)-variate densities based on possibly censored data

Description

These functions are not to be called by ordinary users.

These are just sub-parts of `bayesHistogram' function to make it more readable for the programmer.

Usage

bayesHistogram.design(y1, y2)

bayesHistogram.checkStore(store)

bayesHistogram.priorInit(prior, init, mcmc.par, design)

bayesHistogram.writeHeaders(dir, design, prior.init, store)

Arguments

y1
response for the first dimension. This should be a~survival object created by Surv
y2
response object for the second dimension (if bivariate density is to be smoothed). This should be a~survival object created by Surv. Further, it must be consistent with y1, i.e
store
a~list with appropriate components
prior
a~list as required by prior argument of function bayesHistogram
init
a~list as required by init argument of function bayesHistogram
mcmc.par
a~list as required by mcmc.par argument of function bayesHistogram
design
a~list with the design information as returned by the function bayesHistogram.design. The list is assumed to have the following components: [object Object],[object Object],[object Object],[object Object]
dir
string giving a~directory where to store sampled files
prior.init
an~object as returned by bayesHistogram.priorInit

Value

  • Some lists.