[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
Re: st: Using -bitest- in the same way as -prtest varname, by(groupvar)-
At 11:47 PM 8/10/2004 -0400, Renzo Comolli wrote:
Are you concerned that the p-value using -prtest- is not exactly
right? Not sure, but I think this will work (if not, somebody please
. prtest varname, by(groupvar)
allows to test for equality of proportions in two groups (defined by
I would like to do the same test but by using -bitest- which uses the
Ufortunately the syntax
. bitest varname, by(groupvar)
is not allowed.
Is there any way around it?
tab2 varname groupvar, chi2 exact
The chi-square value will be the square of the z value you get using
-prtest-. You will also get Fisher's exact test, which I am assuming is
what you want.
Richard Williams, Notre Dame Dept of Sociology
OFFICE: (574)631-6668, (574)631-6463
WWW (personal): http://www.nd.edu/~rwilliam
WWW (department): http://www.nd.edu/~soc
* For searches and help try: