Learn R Programming

sail (version 0.1.0)

plot.sail: Plot Method for sail object

Description

Produces a coefficient profile plot of the coefficient paths for a fitted sail object. Both main effects and interactions (if present) are plotted.

Usage

# S3 method for sail
plot(x, type = c("both", "main", "interaction"), ...)

Arguments

x

fitted sail object

type

which type of predictors should be plotted. type="both" will plot the solution path for main effects and interactions, type="main" will only plot solution path of main effects (this also includes the exposure variable) and type="interaction" will only plot solution path for interaction effects Default: c("both", "main", "interaction"). Default: type="both".

...

other graphical paramters passed to plot

Value

A plot is produced and nothing is returned

Details

A coefficient profile plot is produced

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 = 10, nlambda = 10, maxit = 100)
plot(fit)
# }

Run the code above in your browser using DataLab