Skip to contents

print data in an importance_plot

Usage

# S3 method for class 'importance_plot'
print(x, ...)

Arguments

x

the object to be printed

...

further arguments passed to print.data.frame

Examples

gtest <- glm(vs ~ wt + disp + gear, data=mtcars, family=binomial(link="logit"))
gtestreduced <- glm(vs ~ 1, data=mtcars, family=binomial(link="logit"))
g <- importance(gtest, gtestreduced)
print(g)
#> Importance Plot using model of type glm 
#>   variable posit      value
#> 1       wt Alone 0.00000000
#> 2     disp Alone 0.39833006
#> 3     gear Alone 0.04353826
#> 4       wt Space 0.00000000
#> 5     disp Space 0.00000000
#> 6     gear Space 0.67255183
#> 7       wt   Cum 0.39833006
#> 8     disp   Cum 0.31776003
#> 9     gear   Cum 0.28390991