BayesSurv_AFTtv: Bayesian Accelerated Failure Time Model with...

Description Usage Arguments Value

View source: R/BayesSurv_AFTtv.R

Description

Bayesian Accelerated Failure Time Model with Percentile-varying Effects

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
BayesSurv_AFTtv(
  Y,
  Xmat,
  Xvec_tv,
  prior_list,
  tuning_vec,
  hyper_list,
  knots,
  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

Xvec_tv

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

prior_list

a list of priors being used

tuning_vec

a vec of tuning parameters

hyper_list

a list of hyperparameters

knots

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

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

Value

a list with outputs


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