From | Richard Williams <[email protected]> |
To | [email protected] |
Subject | Re: st: specifying difference in Ho of ttest |
Date | Thu, 15 Jan 2004 10:37:54 -0500 |
At 11:01 PM 1/14/2004 -0500, Michel Camus wrote:
I am not sure that I get the issue correctly, having missed the original thread.Yet another more straightforward solution than I initially proposed; about the only downside I see would be if you wanted to specify unequal variances on the t-test. With yours and Kit's and Scott's solutions, the trick is to take the original problem, which is awkward to address with a matched pairs or independent samples t-test, and recast it into an equivalent problem where it is easy to test the desired constraints. It might be nice if some future version of the t-test command let you specify differences other than 0.
However, if a t-test were appropriate and if the samples are independent, would not a linear regression of the continuous variable against the group variable, followed by testing the parameter estimated for the group variable address the issue in a more straightforward way?
Ex. : suppose you want to test if the difference if significantly different from 10 between two groups.
. regress continuous dichotomous
. test dichotomous = 10
Michel
© Copyright 1996–2024 StataCorp LLC | Terms of use | Privacy | Contact us | What's new | Site index |