print.sail: Print Method for 'sail' object

Description Usage Arguments Details Value See Also Examples

View source: R/methods.R

Description

Print a summary of the sail path at each step along the path.

Usage

1
2
## S3 method for class 'sail'
print(x, digits = max(3, getOption("digits") - 3), ...)

Arguments

x

fitted sail object

digits

significant digits in printout. Default: max(3, getOption("digits") - 3)

...

additional print arguments

Details

The call that produced the object x is printed, followed by a five-column matrix with columns df_main, df_interaction, df_environment, %Dev and Lambda. The df_ columns are the corresponding number of nonzero coefficients for main effects, interactions and exposure, respectively. %dev is the percent deviance explained (relative to the null deviance). For type="gaussian" this is the r-squared.

Value

OUTPUT_DESCRIPTION

See Also

sail, cv.sail

Examples

1
2
3
4
5
6
data("sailsim")
f.basis <- function(i) splines::bs(i, degree = 3)
fit <- sail(x = sailsim$x, y = sailsim$y, e = sailsim$e,
            basis = f.basis, dfmax = 5, nlambda = 10,
            maxit = 20)
fit

sahirbhatnagar/sail documentation built on July 17, 2021, 5:10 a.m.