Answered step by step
Verified Expert Solution
Question
1 Approved Answer
proc import file = ' ~ / my _ shared _ file _ links / michaelweinberg 0 / ExamData / covid - daily.xlsx ' out
proc import file~mysharedfilelinksmichaelweinbergExamDatacoviddaily.xlsx
outcovid replace dbmsxlsx;
run;
Create a new dataset, with the US Territories eliminated. They have the following FIPS codes: and for Puerto Rico, the US Virgin Islands, the Northern Mariana Islands and American Samoa, respectively. points
Using PROC FREQ, generate a table that shows how many reports of covid information each state submitted. Every combination of a date and a state is one submission. points
Complete the following step using three of the four SAS commands: PROC MEANS, PROC TABULATE, PROC REPORT, PROC SQL
Generate a table that for each state shows the state name, and the mean, median and maximum new cases. points for each command, for a total of points
Sort the covid dataset, sending output to a new dataset, with new cases as the primary key from the highest value to the lowest. Indicate in your comments which state and which day had the highest number of new cases. points
For extra credit, redo Step but with the numeric values formatted with commas and nothing to the right of the decimal point. for each command, for a total of points
Note: Sample output is attached with this formatting. Your output does not need to look exactly like it To do the formatting with PROC MEANS, you may have to send the output to a new dataset, and then print that dataset.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started