aft_based: Confidence interval based on AFT model

View source: R/aft_based.R

aft_basedR Documentation

Confidence interval based on AFT model

Description

Construct conformal predictive interval based on the accelareted failure-time (AFT) model

Usage

aft_based(
  x,
  c,
  alpha,
  data_fit,
  data_calib,
  dist = "weibull",
  weight_calib,
  weight_new
)

Arguments

x

a vector of the covariate of the test data.

c

the censoring time cutoff.

alpha

a number betweeo 0 and 1, specifying the miscaverage rate.

data_fit

a data frame, containing the training data.

data_calib

a data frame, containing the calibration data.

dist

The distribution of T used in the aft model (default: weibull).

weight_calib

The weight corresponding to the calibration data.

weight_new

The weight corresponding to the test data.

Value

low_ci a value of the lower bound for the survival time of the test point.

includeR 0 or 1, indicating if [r,inf) is included in the confidence interval.

See Also

Other model: distBoost_based(), gpr_based(), np_based(), ph_based(), portnoy_based(), pow_based(), quantBoost_based(), rf_based()


zhimeir/cfsurvival documentation built on April 13, 2022, 6:41 a.m.