Hello, I was wondering if anyone knew how to perform a Cramers V with weighted data? I found some code in this old Statalist post below. Would the code I produced based on the blog post below be an appropriate way to generate the weighted test statistic?
https://www.stata.com/statalist/arch.../msg00581.html
Code:
svy: tab biosex ai_mh, pearson
local denom = min(e(r)-1, e(c)-1)
display "Weighted Cramer's V = " ///
sqrt(e(cun_Pear)/(e(N)*`denom'))
https://www.stata.com/statalist/arch.../msg00581.html

Comment