Initial values for the sieve maximum likelihood estimation
Initial values for the sieve maximum likelihood estimation
The function naive_b provides a vector of initial values for the B-spline sieve maximum likelihood estimation.
naive_b(data, w =NULL, v, u, c, q, k =1)
Arguments
data: a data frame that includes the variables named in each argument
w: a left-truncation time (default is w = NULL.)
v: the last observation time prior to the failure
u: the first observation time after the failure
c: an indicator of cause of failure, for example, if an observation is righ-censored, event = 0; otherwise, event = 1 or event = 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 number of parameters in design matrix
k: a parameter that controls the number of knots in the B-spline with 0.5≤k≤1
Returns
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.
Examples
attach(simdata)intccr:::naive_b(data = simdata, v = v, u = u, c = c, q =2)