Notice: On March 31, it was **announced** that Statalist is moving from an email list to a **forum**. The old list will shut down on April 23, and its replacement, **statalist.org** is already up and running.

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

From |
Jorge Eduardo Pérez Pérez <perez.jorge@ur.edu.co> |

To |
"statalist@hsphsun2.harvard.edu" <statalist@hsphsun2.harvard.edu> |

Subject |
st: -prtest- interpreting 1/2 as variable in one sample proportion test |

Date |
Wed, 17 Apr 2013 15:20:22 -0400 |

Dear Statalist. I found the following problem while using -prtest- on Stata S.E. 11.1 64bit , on Windows 7. While running proportion tests, if I run the following binomial test: bys id: bitest above == 1/2 if round<=10 The test executes correctly. However, when using the parametric proportion test: bys id: prtest above == 1/2 if round<=10 I get: 1/2 is not a 0/1 variable r(450); It seems like -prtest- is misinterpreting the 1/2 and reading it as a string, so it reads as a variable and Stata tries to conduct a two-sample proportion test. This looks like a bug, but I may be missing something. Can someone replicate this in Stata 12? I am working with the 16 feb 2012 version of Stata 11 (The system administrators don't update Stata as they should) Maybe this has been corrected in an update. Thanks, _______________________ Jorge Eduardo Pérez Pérez * * For searches and help try: * http://www.stata.com/help.cgi?search * http://www.stata.com/support/faqs/resources/statalist-faq/ * http://www.ats.ucla.edu/stat/stata/

**Follow-Ups**:**Re: st: -prtest- interpreting 1/2 as variable in one sample proportion test***From:*Richard Goldstein <richgold@ix.netcom.com>

- Prev by Date:
**Re: st: How to easily insert all tab statistics into matrix for export** - Next by Date:
**Re: st: RE: Re: xtmixed with log-transfered dependent variable: back to non-log on margins and marginsplot** - Previous by thread:
**st: How to easily insert all tab statistics into matrix for export** - Next by thread:
**Re: st: -prtest- interpreting 1/2 as variable in one sample proportion test** - Index(es):