12-31-2013 09:12 AM
i'm doing a Ttest on a dataset with the following hypothesis.
was the senior mean income in 1995 higher then the new's?
my code is this:
`proc ttest data=c2 ;
and i get the following results: http://srv1.jpg.co.il/2/52c2c92d39500.png
i can see that for the F test for VAR, the p.v. is 0.5320 so they are equal.
but the p.v. for the Ttest is 0.66 which means i approve the null hypothesis. but it is obviously wrong.
am i looking on the p.v. wrong?
12-31-2013 10:04 AM
As per the image , i confer that there are two groups senior and new and the ttest is a two sample.The population of new is 26 subjects and senior is 24 with
if we check the equality of variance (F value) is 0.5320 which is greater than 0.05 so the variance is equal,
we have to consider Method "Pooled" with P value 0.6622 which also suggests that there is no difference in variance between
new and senior.
If the F value was less than 0.05 then we need to consider that the variance are unequal, so the method to look would be "Satterthwaite"
Hope this helps.
12-31-2013 11:59 AM
thank you Jag, but as i stated. i understand the F test. my problem is with Ttest for the hypothesis for mean
12-31-2013 11:00 AM
What makes you feel that the p value is wrong? The difference between groups is less than half the standard error and there is tremendous overlap in the confidence interval on each mean. Just because you reject a null hypothesis, it does not mean that the alternative is true. It may be that your sample size is such that you do not have enough power to call the observed difference significant.
Also, the p value reported is a two tailed value, and you are interested in a one tailed test. Thus given that the difference is negative, it should be reported that the probability associated with the one tailed test is half that reported, or 0.3311, which still "nonsignificant". The effect size of -0.44 should be an indicator that nothing of importance can be concluded from these data.
12-31-2013 12:07 PM
thank you Steve.
as i understand. the PROC Ttest is a two-tailed test with default alpha=0.05
which means the correct hypothesis for the Ttest are:
H0: mu_inc95(senior) == mu_inc95(new)
H1: mu_inc95(senior) =/ mu_inc95(new)
and i got p.v.=0.6622 so i approve the null hypothesis BUT:
if i need a one-tailed test with alpha=0.05
with the hypothesis
can i just cut in half the p.v. of the Ttest or do i need to add "SIDES=U | L" to the PROC TTEST?
and if i need to add SIDES, i need to add U or L?
Need further help from the community? Please ask a new question.