Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: Re: specifying difference in H0 of ttest


From   Richard Williams <[email protected]>
To   [email protected]
Subject   Re: st: Re: specifying difference in H0 of ttest
Date   Thu, 15 Jan 2004 13:00:06 -0500

At 11:28 AM 1/15/2004 -0500, Wandland, Kristen wrote:
Thank you all for the information so far. I have yet to digest it all!

I think I should help with a couple of clarifications: we are looking at
potentially uneven sampling groups (n1 = 10, n2 = 15) and we do have unequal
variances.

The ultimate task at hand is to determine if the concentrations (of a
constituent) from one area are consistent with the concentrations from the
other area. EPA has requested a ttest with diff = StDev.
In that case my clunky solution from before may not be so bad after all (although somebody will no doubt suggest yet another better way to do it!). I'm not sure what StDev you are referring to (the SD for Y with both groups pooled together?) but anyway lets assume you have determined it is 10; and lets further assume the hypothesis is one tailed in that you expect group 1 to be the group that scores higher. Then

gen score2 = score
replace score2 = score2-10 if group==1
ttest score2, by(group) unequal

You could modify this along the lines of what Scott suggested to use the saved results from summarize. Does this sound like what you wanted?



-------------------------------------------
Richard Williams, Associate Professor
OFFICE: (574)631-6668, (574)631-6463
FAX: (574)288-4373
HOME: (574)289-5227
EMAIL: [email protected]
WWW (personal): http://www.nd.edu/~rwilliam
WWW (department): http://www.nd.edu/~soc

*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* 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