coef.xrf: Produce rules & coefficients for the RuleFit model

Description Usage Arguments Examples

View source: R/xrf.R

Description

Produce rules & coefficients for the RuleFit model

Usage

1
2
## S3 method for class 'xrf'
coef(object, lambda = "lambda.min", ...)

Arguments

object

an object of class "xrf"

lambda

the lasso penalty parameter to be applied as in 'glmnet'

...

ignored arguments

Examples

1
2
3
4
m <- xrf(Petal.Length ~ ., iris,
         xgb_control = list(nrounds = 20, max_depth = 2),
         family = 'gaussian')
linear_model_coefficients <- coef(m, lambda = 'lambda.1se')

holub008/xrf documentation built on May 6, 2020, 9:02 p.m.