Re: [R] OT: A test with dependent samples.

2009-02-15 Thread Emmanuel Charpentier
Dear List, Catching up with my backlog, I stumbled upon this : On Wed, 11 Feb 2009 10:33:13 +1300, Rolf Turner wrote : I am appealing to the general collective wisdom of this list in respect of a statistics (rather than R) question. This question comes to me from a friend who is a

Re: [R] OT: A test with dependent samples.

2009-02-11 Thread Meyners, Michael, LAUSANNE, AppliedMathematics
convinced. Hope this makes sense, Michael -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of Rolf Turner Sent: Dienstag, 10. Februar 2009 22:33 To: R-help Forum Subject: [R] OT: A test with dependent samples. I am appealing

Re: [R] OT: A test with dependent samples.

2009-02-11 Thread Rolf Turner
: A test with dependent samples. I am appealing to the general collective wisdom of this list in respect of a statistics (rather than R) question. This question comes to me from a friend who is a veterinary oncologist. In a study that she is writing up there were 73 cats who were treated

[R] OT: A test with dependent samples.

2009-02-10 Thread Rolf Turner
I am appealing to the general collective wisdom of this list in respect of a statistics (rather than R) question. This question comes to me from a friend who is a veterinary oncologist. In a study that she is writing up there were 73 cats who were treated with a drug called piroxicam. None

Re: [R] OT: A test with dependent samples.

2009-02-10 Thread David Winsemius
In the biomedical arena, at least as I learned from Rosner's introductory text, the usual approach to analyzing paired 2 x 2 tables is McNemar's test. ?mcnemar.test mcnemar.test(matrix(c(73,0,61,12),2,2)) McNemar's Chi-squared test with continuity correction data: matrix(c(73,

Re: [R] OT: A test with dependent samples.

2009-02-10 Thread Charles C. Berry
73 cats were treated. None barfing before and 12 after. This gives the table: | After | Yes | No | Total | |+-++---| | Before Yes | 0 | 0 | 0 | | Before No | 12 | 61 |73 | |+-++---| | Total | 12 | 61 |73 | and a

Re: [R] OT: A test with dependent samples.

2009-02-10 Thread Bert Gunter
Of David Winsemius Sent: Tuesday, February 10, 2009 1:51 PM To: Rolf Turner Cc: R-help Forum Subject: Re: [R] OT: A test with dependent samples. In the biomedical arena, at least as I learned from Rosner's introductory text, the usual approach to analyzing paired 2 x 2 tables is McNemar's test

Re: [R] OT: A test with dependent samples.

2009-02-10 Thread Marc Schwartz
on 02/10/2009 03:33 PM Rolf Turner wrote: I am appealing to the general collective wisdom of this list in respect of a statistics (rather than R) question. This question comes to me from a friend who is a veterinary oncologist. In a study that she is writing up there were 73 cats who were

Re: [R] OT: A test with dependent samples.

2009-02-10 Thread markleeds
:51 PM To: Rolf Turner Cc: R-help Forum Subject: Re: [R] OT: A test with dependent samples. In the biomedical arena, at least as I learned from Rosner's introductory text, the usual approach to analyzing paired 2 x 2 tables is McNemar's test. ?mcnemar.test mcnemar.test(matrix(c(73,0,61,12),2,2

Re: [R] OT: A test with dependent samples.

2009-02-10 Thread David Winsemius
Still seems that McNemar's test is the appropriate test for the matched design, but my first answer sent the input to the function incorrectly, and it's not clear that a normal theory test would be accurate in all instances. The matrix should have 61 cats with no vomiting under either

Re: [R] OT: A test with dependent samples.

2009-02-10 Thread Bert Gunter
...@verizon.net [mailto:markle...@verizon.net] Sent: Tuesday, February 10, 2009 2:54 PM To: Bert Gunter Cc: 'David Winsemius'; 'Rolf Turner'; r-help@r-project.org Subject: Re: [R] OT: A test with dependent samples. Hi: Bert: can you do that because the null is that they are equal before and after

Re: [R] OT: A test with dependent samples.

2009-02-10 Thread markleeds
, February 10, 2009 2:54 PM To: Bert Gunter Cc: 'David Winsemius'; 'Rolf Turner'; r-help@r-project.org Subject: Re: [R] OT: A test with dependent samples. Hi: Bert: can you do that because the null is that they are equal before and after, not that the proportion is zero ? Thank for any

Re: [R] OT: A test with dependent samples.

2009-02-10 Thread Rolf Turner
On 11/02/2009, at 1:06 PM, Bert Gunter wrote: The only question at issue (i.e. capable of being addressed) is: is giving the drug to non-vomiting cats associated with vomiting? (I would strongly suspect that cats that were vomiting beforehand would have been excluded from the study, as

Re: [R] OT: A test with dependent samples.

2009-02-10 Thread Murray Cooper
-help@r-project.org Sent: Tuesday, February 10, 2009 4:50 PM Subject: Re: [R] OT: A test with dependent samples. In the biomedical arena, at least as I learned from Rosner's introductory text, the usual approach to analyzing paired 2 x 2 tables is McNemar's test. ?mcnemar.test mcnemar.test

Re: [R] OT: A test with dependent samples.

2009-02-10 Thread Gabor Grothendieck
There are a number of others considerations as well. Were all the cats given the same dose? If we can establish that the cats that vomited had a higher dose than the ones that did not then this would be further evidence. Or if the cats that vomitted had a lower dose perhaps the drug is

Re: [R] OT: A test with dependent samples.

2009-02-10 Thread David Winsemius
24th St Richland, MI, USA 49083 Mail: richs...@earthlink.net - Original Message - From: David Winsemius dwinsem...@comcast.net To: Rolf Turner r.tur...@auckland.ac.nz Cc: R-help Forum r-help@r-project.org Sent: Tuesday, February 10, 2009 4:50 PM Subject: Re: [R] OT: A test with dependent