coef.sgdnet: Extract Model Coefficients for sgdnet Model

Description Usage Arguments Value See Also Examples

Description

This is simply a wrapper for predict.sgdnet() with type = "coefficients".

Usage

1
2
## S3 method for class 'sgdnet'
coef(object, ...)

Arguments

object

a model of class 'sgdnet', typically from a call to sgdnet().

...

passed on to predict.sgdnet()

Value

A sparse matrix with intercept in the first row and betas in the rest.

See Also

predict.sgdnet(), sgdnet()

Examples

1
2
fit <- sgdnet(matrix(rnorm(100), 50, 2), rnorm(50))
coef(fit)

jolars/sgdnet documentation built on May 22, 2019, 11:52 p.m.