logo Hurry, Grab up to 30% discount on the entire course
Order Now logo

Ask This Question To Be Solved By Our ExpertsGet A+ Grade Solution Guaranteed

expert
Richard RussellResume writing
(5/5)

836 Answers

Hire Me
expert
Doyle TaftEducation
(5/5)

774 Answers

Hire Me
expert
Shilpi BhatnagarComputer science
(5/5)

535 Answers

Hire Me
expert
Gabriel GaboardiLaw
(5/5)

539 Answers

Hire Me
SAS
(5/5)

Using the SAS data set Hosp, create a temporary SAS data set called Monday2002,

INSTRUCTIONS TO CANDIDATES
ANSWER ALL QUESTIONS

Problem 1 (=Chapter 10 Problems 2 from Cody) 

 

Using the SAS data set Hosp, create a temporary SAS data set called Monday2002, consisting of observations from Hosp where the admission date (AdmitDate) falls on a Monday and the year is 2002. Include in this new data set a variable called Age, computed as the person’s age as of the admission date, rounded to the nearest year. 

 

 

Be sure that your pasted your program below. Also paste the relevant text from your log below as an evidence of successful, error-free run. If you cannot get your program to run error-free, paste what you have for potential partial credit. 

 

 

 

 

Problem 2(chapter 10 problem 8 from cody) 

Run the program here to create a SAS data set called Markup: 

 

data markup; 

input manuf : $10. Markup; datalines; 

Cannondale 1.05 

Trek 1.07 

Combine this data set with the Bicycles data set so that each observation in the Bicycles data set now has a markup value of 1.05 or 1.07, depending on whether the bicycle is made by Cannondale or Trek. In this new data set (call it Markup_Prices), create a new variable (NewTotal) computed as TotalSales times Markup. 

 

 

Problem 3 (=Chapter 10 Problem 11 from Cody) 

 

Merge the Purchase and Inventory data sets without sorting either one and omitting the BY Model statement. Check the SAS log and list the observations in Purchase, Inventory, and the merged data set. Now, run this same program 

with the system option MERGENOBY set to WARN. Check the SAS log. Finally, set MERGENOBY to ERROR and run this program a third time. Check the SAS log. 

Note: You might want to give the merged data set a different name for each of 

the three runs so that it is clear which programs run and which programs do not run. 

 

 

 

4.chapter 11 problem 5 from cody 

The SAS data set Psych contains an ID variable, 10 question responses (Ques1– Ques10), and 5 scores (Score1–Score5). You want to create a new, temporary SAS data set (Evaluate) containing the following: 

a. A value (ScoreAve) consisting of the mean of the three highest Score values. If there are fewer than three non-missing score values, ScoreAve should be missing. 

b. An average of Ques1–Ques10 (call it QuesAve) if there are seven or more non- missing values. 

c. A composite score (Composit) equal to ScoreAve plus 10 times QuesAve. 

 

 

 

 

 

Problem 5 (chapter 11 problem 9 from cody) 

Using the random functions, create a temporary SAS data set (Fake) with 100 observations. Each observation should contain a subject number (Subj) starting from 1, a random gender (with approximately 40% females and 60% males), and a random age (integers from 10 to 50). Compute the frequencies for Gender and list the first 10 observations in the data set. 

(5/5)
Attachments:

Related Questions

. The fundamental operations of create, read, update, and delete (CRUD) in either Python or Java

CS 340 Milestone One Guidelines and Rubric  Overview: For this assignment, you will implement the fundamental operations of create, read, update,

. Develop a program to emulate a purchase transaction at a retail store. This  program will have two classes, a LineItem class and a Transaction class

Retail Transaction Programming Project  Project Requirements:  Develop a program to emulate a purchase transaction at a retail store. This

. The following program contains five errors. Identify the errors and fix them

7COM1028   Secure Systems Programming   Referral Coursework: Secure

. Accepts the following from a user: Item Name Item Quantity Item Price Allows the user to create a file to store the sales receipt contents

Create a GUI program that:Accepts the following from a user:Item NameItem QuantityItem PriceAllows the user to create a file to store the sales receip

. The final project will encompass developing a web service using a software stack and implementing an industry-standard interface. Regardless of whether you choose to pursue application development goals as a pure developer or as a software engineer

CS 340 Final Project Guidelines and Rubric  Overview The final project will encompass developing a web service using a software stack and impleme