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"),
...
)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.
Examples
Run this code# NOT RUN {
# See ordinalNet() documentation for examples.
# }
Run the code above in your browser using DataLab