Description Usage Arguments Details Value Author(s) References See Also Examples
This function is used to fit AFT models using weighted elastic net approach.
1 | WEnet.aft(X, Y, delta, weight, lambda2, maxit = 10)
|
X |
covariate matrix under study, particularly for AFT modelling. The order of matrix covariate is typically n by p. |
Y |
typically the logarithmic of the survival time under AFT models. Otherwise survival time. |
delta |
status. it includes value 1 for uncensored and value 0 for censored subject. |
weight |
vector of observation weights based on the standard errors. Weight is based on initial estimator that is obtained from elastic net on the weighted data (see Enet.wls function). |
lambda2 |
regularization parameter for the L2 norm of the coefficients. This is typically assumed to take values in a relatively small grid, say (0, 0.5, 1.0, 1.5, 2.0, ..., 5). |
maxit |
an optional bound for the number of steps to be taken. Default is 10. |
This function is used to fit AFT models using weighted elastic net approach (Khan and Shaw, 2015). The method works for both cases of datasets high-dimensional where the number of variables (p) is greater than the number of subjects (n) and low-dimensional.
The weighted elastic net is transformed into an adaptive lasso type problem in an augmented space and then is solved using the lars algorithm. This is an extension of the work Hong and Zhang (2010) for censored data. To find the optimal value for the tuning parameters lambda11 and lambda2, first lambda2 is typically assumed to take values in a relatively small grid, say (0, 0.5, 1.0, 1.5, 2.0, ..., 5). For each lambda2, the lars algorithm produces the entire solution path. This gives the optimal equivalent specification for lasso in terms of fraction of the L1 norm.
A "WEnet.aft" object is returned. It includes
beta |
coefficient estimates of the covariates |
mu |
means of Y |
meanx |
means of the columns of X |
normx |
normalized value of the columns of X |
type |
lasso |
Hasinur Rahaman Khan and Ewart Shaw
Hong, D. and Zhang, F. (2010). Weighted Elastic Net Model for Mass Spectrometry Imaging Processing. Mathematical Modelling of Natural Phenomena, 5, 115-133.
Khan and Shaw (2015) imputeYn: Imputing the last largest censored observation/observations under weighted least squares. R package version 1.3, https://cran.r-project.org/package=imputeYn.
Khan and Shaw (2015). Variable Selection for Survival Data with a Class of Adaptive Elastic Net Techniques. Statistics and Computing (published online; DOI: 10.1007/s11222-015-9555-8). Also available in http://arxiv.org/abs/1312.2079.
cv.AWEnet
1 2 3 4 5 6 7 8 9 10 | #For full data typically used for AFT models (using imputeYn (2015) package).
dat<-data(n=100, p=10, r=0, b1=c(rep(5,5),rep(0,5)), sig=1, Cper=0)
#This needs to run for generating weights of the observations
l<-mrbj(cbind(dat$y, dat$delta) ~ dat$x, mcsize=10, trace=FALSE, gehanonly=TRUE)
#WEnet.aft: weighted elastic net
wt<-round(l$gehansd)
ft.2<-WEnet.aft(dat$x, dat$y, dat$delta, weight=wt, lambda2=1, maxit=10)
ft.2
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.