if (FALSE) { # rlang::is_installed("plm")
# load libraries for models and data
library(plm)
# load data
data("Produc", package = "plm")
# fit model
zz <- plm(log(gsp) ~ log(pcap) + log(pc) + log(emp) + unemp,
data = Produc, index = c("state", "year")
)
# summarize model fit with tidiers
summary(zz)
tidy(zz)
tidy(zz, conf.int = TRUE)
tidy(zz, conf.int = TRUE, conf.level = 0.9)
augment(zz)
glance(zz)
}
Run the code above in your browser using DataLab