Skip to content
Prev 216553 / 398498 Next

Accessing elements of plm outputs

On Thu, 8 Apr 2010, ECAMF wrote:

            
The residual sum of squares can be computed via
   sum(residuals(output)^2)

The total sum of squares is more difficult, I think. plm contains a tss() 
generic with suitable methods - but this is only used internally but not 
exported in the user interface. Thus, you currently have to do
   plm:::tss.plm(output)
This is really dirty as it accesses a specific method (rather than the 
generic) in the namespace (rather than the exported user interface). But I 
don't think there's currently a better way. The package authors (both 
Cc) might be able to give more guidance though.

hth,
Z