CUBIC_MODEL$E | R Documentation |
This function calculate the expectation of the residuals by the use of the Frisch–Waugh–Lovell theorem.
dat |
Dataframe/List. List contains variable |
a |
Numeric. Default is |
b |
Numeric. Default is |
c |
Numeric. Default is |
A vector of numeric expectations.
mod <- cubic_model(-1, 1, 1, 0.5)
dat <- mod$gen(1000, fit_model = TRUE)
dat$exp <- mod$E(dat)
mod$plot(dat) + ggplot2::geom_point(ggplot2::aes(.fitted, exp),
col = "red",
alpha = 0.6)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.