On May 2, 2009, at 6:30 PM, tbigdeli wrote:


Good point, I've updated since.

Now, would solutions be specific to newer versions?

Who knows? I was just saying there might be difficulties in getting anyone to actually test the specifics of your question.

 I need to make a
numerical comparison upon each iteration of independence_test().

So you are probably referring to the coin package?

With
chisq.test(), etc the output is as.list().

The output from what?

 I imagine this difference is a
reflection of the author's coding preferences.

The code is available. After package(coin), methods(independence_test) reports three methods and getAnywhere(independence_test.IndependenceProblem) produces the code that does the dispatching to other specific methods. There are, of course, methods for extracting components of S4 objects. If you post the code that you are using, then people may have answers to questions which at the moment are highly non-specific.



Now, I could code a Cochran-Armitage trend test but that wouldn't do our
great support community justice now, would it? :)

Now that is a bit elliptical, isn't it? If you want to see how Agresti and Thompson might to it, consult page 81 of "R (and S-PLUS) Manual to Accompany Agresti’s Categorical Data Analysis (2002) 2nd edition"
Laura A. Thompson, 2007:
https://home.comcast.net/~lthompson221/Splusdiscrete2.pdf

--
David.





David Winsemius wrote:

I don't think very many of us have a version that is quite that old.

Sorry;
David.

On Apr 29, 2009, at 4:37 PM, tbigdeli wrote:


Are there internal methods available for R2.6 (I'm using the mac os
x gui)
for extracting (or subsetting) S4 objects?

Using the independence_test() function implemented in the COIN
package, I
can't seem to select out p-values upon completion of each iteration
of a
loop.

Sorry if my search was incomplete beforehand.
--


David Winsemius, MD
Heritage Laboratories
West Hartford, CT

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide
http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.



--
View this message in context: 
http://www.nabble.com/Extracting-Element-from-S4-objects-tp23302265p23350853.html
Sent from the R help mailing list archive at Nabble.com.

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

David Winsemius, MD
Heritage Laboratories
West Hartford, CT

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to