coef.ordinalNet: Method to extract fitted coefficients from an "ordinalNet"...

View source: R/ordinalNet-methods.R

coef.ordinalNetR Documentation

Method to extract fitted coefficients from an "ordinalNet" object.

Description

Method to extract fitted coefficients from an "ordinalNet" object.

Usage

## S3 method for class 'ordinalNet'
coef(
  object,
  matrix = FALSE,
  whichLambda = NULL,
  criteria = c("aic", "bic"),
  ...
)

Arguments

object

An "ordinalNet" S3 object.

matrix

Logical. If TRUE, coefficient estimates are returned in matrix form. Otherwise a vector is returned.

whichLambda

Optional index number of the desired lambda within the sequence of lambdaVals. By default, the solution with the best AIC is returned.

criteria

Selects the best lambda value by AIC or BIC. Only used if whichLambda=NULL.

...

Not used. Additional coef arguments.

Value

The object returned depends on matrix.

See Also

ordinalNet

Examples

# See ordinalNet() documentation for examples.


ordinalNet documentation built on March 22, 2022, 9:06 a.m.