THanks for all the replies.
I guess I should have been clearer from the beginning. 
When I said I don't want to write my code, I meant I don't want to CREATE a new 
function.
Not because I can't, but because I don't want to.

The cmh.test in the {lawstat} package still doesn't look like the cocrahnQ test 
to me. Maybe I am wrong?

------------
KC
^_^

On 29/09/2010, at 12:03 AM, Dennis Murphy wrote:

> Did you read the post? He wrote a function to do Cochran's Q test. If you 
> want something more 'official', whatever that means, look at the 
> Cochran-Mantel-Haenzel test, of which Cochran's Q is a special case:
> 
> mantelhaen.test 
> cmh.test (lawstat package)
> 
> D.
> 
> On Tue, Sep 28, 2010 at 5:46 AM, Kohleth Chia <kohl...@gmail.com> wrote:
> Thanks for all the suggestions. It seems that I still have to write my own 
> code after all.
> But I am really surprised that no one has done it in a proper package yet.
> 
> ------------
> KC
> ^_^
> 
> On 28/09/2010, at 9:18 PM, Dennis Murphy wrote:
> 
>> Hi:
>> 
>> Try here:
>> 
>> https://stat.ethz.ch/pipermail/r-help/2006-September/113156.html
>> 
>> HTH,
>> Dennis
>> 
>> On Mon, Sep 27, 2010 at 7:27 PM, Kohleth Chia <kohl...@gmail.com> wrote:
>> Dear all,
>> 
>> I am trying to look for a built in function that performs the cochran Q
>> test.
>> that is, cochranq.test(X)
>> where X is a contingency table (maybe a matrix or data.frame).
>> The output will naturally be the test statisitcs, p-value, etc.
>> 
>> A quick search on Google gives me the cochran.test in the 'outlier' package,
>> but I had a look at the description of the test and it doesn't look anything
>> close to the cochran Q test.
>> 
>> MY questions is:
>> 1. Is that cochran.test the cochran Q test I am looking for?
>> 2. If not, where can I find such function? I DON'T want to write my own
>> function.
>> 
>> Thanks
>> 
>> --
>> KC
>> ^_^
>> 
>>        [[alternative HTML version deleted]]
>> 
>> ______________________________________________
>> 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.
>> 
> 
> 


        [[alternative HTML version deleted]]

______________________________________________
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