naive_b: Initial values for the sieve maximum likelihood estimation
Description
The function naive_b provides a vector of initial values for the B-spline sieve maximum likelihood estimation.
Usage
naive_b(data, v, u, c, q)
Arguments
data
data frame to be used.
v
the last observation time prior to the failure.
u
the first observation time after the failure.
c
an indicator of cause of failure. If observation is righ-censored, event = 0; otherwise, event = 1 or 2, where 1 represents the first cause of failure, and 2 represents the second cause of failure. The current version of package only allows for two causes of failure.
q
a dimension of design matrix.
Value
Initial values of B-spline estimation
b
a vector of the initial values to be used in the optimization process
Details
The function naive_b provides initial values for the optimization procedure.