I am running several logistic regression models in succession. I am
using Mac OS X 10.4.10, Python 2.5, Numpy 1.0.3, Rpy 1.0-RC3, R
2.5.1. I have installed rpy using python setup.py build -f -g. Rpy
crashes during my script with the following:
*** caught bus error ***
address 0x0, cause 'non-existent physical address'
Possible actions:
1: abort (with core dump, if enabled)
2: normal R exit
3: exit R without saving workspace
4: exit R saving workspace
Selection: 1
Exception thread.error: 'release unlocked lock' in <class
'thread.error'> ignored
aborting ...
Bus error
My original code edited to main parts:
#class Stat is a dictionary containing observed and independent
variables
#models is a list of tuples of model variable keys
#h is a tuple of variable keys with dependent (0,1) at location h[0]
and independents h[1:]
class Stat(dict):
def logisticregression(self,models):
data=r.data_frame(self)
...
for h in models:
...
model='%s ~ %s' %(h[0], ' + '.join(h[1:]))
...
try:
rmodel=r(model)
rpy.set_default_mode(rpy.NO_CONVERSION)
m1_noconv = r.glm (rmodel, data, family =
'binomial')
rpy.set_default_mode(rpy.BASIC_CONVERSION)
m1 = r.glm (rmodel, data, family = 'binomial')
m1sum = r.summary(m1_noconv)
...
except:
...
return result
Any ideas as to what is causing this and how to fix?
Philip
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
rpy-list mailing list
rpy-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rpy-list