BayesSurv_AFT2: Bayesian Accelerated Failure Time Model

Description Usage Arguments Value

View source: R/BayesSurv_AFT2.R

Description

Bayesian Accelerated Failure Time Model

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
BayesSurv_AFT2(
  Y,
  Xmat,
  tuning_vec,
  hyper_list,
  numReps,
  thin,
  burninPerc,
  n_chains = NULL,
  start_list = NULL
)

Arguments

Y

an n by 3 matrix with columns: left end of interval, right end of interval, left truncation time

Xmat

an n by p matrix of covariates

tuning_vec

a vec of tuning parameters

hyper_list

a list of hyperparameters

numReps

numeric total number of iterations

thin

numeric number of iterations to take before each sample

burninPerc

numeric proportion of numReps to toss as burn-in

n_chains

numeric number of chains to initialize, if start_list is null

start_list

a list of lists of start values. If null, n_chains sets number of chains

Xvec_tv

an n-length vector with the covariate having a time-varying effect

prior_list

a list of priors being used

knots

a vector of knots (doesn't start with 0, does end with maximum time)

Value

a list with outputs


harrisonreeder/AFTTV documentation built on Dec. 20, 2021, 2:51 p.m.