plot.sail: Plot Method for 'sail' object

Description Usage Arguments Details Value See Also Examples

View source: R/methods.R

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

1
2
## S3 method for class '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

Details

A coefficient profile plot is produced

Value

A plot is produced and nothing is returned

See Also

sail, cv.sail

Examples

1
2
3
4
5
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)

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