r.squared | R Documentation |
This function computes R squared or adjusted R squared for plm objects. It allows to define on which transformation of the data the (adjusted) R squared is to be computed and which method for calculation is used.
r.squared(object, model = NULL, type = c("cor", "rss", "ess"), dfcor = FALSE)
object |
an object of class |
model |
on which transformation of the data the R-squared is to be
computed. If |
type |
indicates method which is used to compute R squared. One of |
dfcor |
if |
A numerical value. The R squared or adjusted R squared of the model estimated on the transformed data, e. g., for the within model the so called "within R squared".
plm()
for estimation of various models;
summary.plm()
which makes use of r.squared
.
data("Grunfeld", package = "plm") p <- plm(inv ~ value + capital, data = Grunfeld, model = "pooling") r.squared(p) r.squared(p, dfcor = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.