Re: [R] error message in plm

2009-05-29 Thread Prof Brian Ripley
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 Carm

[R] error message in plm

2009-05-29 Thread Cecilia Carmo
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: ff<-totaccz~lactivoz+varvolnegz ss<-plm(ff,data=regaccdis,na.omit) Error in xj[i] : invalid subscript type 'closure' coe

[R] error message in plm package

2009-04-23 Thread Helen Chen
Dear R help, I use the package plm the function plm() to analyse a panel data and estimate a fixeffect model. I use the code as follow : fe <- plm(y~x+z, data, model = "within") But I had a error message Error in model.frame.default(form, ...) : object is not a matrix I