BookmarkSubscribeRSS Feed
Odienliow
Calcite | Level 5

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? 

1 REPLY 1
Ksharp
Super User
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 .

 

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
SAS Enterprise Guide vs. SAS Studio

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 1 reply
  • 1341 views
  • 0 likes
  • 2 in conversation