print.sgdnet: Print a Path Summary for a Fit from sgdnet

Description Usage Arguments Value See Also Examples

Description

Print a Path Summary for a Fit from sgdnet

Usage

1
2
## S3 method for class 'sgdnet'
print(x, ...)

Arguments

x

an object of class 'sgdnet', typically the result of calling sgdnet()

...

other arguments passed to print()

Value

Prints (and return invisibly) a table of the regularization path from the fit with the following columns:

Df pseudo-degrees of freedom, namely the number of non-zero coefficients
%Dev the percentage of deviance explained
Lambda the lambda value (regularization strength) of the fit

See Also

sgdnet(), print.sgdnet()

Examples

1
2
fit <- sgdnet(with(mtcars, cbind(drat, hp)), mtcars$disp)
print(fit, digits = 1)

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