naive_b {intccr} | R Documentation |
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, 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 |
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, |
q |
a number of parameters in design matrix |
k |
a parameter that controls the number of knots in the B-spline with |
Details
The function naive_b
provides initial values for the optimization procedure.
Value
Initial values of B-spline estimation
b |
a vector of the initial values to be used in the optimization process |
Author(s)
Giorgos Bakoyannis, gbakogia@iu.edu
Jun Park, jun.park@alumni.iu.edu
Examples
attach(simdata)
intccr:::naive_b(data = simdata, v = v, u = u, c = c, q = 2)