coef.lasso_screenr: An S3 Method to Extract Coefficients from 'lasso_screenr'...

View source: R/coef-methods.R

coef.lasso_screenrR Documentation

An S3 Method to Extract Coefficients from lasso_screenr Objects

Description

coef.lasso_screenr returns the regularized logistic model parameter estimates from the AIC- and BIC-best fits from lasso_screenr-class objects.

Usage

## S3 method for class 'lasso_screenr'
coef(object, ..., intercept = TRUE, or = FALSE)

Arguments

object

an object of class lasso_screenr.

...

optional arguments passed to predict methods.

intercept

(logical) retain (TRUE, default) or drop (FALSE) the intercept coefficients.

or

return odds ratios if TRUE; logit-scale coefficients are the default.

Details

coef.lasso_screenr extracts the estimated coefficients from lasso_screenr objects.

Examples

attach(uniobj1)
coef(uniobj1)

sgutreuter/screenr documentation built on Nov. 20, 2022, 2:41 a.m.