coef.AccurateGLM {aglm}R Documentation

Get coefficients

Description

Get coefficients

Usage

## S3 method for class 'AccurateGLM'
coef(object, index = NULL, name = NULL, s = NULL, exact = FALSE, ...)

Arguments

object

A model object obtained from aglm() or cv.aglm().

index

An integer value representing the index of variable whose coefficients are required.

name

A string representing the name of variable whose coefficients are required. Note that if both index and name are set, index is discarded.

s

Same as in coef.glmnet.

exact

Same as in coef.glmnet.

...

Other arguments are passed directly to coef.glmnet().

Value

If index or name is given, the function returns a list with the one or combination of the following fields, consisting of coefficients related to the specified variable.

If both index and name are not given, the function returns entire coefficients corresponding to the internal designed matrix.

Author(s)

Kenji Kondo


[Package aglm version 0.4.0 Index]