coef.ordinalNet: Method to extract fitted coefficients from an "ordinalNet" object.
Description
Method to extract fitted coefficients from an "ordinalNet" object.
Usage
# S3 method for ordinalNet
coef(
object,
matrix = FALSE,
whichLambda = NULL,
criteria = c("aic", "bic"),
...
)Value
The object returned depends on matrix.
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.
Examples
Run this code# See ordinalNet() documentation for examples.
Run the code above in your browser using DataLab