Desktop productivity for business analysts and programmers

Perform Z test using SAS enterprise guide 5.1

Reply
New Contributor
Posts: 2

Perform Z test using SAS enterprise guide 5.1

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? 

Grand Advisor
Posts: 9,571

Re: Perform Z test using SAS enterprise guide 5.1

[ Edited ]
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 .

 

Ask a Question
Discussion stats
  • 1 reply
  • 270 views
  • 0 likes
  • 2 in conversation