Write a SAS DATA step to create a SAS dataset

Assignment Help Applied Statistics
Reference no: EM132235152

Statistical Software and Data Analysis Assignment -

1. A consumer magazine wants to create an index of cars based on the data in the file cars.dat. This index is a function of the car size, gas mileage (mileage), and reliability (reliable). The variable size has values SMALL, COMPACT, and MID-SIZED. The cars.dat data file description is as follows.

Variable

Description

Starting Column

Length

Type

SIZE

Car Size

1

9

Char

MANUFACT

Manufacturer

11

9

Char

MODEL

Model

22

9

Char

MILEAGE

Gas Mileage

38

2

Numeric

RELIABLE

Reliability

50

1

Numeric

Write a SAS DATA step to create a SAS dataset called car_inx that contains all the variables described in the cars.dat file plus the index variable. Be sure to set index to a missing value if either a mileage or reliability value is missing. The rules are as follows:

For SMALL cars:

Mileage

Reliability

Index

0 TO 20

1 TO 3

1

0 TO 20

4 TO 5

2

21 TO 50

1 TO 3

3

21 TO 50

4 TO 5

4

For COMPACT cars:

Mileage

Reliability

Index

0  TO 15

1 TO 3

1

0 TO 15

4 TO 5

2

16 TO 50

1 TO 3

3

16 TO 50

4 TO 5

4

For MID-SIZED cars:

Mileage

Reliability

Index

0 TO 12

1 TO 3

1

0 TO 12

4 TO 5

2

13 TO 50

1 TO 3

3

13 TO 50

4 TO 5

4

2. An Excel file named 'students' of the scores from the last semester for a statistics course is given. The following is a guideline for the overall final grade and the final exam score is out of 150 points, which means it should be recalculated to out of 100 points first. For example, if a student got 120 points on final exam, the actual score should be (120/150)*100=80 points.

Exam #1 (out of 100 points)

20%

Exam #2 (out of 100 points)

20%

Final Exam (out of 150 points)

30%

Quiz #1- Quiz #5 (out of 10, respectively)

15%

HW #1 - HW #2 (out of 50, respectively)

15%

Total

100%

Note that the final grade is assigned as follows: A for 90-100%; B for 80-89%; C for 70-79%; D for 60-69%; F for 59% or under.

(1) Report the average of homework and quiz scores (unit: percent) for each student.

(2) Report the total exam scores (= exam_1+exam_2+Final) for each student.

(3) Calculate the overall final score for each student.

(4) Create a new data set called 'grade_A' and print out the overall final score for A-Grade students only.

(5) Print the student identification number, the overall final score, and the final grade only.

3. Write a SAS program to give PDF (probability density function) and CDF (cumulative distribution function) of a binomial distribution with n = 10 and p = 0.1.

4. Write a SAS program to create a SAS dataset BIG which has 100 observations of X=INT(RANUNI(0)*100 +1). Print X values only from the dataset BIG.

Attachment:- Assignment Files.rar

Reference no: EM132235152

Questions Cloud

What are some examples of the benefits and perks : What are some examples of the benefits and perks that leaders have that their rank-and-file followers do not? Finally, explain how your public acknowledgment.
Which of the given is a characteristic of a corporation : Which of the following is a characteristic of a corporation? A. The stockholders have limited liability. B. When stockholders sell their shares.
Define strategy for managing social and political difference : As the world is shrinking and businesses are more commonly working on an international level, understanding the differences among countries is becoming key.
What are the possible tort claims that patty can make : What are the possible tort claims that Patty can make against Cash Mart? Discuss the elements of the claim and how those elements relate to the facts.
Write a SAS DATA step to create a SAS dataset : STAT 4110/7110 Statistical Software and Data Analysis Assignment - Write a SAS DATA step to create a SAS dataset called car_inx
How much must he give the bank : Derek borrows $43,176.00 to buy a car. He will make monthly payments for 6 years. The car loan has an interest rate of 5.79%. After a 12.00 months
Level of pretax cost savings : Your firm is contemplating the purchase of a new $500,000 computer-based order entry system. The system will be depreciated straight-line to zero over its five
Forward rate than at the spot rate : If the spot rate was $1.0304/C$ and the 90-day forward rate was $1.0394/C$, how much more (in U.S. dollars) would you receive by selling C$1,025,000
What are two possible productivity measures : What are two possible productivity measures that you would use to determine the investment value of the changes made? How would these productivity measures.

Reviews

len2235152

2/15/2019 2:53:57 AM

Note: You should turn in both SAS program and SAS output for the whole credit. Dataset that you may need is in the Canvas. When you use the provided dataset, do not change anything of the dataset file. Use the file as is. Note: May use IF-THEN/ELSE statement or SELECT/END statement and logical AND (&), OR (|) operators.

Write a Review

Applied Statistics Questions & Answers

  Hypothesis testing

What assumptions about the number of pedestrians passing the location in an hour are necessary for your hypothesis test to be valid?

  Calculate the maximum reduction in the standard deviation

Calculate the maximum reduction in the standard deviation

  Calculate the expected value, variance, and standard deviati

Calculate the expected value, variance, and standard deviation of the total income

  Determine the impact of social media use on student learning

Research paper examines determine the impact of social media use on student learning.

  Unemployment survey

Find a statistics study on Unemployment and explain the five-step process of the study.

  Statistical studies

Locate the original poll, summarize the poling procedure (background on how information was gathered), the sample surveyed.

  Evaluate the expected value of the total number of sales

Evaluate the expected value of the total number of sales

  Statistic project

Identify sample, population, sampling frame (if applicable), and response rate (if applicable). Describe sampling technique (if applicable) or experimental design

  Simple data analysis and comparison

Write a report on simple data analysis and comparison.

  Analyze the processed data in statistical survey

Analyze the processed data in Statistical survey.

  What is the probability

Find the probability of given case.

  Frequency distribution

Accepting Manipulation or Manipulating

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