unpencoxIC {ALassoSurvIC}R Documentation

Performing unpenalized nonparametric maximum likelihood estimation for interval censored and possibly left truncated data

Description

The unpencoxIC function performs unpenalized nonparametric maximum likelihood estimation. The function provides unpenalized nonparametric maximum likelihood estimates, standard errors, and 95% confidence intervals. The full details are available in Li et al. (2019).

Usage

## Default S3 method:
unpencoxIC(lowerIC, upperIC, X, trunc = NULL,
normalize.X = TRUE, covmat = TRUE, cl = NULL, tol = 0.001,
niter = 1e+05, string.cen = Inf, string.missing = NA, ...)

Arguments

...

for S4 method only.

lowerIC

A numeric vector for the lower limit of the censoring interval.

upperIC

A numeric vector for the upper limit of the censoring interval.

X

A numeric matrix for the covariates that will be used for variable selection.

trunc

A numeric vector for left truncated time. If supplied, the function performs the variable selection for interval censored and left truncated data. If trunc is missing, the data will be considered as interval censored data.

normalize.X

A logical value: if normalize.X = TRUE, the covariate matrix X will be normalized before fitting models. Default is TRUE.

covmat

Controlling the estimation of the covariance matrix

cl

A cluster object created by makeCluster in the parallel package. If NULL, no parallel computing is used by default. See details below.

tol

A numeric value for the absolute iteration convergence tolerance.

niter

A numeric value for the maximum number of iterations.

string.cen

A string indicating right censoring for upperIC. Default is Inf.

string.missing

A string indicating missing value. Default is NA.

Details

The cluster object, created by makeCluster in the parallel package, can be supplied with the cl argument to reduce computation time via parallel computing. The parallel computing will be used when calculating the hessian matrix of the estimates. How to use the parallel computing is illustrated in one of the examples given below.

Use the baseline function and the plot function to extract and plot the estimate of the baseline cumulative hazard function, respectively, from the object returned by the unpencoxIC. The plot function also provides the plot for estimated baseline survival function. See the usages in the examples given below.

References

Li, C., Pak, D., & Todem, D. (2019). Adaptive lasso for the Cox regression with interval censored and possibly left truncated data. Statistical methods in medical research. doi: 10.1177/0962280219856238

See Also

alacoxIC

Examples

library(ALassoSurvIC)

### Getting the unpenalized NPMLE for interval censored data
data(ex_IC)
lowerIC <- ex_IC$lowerIC
upperIC <- ex_IC$upperIC
X <- ex_IC[, -c(1:2)]
system.time(result <- unpencoxIC(lowerIC, upperIC, X))

result           # main result
baseline(result) # obtaining the baseline cumulative hazard estimate
plot(result)     # plotting the estimated baseline cumulative hazard function by default
plot(result, what = "survival")  # plotting the estimated baseline survival function

## Use the parallel computing to reduce computational times
library(parallel)
cl <- makeCluster(2L)  # making the cluster object 'cl' with two CPU cores
system.time(result <- unpencoxIC(lowerIC, upperIC, X, cl = cl))
on.exit()

### Getting the unpenalized NPMLE for interval censored and left truncated data
## Try following codes with the 'ex_ICLT' data example
data(ex_ICLT)
lowerIC <- ex_ICLT$lowerIC
upperIC <- ex_ICLT$upperIC
trunc <- ex_ICLT$trunc
X <- ex_ICLT[, -c(1:3)]
result2 <- unpencoxIC(lowerIC, upperIC, X, trunc)
result2

baseline(result2)
plot(result2)
plot(result2, what = "survival")


[Package ALassoSurvIC version 0.1.1 Index]