Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: RE: comparing proportions


From   Eva Poen <[email protected]>
To   [email protected]
Subject   Re: st: RE: comparing proportions
Date   Thu, 22 Jan 2009 08:55:30 +0000

Paul,

If you are looking for an alternative to Fisher's test:
I recently wrote a routine for Boschloo's test, which is an
unconditional test and uniformely more powerful than Fisher's. I can
send it to you if you want.

However, both commands have the syntax

<command name> var1 var2 [if] [in] [,....]

Though I can't see why you would want to insist on the form

<command name> var1 , by(var2)

since the data structure has to be the same for both (two dummy
variables, var1 and var2). Note that both the built-in -tabulate ..,
exact- and my own -boschloo- command come with immediate versions,
where you can provide the cells of the contingency table on the
command line and don't need any data in memory at all.

HTH,
Eva


2009/1/21 Anderson, Bradley <[email protected]>:
> How about Fisher's exact test for the corresponding 2 x 2 contingency table.
>
> -----Original Message-----
> From: [email protected] [mailto:[email protected]] On Behalf Of Visintainer PhD, Paul
> Sent: Wednesday, January 21, 2009 2:41 PM
> To: [email protected]
> Subject: st: comparing proportions
>
> I'm drawing a blank on a command for comparing two independent binomial distributions, but the command has to be in the form of:
>
> <command> var1, by(group)
>
> For example, comparing a yes/no variable by gender.
>
> -prtest- is the right form, but I would prefer not using the large-sample approximation (sample size is small for several variables).
>
> I suppose -exlogistic- would work, but it seems like a very big hammer for such a small nail.
>
> Thanks
>
> -p
>
>
>
> _____________________
> Paul F. Visintainer, PhD
> [email protected]
>
>
>
> -----------------------------------------
> CONFIDENTIALITY NOTICE: This email communication and any attachments may contain confidential and privileged information for the use of the designated recipients named above. If you are not the intended recipient, you are hereby notified that you have received this communication in error and that any review, disclosure, dissemination, distribution or copying of it or its contents is prohibited. If you have received this communication in error, please reply to the sender immediately or by telephone at
> (413) 794-0000 and destroy all copies of this communication and any attachments. For further information regarding Baystate Health's privacy policy, please visit our Internet web site at http://www.baystatehealth.com.
>
> *
> *   For searches and help try:
> *   http://www.stata.com/help.cgi?search
> *   http://www.stata.com/support/statalist/faq
> *   http://www.ats.ucla.edu/stat/stata/
>
> This e-mail and any files transmitted with it are confidential and intended solely for the use of the individual
> or entity to whom they are addressed.  If you are not the intended recipient, you are hereby notified
> that any disclosure, copying, distribution or taking of any action in reliance on the information contained in
> this e-mail is prohibited.  If you have received this e-mail in error, please notify sender by reply e-mail and
> delete this message and any attachment(s) immediately.  Thank you for your consideration in this matter.
>
> *
> *   For searches and help try:
> *   http://www.stata.com/help.cgi?search
> *   http://www.stata.com/support/statalist/faq
> *   http://www.ats.ucla.edu/stat/stata/
>

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index