52.3 53.5 50.5 50.3 49.6 51.0 48.3 50.6 50.2 52.5 47.5 50.9 49.8 50.0 53.0 50.9 49.9 50.1 50.7 48.2 51.5 49.0 51.7 53.2 51.1 52.6 51.2 49.5 51.9 52.0 48.8 46.8 51.3 49.3 54.0 49.2 51.4 48.5 50.8 49.4
This is my 50 data set. I was asked to perform a hypothesis testing on whether the mean of the following data is more than 50 or not. Due to large sample size, i should perfom a Z test. However, my lecturer only taught us how to perform a t test. By doing the step distribution analysis, and the value given is also t value.
May i know how to perform z test for the hypothesis testing using SAS enterprise?
data have;
input x @@;
cards;
52.3 53.5 50.5 50.3 49.6 51.0 48.3 50.6 50.2 52.5 47.5
50.9 49.8 50.0 53.0 50.9 49.9 50.1 50.7 48.2 51.5 49.0
51.7 53.2 51.1 52.6 51.2 49.5 51.9 52.0 48.8 46.8 51.3
49.3 54.0 49.2 51.4 48.5 50.8 49.4
;
run;
proc univariate data=have mu0=50 all;
var x;
run;
Student t | t | 2.212388 | Pr > |t| | 0.0329 |
---|
It is significant . is NOT equal 50 at alpha=0.05 .
Basic Confidence Limits Assuming Normality | |||
---|---|---|---|
Parameter | Estimate | 95% Confidence Limits | |
Mean | 50.57500 | 50.04930 | 51.10070 |
Std Deviation | 1.64375 | 1.34650 | 2.11064 |
Variance | 2.70192 | 1.81306 | 4.45479 |
Mean is great than 50 at alpha=0.05 .
Check out this tutorial series to learn how to build your own steps in SAS Studio.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.