Re: [Rpy] need help with sensitivity

2012-08-28 Thread Filippo Monari
Hi thanks for the advices, I tried with rpy2 and i got some results executing the r-code through: robjects.r([code]) but the data structure are not clear and is not straightforward understand if the result would be the same in R. I'll keep trying... Anyway I think that the integration between py

Re: [Rpy] need help with sensitivity

2012-08-28 Thread Mike Sarahan
Sorry, I can't help you any further. Might I suggest RPy2 as an alternative? It seems to be much more active in development, and advantageous in using things like numpy. On Tue, Aug 28, 2012 at 5:16 AM, Filippo Monari wrote: > rpy > > On 28/08/12 13:14, Mike Sarahan wrote: >> OK, rpy or rpy2? >

Re: [Rpy] need help with sensitivity

2012-08-28 Thread Filippo Monari
rpy On 28/08/12 13:14, Mike Sarahan wrote: > OK, rpy or rpy2? > > On Tue, Aug 28, 2012 at 5:06 AM, Filippo Monari wrote: >> Hi thank you for the answer, >> >> r.tell(morris, y=output['V1']) >> >> well, my morris object in python is a dictionary. >> The model output is dictionary too, but the data

Re: [Rpy] need help with sensitivity

2012-08-28 Thread Mike Sarahan
OK, rpy or rpy2? On Tue, Aug 28, 2012 at 5:06 AM, Filippo Monari wrote: > Hi thank you for the answer, > > r.tell(morris, y=output['V1']) > > well, my morris object in python is a dictionary. > The model output is dictionary too, but the data set I send to morris is > a list... > In R it y needs

Re: [Rpy] need help with sensitivity

2012-08-28 Thread Filippo Monari
Hi thank you for the answer, r.tell(morris, y=output['V1']) well, my morris object in python is a dictionary. The model output is dictionary too, but the data set I send to morris is a list... In R it y needs a vector, but reading the documentation of rpy...vectors are represented as lists or d

Re: [Rpy] need help with sensitivity

2012-08-28 Thread Mike Sarahan
Are you using the brackets in the set of parameters for the morris function? I think the debug message is telling you that you can't use brackets in the tell function for the y=[] part. Brackets in Python are lists. Alternatively, maybe M in your example is a list? Either way, it looks like you