r.squared {plm} | R Documentation |
This function computes the R squared for plm objects. It allows to define on which transformation of the data the R squared has to be computed and which formula should be 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 has to be computed ? If null the transformation used to estimate the model is also used for the computation of the R squared. |
type |
should the R-squaredcomputed using the residual sum of
squares ( |
dfcor |
if |
a numerical value