Hypothesis Testing with
SAS
STAT 342 – Fall 2020 Tutorial – 13
Final Exam
• Questions can be asked from,
• All lectures that was done to date
• All tutorial that was done to date, expect the last tutorial (tutorial 13)
• Questions will not be asked in relation to creating plots
• Try to be familiar with material in,
• Lectures
• Tutorials
• Quizzes
• Assignments
• Mid-term exam
T test for Means – “PROC TTEST”
VAR
CLASS
PAIRED
• • •
r
One sample T test
Two independent samples T test Paired T test
: specify VAR
: specify VAR and CLASS : specify PAIRED
PROC TEST data= ho= alpha=
un;
One Sample Proportions Test (Z) – “PROC FREQ”
PROC FREQ data=
TABLE tab / binomial (p=prop, level=‘ l’)
run;
• One proportions test : specify variable to create table specify H0 / prop
specify the level on which you need to conduct the test • For two samples we need to perform chi-squared test
Correlation Analysis – PROC CORR
PROC CORR data=
VAR
B
Y
run;
• VAR: specify two or more variables to compute the correlation among variables
• BY: if you want to compute correlations by a categorical variable
before using by you need to sort the dataset by that categorical variable