naive_b: Initial values for the sieve maximum likelihood estimation

View source: R/naive_b.R

naive_bR 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 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

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)

intccr documentation built on May 10, 2022, 9:05 a.m.

Related to naive_b in intccr...