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 .
Don't miss out on SAS Innovate - Register now for the FREE Livestream!
Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.
What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.
Find more tutorials on the SAS Users YouTube channel.