Hi everyone,
I am happy to join the world of rpy. I think it is really great!

Now, I have a problem with extracting p-value after the ANOVA by using rpy
I use the python script as follows:
pvalue=r.summary(r.aov(r.formula("V~VAR"),r.data_frame(V=value,VAR=gNames)))
[[1]][[5]][1]
in R, indexing the '[[1]][[5]][1]' after the anova summary object should be
OK. However I got the following error message:

 
pvalue=r.summary(r.aov(r.formula("V~VAR"),r.data_frame(V=value,VAR=gNames)))
[[1]][[5]][1]
TypeError: list indices must be integers

Is anyone able to figure out how to extract the pvalue?
Thank you in advance!

Best Regards!

Kai Xia, Ph.D.
Postdoc Fellow 
Laboratory of Dr. Yi Zhang, HHMI 
Lineberger Comprehensive Cancer Center
University of North Carolina at Chapel Hill

450 West Drive, CB# 7295
Chapel Hill, NC, 27599
Phone:  (919)-843-8227
Fax:       (919)-966-4330


------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
rpy-list mailing list
rpy-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rpy-list

Reply via email to