> model = rpy.r.glm(formula, data = d, family = 'binomial', control = 
> rpy.r.glm.control(maxit = 500))
>
> Traceback (most recent call last):
>  File "<stdin>", line 1, in <module>
> AttributeError: 'Robj' object has no attribute 'control'

It doesn't like the dot in the function name.  Use:

model = rpy.r.glm(formula, data = d, family = 'binomial', control =
rpy.r['glm.control'](maxit = 500))

or

model = rpy.r.glm(formula, data = d, family = 'binomial', control =
rpy.r.glm_control(maxit = 500))

------------------------------------------------------------------------------
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
_______________________________________________
rpy-list mailing list
rpy-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rpy-list

Reply via email to