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

st: Re: Excuse me, just a question about chi-square test.

From   Maarten buis <>
To   stata list <>
Subject   st: Re: Excuse me, just a question about chi-square test.
Date   Thu, 12 Mar 2009 14:02:42 +0000 (GMT)

--- On Thu, 12/3/09, Xu Kaikuo wrote to me privately:
> I saw your discussions on
> so I think you could provide some clue to my question. This 
> is a abstract of my problem, but not the real one.
> Assume we have two kind of fridges A and B, and a function
> set F = {f1,f2...,fn} and each function has its corresponding
> weight W = {w1,w2,...,wn}, I want test whether difference exist
> between A and B on cover the functions in F.
> 1 I know that without the weight, we could do it like this:
> First create the 2*2 table
>                           A               B
> covered functions         a                c
> uncover functions         b                d
> Then use chi-square test.
> But with the weight, what should I do.
> 2 How to test whether A covers more functions than B
> considering the weight.

First of all it is better to respond to the list than to
individual members privately, as is discussed on the 
statalist FAQ, point 5:

As to question 1: -tab- allows weights, see: -help tab-.

As to question 2: In that case you probably want to do a 
logistic regression, with fridge type as an explanatory 

Hope this helps,

Maarten L. Buis
Institut fuer Soziologie
Universitaet Tuebingen
Wilhelmstrasse 36
72074 Tuebingen


*   For searches and help try:

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