On 4/25/09, Ryan Banerjee-R <banerje...@econ.umd.edu> wrote:
>
>  Hi
>
>  I am trying to use the "plm" panel data package in R through Rpy.
>  ...
>  stuff = rpy.r.plm(("ys ~ x1s"), data=testdata_1, model="within")
>
>  rpy.set_default_mode(rpy.BASIC_CONVERSION)
>
>  results = rpy.r.summary(stuff)['CoefTable']
>
>  The program stumbles at:
>  File "py_rTest.py",
>     stuff = rpy.r.plm(("ys ~ x1s + x2s"), data=testdata_1, model="within")
>  rpy.RPy_RException: Error: inherits(object, "formula") is not TRUE
>
>  I any ideas how to get this working?

I suspect the problem is how you are trying to supply the formula (you
just used a string, "ys ~ x1s").  Read this:
http://www.warwick.ac.uk/go/peter_cock/python/lin_reg/#lm which should
help.

Peter

------------------------------------------------------------------------------
Crystal Reports &#45; New Free Runtime and 30 Day Trial
Check out the new simplified licensign option that enables unlimited
royalty&#45;free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
rpy-list mailing list
rpy-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rpy-list

Reply via email to