Skip to content

error message in plm

2 messages · Cecilia Carmo, Brian Ripley

#
Hi everyone,

Could anyone tell me what means the follow error message

Error in xj[i] : invalid subscript type 'closure'

It happens when I run the function plm, like this:
Error in xj[i] : invalid subscript type 'closure'
(Intercept)    lactivoz  varvolnegz
  0.02571212  6.94227541  0.10340165

Thank you,

Cec?lia (Universidade de Aveiro - Portugal)
#
A closure is a standard R function (that is not a primitive function).

This is presumably from package plm.  You called plm() with three 
arguments, that is subset=na.omit by the matching rules.  I think 
you intended na.action=na.omit.  na.omit is a 'closure'.
On Fri, 29 May 2009, Cecilia Carmo wrote: