[R] Pairwise testing with pairwise.prop.test

Jenny Liu jenny@||u00 @end|ng |rom gm@||@com
Mon Apr 1 01:09:35 CEST 2019


Hi all,

I have a few questions about the pairwise.prop.test function.
I run the test using on the attached dataset (EggMortNoTemp) using the following
code:
EggMatrix<-as.matrix(EggMortNoTemp) #making the egg mortality data a matrix.
pairwise.prop.test needs it to be a matrix 
EggResults<-pairwise.prop.test(EggMatrix) EggResults
I get the attached result (EggResults).
My questions:1) Why is there a "-" instead of a numerical result for pairs 1-2,
1-16, and 2-16?
2) Is there an easy way to export/convert the result to a list with two columns
instead of the matrix? Column 1 would be the pair being compared, and column 2
would be the p-value. For example, Column 1 would say "6-8" so column 2 would
say "0.9532".
3) Is there a way to assign the numbers to the treatment group that they were
originally in? For example, "1" in the result should be "3", indicating that
that was the temperature the experiment took place at. Pairwise.prop.test
doesn't seem to accept matrices with more than 2 columns.
Any help would be greatly appreciated! Thank you in advance.
Cheers,Jenny
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: EggMortNoTemp.txt
URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20190331/28163843/attachment.txt>

-------------- next part --------------
A non-text attachment was scrubbed...
Name: EggResults.PNG
Type: image/png
Size: 18797 bytes
Desc: not available
URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20190331/28163843/attachment.png>


More information about the R-help mailing list