Homework 1 instructions
pdf
keyboard_arrow_up
School
Purdue University *
*We aren’t endorsed by this school
Course
506
Subject
Statistics
Date
Feb 20, 2024
Type
Pages
2
Uploaded by BailiffKangaroo6144
STAT 506: Homework 1
You should first download the Data folder for the Programming 1 course from Brightspace; it is available in a zip file called “PG1.zip.” You will need to unzip it and follow the instructions on running the cre8data.sas program. Make sure it is in a location that is accessible from where you are running SAS. The folder contains all the datasets and SAS programs that go along with the SAS course we are following.
Also, in the assignments when I ask for you to “submit a screenshot”, all you need to do is push the ‘Print Screen’ button on your computer (or use the Snipping Tool / Snip & Sketch app in Windows or Shift-Command-4 on a Mac) and then paste the image into your homework submission. Also, any time there are italicized
instructions at the end of a step, those are my instructions for you to show me your work.
Be aware that this first assignment is shorter than future assignments will be. Use this as a “warm up.” Take the extra time to play around a bit and familiarize yourself with SAS, after making sure you’re comfortable with how you’ll be accessing it this semester (downloaded on PC, using Purdue labs, online OnDemand for Academics, and/or Software Remote).
1. Submitting a Program
data hw1; set sashelp.cars; run; proc print data=hw1 noobs; var Make Model MPG_Highway; where MPG_Highway > 39; run; a.
How many steps are in the above code? How many statements are in the above code?
b.
Copy the above code into the Editor window. Submit the program for execution. How many rows and columns are in the report (excluding the variable name row) in the Results Viewer window?
c.
Examine the Log window. Based on the log notes following the DATA step, how many observations and variables are in the sashelp.cars
table?
2. Diagnosing and Correcting Syntax Errors
proc prnt data=sashelp.cars; var EngineSize hoRsepoWeR /* This line is a comment and we don't want it to run; RUN; a.
The above SAS code might have some errors. State the error(s).
b. Correct the error(s) and submit the program. Show the final code and the output showing the first five observations.
3.
Understanding SAS Dates
a.
The Justice League of America debuted in comics on December 29, 1959. What is that as a SAS date?
b.
When stored in a variable as a SAS date, what would its default length (byte size) be?
4. Examining the Descriptor Portion of a SAS Table
a.
Write a PROC CONTENTS step to display the descriptor portion of the sashelp.Holiday table
. Show your code.
b. Submit the program and answer the following questions:
How many observations (rows) are in the data set? How many variables (columns) are in the data set? What is the length (byte size) of the variable desc
?
5. Accessing a SAS Data Library
a.
Write and submit the appropriate LIBNAME statement to provide access to the pg1/data folder. Call the libref “pg1”. Submit the libname statement.
b. Check the log to confirm that the SAS data library was assigned. Submit this portion of the log.
c. Add a PROC CONTENTS step to display the descriptor portion of the table pg1.storm_range
. Submit the code and the output. (Yes, there will be a lot of output.)
6. Using PROC IMPORT for CSV Files
a.
Download the file hw1data.csv from Brightspace. You will want to take note of the location of the downloaded file. If you’re working with SAS OnDemand or Software Remote, you’ll have to then upload it to the remote environment. Write a PROC IMPORT step to read into SAS as a table named work.hw1data
. Submit the code.
b.
The PROC IMPORT you just ran created a new file named hw1data.sas7bdat
on your system. After you end your SAS session (don’t do that right now), what will happen to that file and why?
c.
Then
run the below code. Submit a screenshot of the output.
proc print data=work.hw1data; 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
Related Documents
Related Questions
The basketball coach at a local college believes that his team scores more points at home games when more people show up. Below is a list of all home games last year with scores and corresponding attendance. Use Excel, SPSS, or work by hand to show your work finding r. Show your work on the attached pages.
Score
Attendance
Score
Attendance
54
380
67
410
57
350
78
215
59
320
67
113
80
478
56
250
82
451
85
450
75
250
101
489
73
489
99
472
53
451
a. What is the correlation between Score and Attendance rounded to 2 decimals?
b. In terms of strength and direction, how would you describe this correlation?
c. What is the obtained t-score for this correlation?
d. What is the critical t-score for a two-tailed test with a ?
e. Is this correlation significant based on the t-scores?
f. Based on Table 10.4, approximately how many cases would you expect to need to…
arrow_forward
The basketball coach at a local college believes that his team scores more points at home games when more people show up. Below is a list of all home games last year with scores and corresponding attendance. Use Excel, SPSS, or work by hand to show your work finding r. Show your work on the attached pages.
Score
Attendance
Score
Attendance
54
380
67
410
57
350
78
215
59
320
67
113
80
478
56
250
82
451
85
450
75
250
101
489
73
489
99
472
53
451
What is the obtained t-score for this correlation?
What is the critical t-score for a two-tailed test with a = 0.05?
Is this correlation significant based on the t-scores?
arrow_forward
The basketball coach at a local college believes that his team scores more points at home games when more people show up. Below is a list of all home games last year with scores and corresponding attendance. Use Excel, SPSS, or work by hand to show your work finding r. Show your work on the attached pages.
Score
Attendance
Score
Attendance
54
380
67
410
57
350
78
215
59
320
67
113
80
478
56
250
82
451
85
450
75
250
101
489
73
489
99
472
53
451
g. What is the coefficient of determination for this relationship?
h. Interpret for these two variables presuming a causal relationship was expected.
arrow_forward
For this exercise please refer to the downloaded Excel Workbook (See Excel Workbook Instructions) from the JB Learning website with your access code. Please upload your answers as an excel file with properly labeled answers. At the end of the chapter 5 workbook you will find Practice problems. Please answer in excel only under practice problems 5.4 questions: 1, 2, 3, 4, 5. If help is needed, tutorials are found in the workbook with relevant problems.
Note: These pictures will give you an idea where it is in the workbook. You are responsible to use the workbook.
#1. Total cholesterol in children aged 1015 years is assumed to follow a normal distribution with a mean of
191 and a standard deviation of 22.4.
what proportion of children 1015 years of age hfave total cholesterol between 180-190?
What proportion of children 10-15 years would be classified as hyperlipidemia(assume that hyperlipidemia
is defined as a total cholesterol level over 200)?
What is the 90th percentile of total…
arrow_forward
Answer the question below in the picture
arrow_forward
Thank you for any feedback on this one.
arrow_forward
Pls help
might need to use excel
arrow_forward
Please take a screenshot of all the steps
********************************
Q 1 (a) Enter the following data into PSPP :
STUDENT NAME
DEPARTMENT
COURSE
MARKS
Tommy
1
Computer Networks
75
John
2
Software Engineering
87
Anabell
1
Programming
94
Rose
2
Information Technology
50
Sarah
2
Software Engineering
72
Value=1 represents “CS” Value=2 represents “IT”
Perform the following on the above data:
Using the Descriptive analysis calculate the Sum, Mean, Mode and Standard deviation for Marks
Do a Frequency analysis on the variable “Department” and create a Pie chart for
arrow_forward
still having a hard time figuring out how to insert it into the calculator
arrow_forward
can you please help with how to insert it into the calculator
arrow_forward
# 4
arrow_forward
The r code for side by side boxplot of vitamind v newage and vitamin d v country.
Scatterplot code for relationship between vitamin d level and age.
arrow_forward
Describe in your own words the YRBBS to someone who does not know the system. Specifically, explain:
What is it? Who owns it? Who can usethe system? Where does the data in it come from? From whom is the data collected?
arrow_forward
is there a place to put this in the calculator
arrow_forward
Hello, I am really struggling with this problem because I don't even know how to start it. I really need to understand this because I am desperate can you please do this problem because I need to know how to understand this.
can you please label the parts and do this problem step by step
arrow_forward
Suppose you work for Amazon Prime delivery services. You are assigned a new town to deliver packages to. You discover that the streets are small enough that you can throw the mail to each persons house on both sides of the street as you drive by. (You may not be the greatest mailman but you sure do finish everything pretty fast!) The photo attached is a representation of all the stops you must make. The locations marked with a red dot are those who have mail that needs to be delivered. You decide to complete all your deliveries as efficiently as possible today. To be most efficient you must drive past each delivery stop only once and you also decide to only drive down roads that have a delivery stop. You must start and end at the exact same spot (that way you can get back to your own car quickly).
(i) Is this a possible scenario for a route in which all your wants are met? Describe a route or prove a contradiction.
(ii) Unfortunately, as you make your way to the starting point you get…
arrow_forward
Help me fast so that I will give Upvote.
arrow_forward
Recently, management at Oak Tree Golf Course received a few complaints about the condition of the greens. Several players complained that the greens are too fast. Rather than react to the comments of just a few, the Golf Association conducted a survey of 100 male and
100 female golfers. The survey results are summarized here.
Excel File: data02-31.xlsx
Male Golfers
Male
Green Condition
Handicap
Under 15
15 or more
25
25
a. Complete the crosstabulation shown below.
Green Condition
Gender Too Fast Fine
Female
35
40
Too Fast
10
65
60
Fine
40
Total
100
100
Female Golfers
200
Green Condition
Handicap
Under 15
15 or more
Too Fast
1
Note: This exercise is an example of Simpson's Paradox.
39
Fine
9
Total
75
125
Which group shows the highest percentage saying that the greens are too fast?
Females, at 40%
b. Refer to the initial crosstabulations. For those players with low handicaps (better players), which group (male or female) shows the highest percentage saying the greens are too fast?
For…
arrow_forward
Can you do part 4 and 5
arrow_forward
Please help with question 96,97
arrow_forward
College Mathematics for Business, Econ, Life and Social Sci, 14e,
arrow_forward
I need #8 and 9
arrow_forward
I need the answers step by step
arrow_forward
tion 2 of 15
Last summer, the Smith family drove through seven different states and visited various popular landmarks. The prices of gasoline
in dollars per gallon varied from state to state and are listed below.
$2.34, $2.75, $2.48, $3.58, $2.87, $2.53, $3.31
Click to download the data in your preferred format.
CrunchIt! CSV Excel JMP Mac Text Minitab PC Text R SPSS TI Calc
Calculate the range of the price of gas. Give your solution to the nearest cent.
range:
dollars per gallon
DELL
&
4.
7
8.
arrow_forward
SEE MORE QUESTIONS
Recommended textbooks for you

Algebra for College Students
Algebra
ISBN:9781285195780
Author:Jerome E. Kaufmann, Karen L. Schwitters
Publisher:Cengage Learning

Elementary Geometry for College Students
Geometry
ISBN:9781285195698
Author:Daniel C. Alexander, Geralyn M. Koeberlein
Publisher:Cengage Learning

Mathematics For Machine Technology
Advanced Math
ISBN:9781337798310
Author:Peterson, John.
Publisher:Cengage Learning,
Related Questions
- The basketball coach at a local college believes that his team scores more points at home games when more people show up. Below is a list of all home games last year with scores and corresponding attendance. Use Excel, SPSS, or work by hand to show your work finding r. Show your work on the attached pages. Score Attendance Score Attendance 54 380 67 410 57 350 78 215 59 320 67 113 80 478 56 250 82 451 85 450 75 250 101 489 73 489 99 472 53 451 a. What is the correlation between Score and Attendance rounded to 2 decimals? b. In terms of strength and direction, how would you describe this correlation? c. What is the obtained t-score for this correlation? d. What is the critical t-score for a two-tailed test with a ? e. Is this correlation significant based on the t-scores? f. Based on Table 10.4, approximately how many cases would you expect to need to…arrow_forwardThe basketball coach at a local college believes that his team scores more points at home games when more people show up. Below is a list of all home games last year with scores and corresponding attendance. Use Excel, SPSS, or work by hand to show your work finding r. Show your work on the attached pages. Score Attendance Score Attendance 54 380 67 410 57 350 78 215 59 320 67 113 80 478 56 250 82 451 85 450 75 250 101 489 73 489 99 472 53 451 What is the obtained t-score for this correlation? What is the critical t-score for a two-tailed test with a = 0.05? Is this correlation significant based on the t-scores?arrow_forwardThe basketball coach at a local college believes that his team scores more points at home games when more people show up. Below is a list of all home games last year with scores and corresponding attendance. Use Excel, SPSS, or work by hand to show your work finding r. Show your work on the attached pages. Score Attendance Score Attendance 54 380 67 410 57 350 78 215 59 320 67 113 80 478 56 250 82 451 85 450 75 250 101 489 73 489 99 472 53 451 g. What is the coefficient of determination for this relationship? h. Interpret for these two variables presuming a causal relationship was expected.arrow_forward
- For this exercise please refer to the downloaded Excel Workbook (See Excel Workbook Instructions) from the JB Learning website with your access code. Please upload your answers as an excel file with properly labeled answers. At the end of the chapter 5 workbook you will find Practice problems. Please answer in excel only under practice problems 5.4 questions: 1, 2, 3, 4, 5. If help is needed, tutorials are found in the workbook with relevant problems. Note: These pictures will give you an idea where it is in the workbook. You are responsible to use the workbook. #1. Total cholesterol in children aged 1015 years is assumed to follow a normal distribution with a mean of 191 and a standard deviation of 22.4. what proportion of children 1015 years of age hfave total cholesterol between 180-190? What proportion of children 10-15 years would be classified as hyperlipidemia(assume that hyperlipidemia is defined as a total cholesterol level over 200)? What is the 90th percentile of total…arrow_forwardAnswer the question below in the picturearrow_forwardThank you for any feedback on this one.arrow_forward
- Pls help might need to use excelarrow_forwardPlease take a screenshot of all the steps ******************************** Q 1 (a) Enter the following data into PSPP : STUDENT NAME DEPARTMENT COURSE MARKS Tommy 1 Computer Networks 75 John 2 Software Engineering 87 Anabell 1 Programming 94 Rose 2 Information Technology 50 Sarah 2 Software Engineering 72 Value=1 represents “CS” Value=2 represents “IT” Perform the following on the above data: Using the Descriptive analysis calculate the Sum, Mean, Mode and Standard deviation for Marks Do a Frequency analysis on the variable “Department” and create a Pie chart forarrow_forwardstill having a hard time figuring out how to insert it into the calculatorarrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- Algebra for College StudentsAlgebraISBN:9781285195780Author:Jerome E. Kaufmann, Karen L. SchwittersPublisher:Cengage LearningElementary Geometry for College StudentsGeometryISBN:9781285195698Author:Daniel C. Alexander, Geralyn M. KoeberleinPublisher:Cengage LearningMathematics For Machine TechnologyAdvanced MathISBN:9781337798310Author:Peterson, John.Publisher:Cengage Learning,

Algebra for College Students
Algebra
ISBN:9781285195780
Author:Jerome E. Kaufmann, Karen L. Schwitters
Publisher:Cengage Learning

Elementary Geometry for College Students
Geometry
ISBN:9781285195698
Author:Daniel C. Alexander, Geralyn M. Koeberlein
Publisher:Cengage Learning

Mathematics For Machine Technology
Advanced Math
ISBN:9781337798310
Author:Peterson, John.
Publisher:Cengage Learning,