Learn R Programming

aftsem (version 1.0)

gehan_estimation: Gehan's Estimation for Survival Data

Description

This function performs Gehan's estimation of regression parameters proposed by Jin

Usage

gehan_estimation(y, Z, delta, rsmat, m, init = FALSE)

Value

If `init = FALSE` and `change == 1`, returns a list with elements `INTERCEPT`, `RESID`, `ITERS`, `CONVERGED`, `BETA`. Otherwise, returns a matrix of resampled Gehan estimates.

Arguments

y

A numeric vector of survival times.

Z

A matrix of covariates

delta

A numeric vector indicating censoring status

rsmat

A resampling matrix

m

Method for quantreg optimalization

init

A logical value indicating whether to return the initial fit object (default is `FALSE`). If `FALSE`, only the coefficients are returned.

Author

Zherzen Jin