Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: Cramers V with weighted data


From   "Paul Seed" <[email protected]>
To   <[email protected]>
Subject   Re: st: Cramers V with weighted data
Date   Tue, 12 Aug 2008 10:21:16 +0100

I think Steven meant:

	gen crV= sqrt(e(cun_Pear)/e(N))

or: 

	di "Cramer's V = " sqrt(e(cun_Pear)/e(N))


Paul Seed, Lecturer in Medical Statistics
KCL School of Medicine, Division of Reproduction and Endocrinology
tel� (+44) (0) 20 7188 3642





> On Aug 8, 2008, at 12:21 PM, Steven Samuels wrote:
> .
> -svyset- the data with pweights equal to your weight. Run -svy:
> tabulate- and divide the uncorrected Pearson Chi Square statistic
> by the sample size.  You can program this by dividing the returned
> scalar e(cun_Pear) by the scalar e(N)
>
> gen crV= e(cun_Pear)/e(N)
>
> -Steve
>


*
*   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