Hi Everyone,
I am learning SAS so I can not solve this example. I want to test it on SAS to help my students understand. Can you help me solve by using SAS the example below?
Thanks,
Jae
You can use PROC TTEST to perform a one-sample test for the mean. You can use the SIDES=U option to perform a one-sided test and the H0= option to specify the value of the null hypothesis. There is a Getting Started example in the PROC TTEST documentation that shows how to perform the test and analyze the results.
data Movie;
input rating @@;
datalines;
3 5 4 3 4 5 5 4 3 2 5 4 3 2 3 5
;
proc ttest data=Movie H0=4 sides=u alpha=0.05;
var rating;
run;
You can use nonparameter statistical method like resampling .
Check @Rick_SAS blog .
https://blogs.sas.com/content/iml/2014/11/21/resampling-in-sas.html
Hi Ksharp,
It is very difficult for me, please try to help me. If you can make SAS file and post it on here, I am really grateful to you.
Joe
You can use PROC TTEST to perform a one-sample test for the mean. You can use the SIDES=U option to perform a one-sided test and the H0= option to specify the value of the null hypothesis. There is a Getting Started example in the PROC TTEST documentation that shows how to perform the test and analyze the results.
data Movie;
input rating @@;
datalines;
3 5 4 3 4 5 5 4 3 2 5 4 3 2 3 5
;
proc ttest data=Movie H0=4 sides=u alpha=0.05;
var rating;
run;
and I quoted "without using statistical software." .
The problem says "(a) through (c) without using software," which I assume the OP can do. The OP was asking about part (d), "Verify your answers by using SAS output."
Sure. Rick .
Hi Rich_SAS,
Thank you for your help.
Because SAS is quite new to me, could you send me a SAS file for this example and this results to email? My email is: jaegonkim.edu@gmail.com
Joe
The SAS code is posted in my response. You can copy and paste from this discussion thread.
Hi Rick_SAS,
Yes, thank you. Could you solve (a) to (c) without using software? I want to know the results are to make a comparison of them.
?? When you asked this question, you said you wanted to use SAS "to help my students understand," so I assumed you are a statistics teacher. This problem is solved in every elementary statistics textbook. I suggest you refer to the one that you are using for your class.Look in the chapter that discusses "tests of hypotheses" and the section that discusses "tests for the mean."
Hi Rick_SAS,
Sorry, I will review it. I would like to ask only another example about SAS. Are you ready to help me?
Thank you.
Joe
Hi Rick_SAS,
Sorry, I will review it. I would like to ask only another example about SAS. Are you ready to help me?
Thank you.
Joe
If it is a different question, please start a new thread.
There are many people on the forum who can help answer your questions about how to use SAS to analyze data and how to interpret SAS output. I am just one of hundreds of people who answer questions on this community.
I would like to give it a try.
a) H0 : mean=4 H1: mean>4
b) the statistic is the number of obs>4 , which is 5
c) due to 5/nobs = 0.312 , i.e. 0.3 > 0.05 which means can't refuse H0 .
d) from the output of proc ttest, can verify the above. You can't say mean at least 4.
SAS Output
Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!
ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.
Find more tutorials on the SAS Users YouTube channel.