One and 2 sample t-test Exercises (4)

.docx

School

Seneca College *

*We aren’t endorsed by this school

Course

120

Subject

Statistics

Date

Feb 20, 2024

Type

docx

Pages

7

Uploaded by DoctorBravery103687

T-Test (Total 20 points) 1. Performing a One-Sample t -Test (10 points) The data in DATALIB.NormTemp comes from an article in the Journal of Statistics Education by Dr. Allen L. Shoemaker from the Psychology Department at Calvin College. The data are based on an article in a 1992 edition of JAMA ( Journal of the American Medical Association ), which questions the notion that the true mean body temperature is 98.6. There are 65 males and 65 females. There is also some question about whether mean body temperatures for women are the same as for men. The variables in the data set are as follows: ID Identification number BodyTemp Body temperature (degrees Fahrenheit) Gender Coded ( Male , Female ) HeartRate Heart rate (beats per minute) a. Look at the distribution of the continuous variables in the data set using PROC UNIVARIATE, including producing histograms and insets with means, standard deviations, and sample size. (2 points) b. Perform a one-sample t -test to determine whether the mean of body temperatures (the variable BodyTemp in DATALIB.NormTemp ) is 98.6. Produce a confidence interval plot of BodyTemp with the value 98.6 used as a reference. 1) What is the value of the t statistic and the corresponding p -value? (2 points) Answer- The t value is -5.45, and the p-value is <.0001. 2) Do you reject or fail to reject the null hypothesis at the 0.05 level that the average temperature is 98.6 degrees? (2 points) Answer- We reject the null hypothesis at the 0.05 level. c. Provide the syntax and output (4 points) Answer- libname DATALIB '/home/u63731080/DATALIB'; data DATALIB.normtemp; set '/home/u63731080/DATALIB/normtemp.sas7bdat'; run; TITLE 'Distribution Analysis Using PROC UNIVARIATE'; ods select histogram; proc univariate data=DATALIB.normtemp noprint; Var BodyTemp HeartRate; histogram BodyTemp HeartRate/ normal kernel; inset N MEAN STD / position=ne; run;
TITLE 'One-Sample t-test using PROC TTEST to test whether Mean BodyTemp=98.6'; proc ttest data=DATALIB.normtemp h0=98.6 plots(only shownull)=interval; var BodyTemp; run;
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help