Creating a list report use proc report

Assignment Help Basic Statistics
Reference no: EM131058187

1. Creating a List Report Use PROC REPORT and the ia.employees data set to produce a list report with the following
characteristics:

  •  Output should be sent to the Output window.
  •  The report should display only the variables Division, City, and Salary.
  •  Each variable displayed should have a descriptive report column heading.
  •  Salary should be displayed with dollar signs, commas, and no decimals.
  •  The columns of the report should be wide enough so that individual data values are not truncated.
  •  The observations on the report should be ordered by the values of Division and City.
  •  The report should be titled Employee Salary Data.

Partial PROC REPORT Output

2. Creating a Summary Report with Grand Total
Use PROC REPORT and the ia.employees data set to produce a summary report with the following characteristics:

  •  The report should display only the variables Division, City, and Salary.
  • Each variable displayed should have a descriptive report column heading.
  •  Salary should be displayed with dollar signs, commas, and no decimals.
  •  The columns of the report should be wide enough so that individual data values are not truncated.
  •  The observations on the report should be summarized by the values of City for each Division.
  •  A grand total should appear at the bottom with a single line above the total and a double line below the total.
  •  The report should be titled Employee Salary Data by Division / City.

Partial PROC REPORT Output (Top of Report)
Partial PROC REPORT Output (Bottom of Report)

3. Producing Vertical Bar Charts and Pie Charts

Use the ia.personl data set and a WHERE statement to produce the charts requested below for the ticket agents. (JobCode values are TA1, TA2, and TA3.)

where JobCode in ('TA1', 'TA2', 'TA3');
a. Produce a vertical bar chart that displays the number of male and female ticket agents. (Gender values are M and F.)
b. Use the ODS to save the chart to an HTML document. Add an appropriate title.
c. Create a pie chart to compare salaries of each ticket agent job level. Each pie slice should represent the average salary for one of the three Jobcode values. Save the pie chart as an HTML document file using the ODS. Use the ODS style banker, and add an appropriate title.
d. Enhance the pie chart by exploding the slice that represents the TA3 value of JobCode. Change the font color for the title to red.
4. Producing a Horizontal Bar Chart
Use the ia.chicago data set to produce a horizontal bar chart that displays the total number of passengers boarded (Boarded) each day of the week. Create a new variable, Day, which contains the day of the week, where 1 represents Sunday, 2 represents Monday, and so on.

? Specify the GIF file format for the chart.
? Place an appropriate title on the chart.
? Use the label Day of the Week for the variable Day and the label Passengers for the variable Boarded.
If the chart did not generate seven bars, add the DISCRETE option to the HBAR statement and generate the chart again.

5. Producing a Two-Dimensional Plot
The data set ia.delay contains dates and delays in minutes for International Airlines flights. Use the data set and an appropriate WHERE statement to select flights to Copenhagen (Dest='CPH') and produce the plot described below:

  •  Use the ODS to create and save the plot as an HTML document.
  •  Use the ODS style named Normal.
  •  Plot the delays on the vertical axis and dates along the horizontal axis.
  • Adjust the scale on the vertical axis to start at -15 and end at 30 with a tick mark every 15 minutes.
  •  Display the title "Flights to Copenhagen" in red.
  •  Display the points as red squares.
  •  Use the NEEDLE interpolation technique to connect the points to the horizontal axis.

6. Controlling record OUTPUT
Write a single data step, based on the employees data set, that performs the following operations:
a. Create a dataset called FltCrew that includes all records that have ‘FLTAT' or ‘PILOT' in the JobCode. Drop the EmpID and Salary variables from this dataset.
b. Create a dataset called GrndCrew that includes all records that have ‘MECH' or ‘GRCRE' in the the JobCode. Drop the EmpID and Salary variables from this dataset.

Write a Proc Print step that prints the first 10 records of the FltCrew datasets, and another than prints Records 5 through 15 of the GrndCrew dataset.
7. Creating an Accumulating Total Variable

The data set data2.states contains the state name (State), the date the state entered the United States (EnterDate), and the size of the state in square miles (Size) for all 50 U.S. states. The data set is sorted by EnterDate.

Create the SAS data set work.usarea that contains the new variable TotArea, which is a running total of the size of the United States as each state was added, and the new variable NumStates, which shows how many states were in the United States at that point.

8. Accumulating Totals for a Group of Data

The data set data2.flymiles has one observation for each trip a frequent flyer made with an airline. It shows the frequent flyer number (ID) and the number of miles earned for that trip (Miles). Create a data set named work.freqmiles that has one observation for each frequent flyer as well as a new variable named TotMiles, which shows the total number of frequent flyer miles the person earned.

9. Using iterative DO Loops
Use DO Loops to create a data set that calculates, for each of the next ten years (2011 through 2020):

a. The day of the week on which January 1st falls
b. The date of the first Monday in January.

Create a listing report that looks like the one below:

Weekday Date of
Calendar of January First Monday
Year First in January
2011 Saturday 01/03/11
2012 Sunday 01/02/12
2013 Tuesday 01/07/13
2014 Wednesday 01/06/14
2015 Thursday 01/05/15
2016 Friday 01/04/16
2017 Sunday 01/02/17
2018 Monday 01/01/18
2019 Tuesday 01/07/19
2020 Wednesday 01/06/20

HINTS: Use an iterative DO loop to increase the calendar year and a DO UNTIL loop to find the first Monday in January. Use a SAS function to extract the day of the week from a date, and use a User Defined format to display weekday as a word (e.g. "Tuesday").

Reference no: EM131058187

Questions Cloud

Construct a run chart from the individual readings : Interpret what the data show. Does the process appear to be in control - What might be some possible causes of different out-of-control indicators?
Describe how the theta-join operation can be extended : Describe how the theta-join operation can be extended so that tuples from the left, right, or both relations are not lost from the result of a theta join.
Describe how socioeconomic status affects health care : Socioeconomic status influences health and drives diversity in the context of health disparities. Based on readings provided, describe how socioeconomic status affects health care. Can diversity in the health care workforce promote better health c..
Circumnavigation of the world : What new name did Francis Drake give his ship the Pelican during his circumnavigation of the World?
Creating a list report use proc report : Use the ia.personl data set and a WHERE statement to produce the charts requested below for the ticket agents. (JobCode values are TA1, TA2, and TA3.)
Established interpretation about the french revolution : What were some developments in contemporary French and other Western societies by the 1970s that according to Hobsbawn in his fourth chapter of Echos that facilitated popular acceptance of the attacks on the established interpretation about the Fr..
Find the name of the manager of the manager of jones : Find those employees who earn more than all employees living in the city "Mumbai."
Standard deviation of the data : A sample data set has n=50 observations. The mean of the data is x=46.5. the sum of squares is x^2=127793. What is the standard deviation of the data.
Importance of police patrol in modern policing : Explain the various lines of communications present within any given local law enforcement agency. Next, determine at least two (2) challenges and concerns that law enforcement might encounter with communication and suggest your strategy to mitiga..

Reviews

Write a Review

Basic Statistics Questions & Answers

  Euros are equal to one japanese yen

Click on the euro in the first column in order to generate a historical trend of the direct exchange rate of the euro. Click on 5y to review the euro's exchange rate over the last 5 years. Briefly explain this trend (whether it is mostly upward or..

  A production process is set to manufacture bolts with a

a production process is set to manufacture bolts with a diameter of 0.5 inches. the process has a standard deviation of

  Analyze the residuals from the given experiment

What is the P-value for the F-test in part (a)? Analyze the residuals from this experiment. Find a 95% confidence interval on mean Tc when method 1 is used to prepare the material.

  Examples of progress could leaders

What examples of progress could leaders like W.E.B Du Bois, James Weldon Johnson, A.Philip Randolph, and Marcus Garvey point to in the 1920s?

  Objective-testing of hypothesis

In hypothesis testing, the level of significance is? When would you use a t test and when would you use an f test ? You are interested in the assumption that adult students earn better grades than traditional students.

  Denote the population proportion who believe in an

gender and belief in afterlife. the table shows results from the 2008 general social survey on gender and whether or

  Roulette wheel will land on a speci?ed color

Consider a gambler who on each bet either wins 1 with probability 18/38 or loses 1 with probability 20/38. (These are the probabilities if the bet is that a roulette wheel will land on a speci?ed color.) The gambler will quit either when he or she..

  Probability and usage guarantee

A statistics instructor collected data on the time it takes the students to complete a test. The test taking time is uniformly distributed within a range of 35 minutes to 55 minutes.

  Estimate the expected number of sites

Estimate the expected number of sites occupied for a given value of p. If p is small, can you choose the tape long enough so that there is a small probability that a new job will have to be turned away (i.e., that all the sites are occupied)?

  Select a variable that will enable you to compare proportion

Select a variable. Compare the mean of the variable for a sample of 30 for one group with the mean of the variable for a sample of 30 for a second group. Use a z test.

  During each four-hour period the smalltown police force

during each four-hour period the smalltown police force requires the following number of on-duty police officers eight

  A random sample of 90 students at a private high school is

a researcher is interested in whether students who attend private high schools have higher average sat scores than

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd