lambda_plot | R Documentation |
Lambda Plot: Trace of t-statistics
lambda_plot(
model,
lambda = seq(-2, 2, by = 0.1),
color_palette = "viridis",
showplot = TRUE,
...
)
model |
Model of class "lm" or "glm" |
lambda |
sequence of lambda values to consider for plot. Default is seq(-2,2,0.1) |
color_palette |
A character string indicating the color map option to use. Eight options are available: "viridis","cividis","magma","inferno","plasma","rocket","mako","turbo". Default is 'viridis' |
showplot |
logical indicating to show the main effect plots. If false, a list of tibbles is returned used to obtain the main effects for each factor. Default is TRUE |
... |
additional parameters to be given to viridisPalette, such as alpha and direction |
Lambda plot for tracing t-staitics across different values of lambda (in ggplot2)
mod <- lm(s2 ~ (A+B+C)^2,data=original_epitaxial)
lambda_plot(mod)
lambda_plot(mod,lambda = seq(0,2,0.1))
lambda_plot(mod,lambda = seq(0,2,0.1),showplot = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.