varImp.glmnetsurv | R Documentation |
Compute variable importance of glmnetsurv object
## S3 method for class 'glmnetsurv' varImp(object, show_sign = FALSE, scale = FALSE, ...)
object |
fitted |
show_sign |
if |
scale |
if |
... |
not implemented. |
If show_sign = FALSE
the absolute value of the coefficients corresponding the tuned model are used otherwise, the estimated coefficients are used.
plot.varImp
data(veteran, package="survival") # glmnet gfit1 <- glmnetsurv(Surv(time, status) ~ factor(trt) + karno + diagtime + age + prior , data = veteran , lambda = 0.02 , alpha = 0.8 ) imp1 <- varImp(gfit1) print(imp1) imp2 <- varImp(gfit1, show_sign = TRUE, scale = TRUE) print(imp2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.