plot.varImp: Generic method for plotting variable importance of various...

plot.varImpR Documentation

Generic method for plotting variable importance of various models

Description

Generic method for plotting variable importance of various models

Usage

## S3 method for class 'varImp'
plot(x, ...)

Arguments

x

a glmnetsurv object.

...

for future implementations

See Also

varImp.glmnetsurv

Examples


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)
plot(imp1)
imp2 <- varImp(gfit1, show_sign = TRUE, scale = TRUE)
plot(imp2)


CYGUBICKO/glmnetpostsurv documentation built on Sept. 1, 2022, 7:26 p.m.