.dataframe_fun {BayesFBHborrow}R Documentation

Create data.frame for piecewise exponential models

Description

Construct a split data.frame for updated split points

Usage

.dataframe_fun(Y, I, X, s, lambda, bp, J)

Arguments

Y

time-to-event

I

censor indicator

X

design Matrix

s

split point locations, including start and end (length J + 2)

lambda

baseline Hazards (length J+1)

bp

number of covariates

J

number of split points

Value

data.frame with columns c(tstart, id, X1,..., Xp, Y, I, lambda)


[Package BayesFBHborrow version 2.0.1 Index]