CenBAR: Broken Adaptive Ridge Estimator for Censored Data in AFT...

Description Usage Arguments Value Author(s) Examples

View source: R/CenBAR.R

Description

Prints 'Broken adaptive ridge (BAR) method to the semi-parametric accelerated failure time (AFT) model for right-censored survival data by applying the Leurgan's synthetic data.'.

Usage

1
CenBAR(X,Y,delta,lambda.path=NULL, enableScreening=FALSE)

Arguments

X

input matrix, of dimension nobs x nvars; each row is an observation vector.

Y

response variable.

delta

The status indicator, normally 0=alive, 1=dead.

lambda.path

A user supplied lambda sequence. One usage is to have the program compute its own lambda sequence based on nlambda and lambdaMax. lamdMax = max((t(x)*Y)^2/(4*t(x)*x)). The other usage is use the sequence depend on user's data.

enableScreening

If nobs > nvars, there is no need to do screening; If nobs <= nvars, it will do variable screening and then variable selection and estimate (defalt is FALSE).

Value

beta

the coefficients estimation of the variables.

Author(s)

Zhihua Sun, Chunyu Yu

Examples

1
2
3
4
5
  X=matrix(rnorm(10*2),10,2)
  Y=abs(rnorm(10))
  delta=sample(0:1,10,replace=TRUE)
  lambda.path <- seq(0.1, 10, l=5)
  fit = CenBAR(X,Y,delta,lambda.path)

CenBAR documentation built on Nov. 30, 2020, 5:09 p.m.

Related to CenBAR in CenBAR...