give.init {bayesSurv} | R Documentation |
Check and possibly fill in initial values for the G-spline, augmented observations and allocations for Bayesian models with G-splines
Description
These functions are not to be called by ordinary users.
These are just sub-parts of bayesBisurvreg.priorInit
and
related functions to make them more readable for the programmer.
Usage
give.init.Gspline(prior, init, mcmc.par, dim)
give.init.y(init.y, dim, y.left, y.right, status)
give.init.y2(init.y, init2.y, dim, design, design2, doubly)
give.init.r(init.r, init.y, dim, KK,
gamma, sigma, c4delta, intcpt, scale)
Arguments
prior |
a~list as required by |
init |
a~list as required by |
mcmc.par |
a~list as required by |
dim |
dimension of the G-spline/response, 1 or 2. |
init.y |
initial (augmented) observations possibly given by the user.
They are partially checked for consistency and these supplied by the user
used in the resulting object. This should be either vector of length |
init2.y |
initial (augmented) times-to-event (if doubly censoring) possibly given by the user.
They are partially checked for consistency and these supplied by the user
used in the resulting object. This should be either vector of length |
design |
an~object as returned by the function
|
design2 |
an~object as returned by the function
|
doubly |
logical indicating whether the response is doubly censored or not |
y.left |
observed, left or right censored log(event time) or the lower limit
of the interval censored observation. Sorted in a~transposed order compared
to |
y.right |
upper limit of the interval censored observation, whatever if the observation
is not interval-censored sorted in a~transposed order compared to |
status |
status indicator vector/matrix. 1 for observed times, 0 for right censored times, 2 for left censored times, 3 for interval censored times. |
init.r |
initial allocations possibly given by the user. This should be a~vector of length
|
KK |
vector of length |
gamma |
vector of length |
sigma |
vector of length |
c4delta |
vector of length |
intcpt |
vector of length |
scale |
vector of length |
Value
Some lists.
Value for give.init.Gspline
A~list with the following components:
- Gparmi
integer parameters for the G-spline constructor in the C++ code
- Gparmd
double parameters for the G-spline constructor in the C++ code
- specification
specification of the G-spline model (1 or 2), see
bayesHistogram
for more detail
and the following attributes:
init |
prior |
mcmc.par |
Value for give.init.y
A~vector or matrix with the same structure as init.y
, i.e. with 2~columns and
n
rows in the case of the bivariate data.
Value for give.init.y2
A~list with the following components:
- init.y
a~vector of length
n
or a~matrix with 2 columns andn
rows with initial log(onset times)- init2.y
a~vector of length
n
or a~matrix with 2 columns andn
rows with initial log(times-to-event). If the data are not doubly cdensored, this object is equal to 0.- y1.left
lower limit of the log-response (or exact/right/left censored observation) as required by the C++ function
bayesBisurvreg
, related to the onset time in the case of doubly censoring and to the event time otherwise- y1.right
upper limit of the log-response as required by the C++ function
bayesBisurvreg
, related to the onset time in the case of doubly censoring and to the event time otherwise- status1
status vector as required by the C++ function
bayesBisurvreg
related to the onset time in the case of doubly censoring and to the event time otherwise- t2.left
lower limit of the response as required by the C++ function
bayesBisurvreg
, related to time-to-event in the case of doubly censoring, equal to 0 if there is no doubly-censoring- t2.right
upper limit of the response as required by the C++ function
bayesBisurvreg
, related to time-to-event in the case of doubly censoring, equal to 0 if there is no doubly-censoring- status2
status vector related to time-to-event in the case of doubly censoring, equal to 0 otherwise.
Value for give.init.r
To be added somewhen...
Author(s)
Arnošt Komárek arnost.komarek@mff.cuni.cz