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

  Which of the following may be considered a variable

Which of the following may be considered a variable

  Analysis of the one-way anova results

Using the General Social Survey dataset, construct a research question that can be answered by a one-way ANOVA.

  Risk factor for pancreatic cancer

Identify the type of study proposed and indicate its specific strengths and weaknesses and

  State the formula for the exponential probability curve

State the formula for the exponential probability curve. Define each symbol in the formula. Explain the relationship between the Poisson and exponential distributions.

  The population distribution is assumed to be normal.

The U.S. Census Bureau conducts a study to determine the time needed to complete the short form. The Bureau surveys 200 people. The sample mean is 8.2 minutes. There is a known standard deviation of 2.2 minutes. The population distribution is assumed..

  What percentages of students fall under the mean

The mean store for an exit test at an urban high school examination was 68% with a standard deviation of 3. Given these results, what percentages of students fall under the mean? a. 25% b. 50% c. 60% d. 75%

  The number of completed entries made per hour

The number of completed entries made per hour

  Test the claim that with garlic treatment

Test the claim that with garlic treatment, the mean change in LDL cholesterol is greater than 0. What do the results suggest about the effectiveness of the garlic treatment?

  Describe the assumptions of normality

Describe the assumptions of normality and homogeneity of variance. When these assumptions are violated, what are your options? Are there cases in which the assumptions may technically be violated, yet have no impact on your intended analyses? Explain

  Setting up a linear programming problem

Identify any challenges you have in setting up a linear programming problem in Excel, and solving it with Solver. Explain exactly what the challenges are and why they are challenging. Identify resources that can help you with that.

  Independent-samples t test with spss

Independent-Samples t Test with SPSS In your research, you may find that you must compare the means of two samples related to one particular variable. For example, you may have population samples from two ethnic groups that you wish to compare agains..

  Sample size before trusting the validity of a poll

What consideration would you consider even important than the sample size before trusting the validity of a poll - Post a response to the question

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