if (FALSE) { # rlang::is_installed("orcutt")
# load libraries for models and data
library(orcutt)
# fit model and summarize results
reg <- lm(mpg ~ wt + qsec + disp, mtcars)
tidy(reg)
co <- cochrane.orcutt(reg)
tidy(co)
glance(co)
}
Run the code above in your browser using DataLab