View source: R/lb_conf_bands.R
lb_whbands | R Documentation |
Intervals of the form "fit +/- w * standard-error", where w^2 is
found by p * qf(level, p, n - p)
.
lb_whbands(object, new_data, level = 0.95)
object |
An object of class "lm". |
new_data |
A data frame containing the new data. |
level |
The confidence level of the band. |
a list of 4 elements to include the predicted values as $fit
David Gerard, American University
lb_whbands(object = lm(mpg ~ disp, data = mtcars), new_data = data.frame("disp" = seq(from = min(mtcars$disp), to = max(mtcars$disp), length.out = 100)), level = .95)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.