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:
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'
coef(ss)
(Intercept) lactivoz varvolnegz
0.02571212 6.94227541 0.10340165
Thank you,
CecĂlia (Universidade de Aveiro - Portugal)
______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
--
Brian D. Ripley, rip...@stats.ox.ac.uk
Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/
University of Oxford, Tel: +44 1865 272861 (self)
1 South Parks Road, +44 1865 272866 (PA)
Oxford OX1 3TG, UK Fax: +44 1865 272595
______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.