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

  Probability that the regression is significant as a whole

If we have two explanatory variables A1, A2, which of the following is true about Significance F calculated using regression model in excel?

  Which will be an appropriate null hypothesis

Which of following will be an appropriate null hypothesis? When sample size for a proportion is given a confidence level, and a sampling error is determined as close to 0.50 the p is estimated will be required sample siz _____.

  Identify the benefits of using e-learning

What is the reality of the use of e-learning from the perspective of students of the First Level in the Department of Management Information Systems at University of Hail

  A health researcher conducted an experiment

A health researcher conducted an experiment in which participants watched a film that either did or did not include a person being injured because of not wearing a seat belt. A week later, as part of a seemingly different study, these same participan..

  Psychological explanations are unsatisfactory

What do the authors mean when they say that "psychological explanations are unsatisfactory" in this case? Relate this to the central arguments made by Durkheim in his study of Suicide.

  A ball is picked at random from a box containing 3 white

A ball is picked at random from a box containing 3 white, 5 red, 8 blue, and 7 green balls. Find the probability of each event. a. White ball is picked. b. Blue ball is picked.

  Estimate the number of games in the sample

a. Estimate the number of games in the sample that the Colonials win by giving the mean of the relevant distribution (that is, the expectation of the relevant random variable). Do not round your response.

  Compare the working and spatial memory by EEG

Medical and Applied Physiology Experimental Report Assignment - Title - Compare the working and spatial memory by EEG. Review of the literature

  Analyze the assumptions of the one-way anova

Write Section 2 of the DAA. Analyze the assumptions of the one-way ANOVA. Specify a research question related to the one-way ANOVA

  Water specimens contain nitrates

Water specimens contain nitrates, a solution that is dropped into the water will cause the specimen to turn red 95% of the time. When used on water specimens without nitrates, the solution turns the water red 10% of the time. Past experience in the l..

  Calculate the probability of eating each food

Calculate the probability of eating each food for those who became ill (i.e. the 30 cases). In Table 1.1 (below), report the probabilities (as proportions not percentages) and show 2 decimal places

  Secondary data be regarded with special skepticism

In general, what are some of the considerations in evaluating the suitability of data that have been generated by someone else?

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