Learn R Programming

sail (version 0.1.0)

print.sail: Print Method for sail object

Description

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

Usage

# S3 method for 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

Value

OUTPUT_DESCRIPTION

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.

See Also

sail, cv.sail

Examples

Run this code
# NOT RUN {
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
# }

Run the code above in your browser using DataLab