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

Description Usage Arguments Value See Also Examples

View source: R/ordinalNet-methods.R

Description

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

Usage

1
2
3
4
5
6
7
8
## 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

1
# See ordinalNet() documentation for examples.

ordinalNet documentation built on July 21, 2020, 9:07 a.m.