Plot relevant effects of a sparseR object
Usage
effect_plot(fit, ...)
# S3 method for class 'sparseR'
effect_plot(
fit,
coef_name,
at = c("cvmin", "cv1se"),
by = NULL,
by_levels,
nn = 101,
plot.args = list(),
resids = TRUE,
legend_location = "bottomright",
...
)
# S3 method for class 'sparseRBIC'
effect_plot(
fit,
coef_name,
by = NULL,
by_levels,
nn = 101,
plot.args = list(),
resids = TRUE,
legend_location = "bottomright",
...
)
Arguments
- fit
a `sparseR` object
- ...
additional arguments
- coef_name
The name of the coefficient to plot along the x-axis
- at
value of lambda to use
- by
the variable(s) involved in the (possible) interaction
- by_levels
values to cut continuous by variable (defaults to 3 quantiles)
- nn
number of points to plot along prediction line
- plot.args
list of arguments passed to the plot itself
- resids
should residuals be plotted or not?
- legend_location
location for legend passed to `legend`