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
Neill BissonnetteData mining
(5/5)

712 Answers

Hire Me
expert
Imraan KhanManagement
(5/5)

831 Answers

Hire Me
expert
Robert DLaw
(4.8/5)

551 Answers

Hire Me
expert
Connorr EvansEngineering
(5/5)

949 Answers

Hire Me
SAS
(5/5)

calculating the mean value of the median income variable as well as the mean value of the population variable separately for each CollGradGroup value

INSTRUCTIONS TO CANDIDATES
ANSWER ALL QUESTIONS

this is a part of a hw problem. I've done the previous part and i'm including the code for it. please build on that, and let me know if you need help. You are interested in calculating the mean value of the median income variable as well as the mean value of the population variable separately for each CollGradGroup value. (Thus, you want the mean income for high, med-high, med-low, and low as well as the mean population for each of them as well). Create this in three ways: i) As a SAS dataset, where the variables are meaninc and meanpop. ii) In a table using PROC TABULATE. iii) In a scatterplot, where x = meanpop and y = meaninc. Comment on the pattern that you that you see in the graph. attached find the excel files. here is my code up to that point: FILENAME REFFILE '/home/u57975864/sas/Median Income by Zip Code in US(1).xlsx'; PROC IMPORT DATAFILE=REFFILE DBMS=XLSX OUT=Nation; GETNAMES=YES; RUN; *PROC Contents DATA=Nation; RUN; FILENAME REFFILE '/home/u57975864/sas/Hw solutions/PA College Graduation By Zip Code(1).xlsx'; PROC IMPORT DATAFILE=REFFILE DBMS=XLSX OUT=PaGrad; GETNAMES=YES; RUN; *PROC CONTENTS DATA=PaGradRate; RUN; *number 2; data NewNation; set Nation; rename Zip=ZipCode; run; proc sort data=NewNation; by ZipCode; proc sort data= PaGrad; by ZipCode; data merged; merge NewNation PaGrad; by ZipCode; run; data match nograd noinc; merge NewNation(in=a) PaGrad(in=b); by ZipCode; if a and b then output match; else if a and not b then output nograd; else output noinc; run; proc print data=match (obs=20);title 'Match'; proc print data=nograd (obs=20); title 'No Grad'; proc print data= noinc; title 'No Income'; *number 3; proc contents data= match; run; proc contents data= nograd; run; proc contents data=noinc; run; *problem4; *part a; data match2; set match; rename '% College Grad.'n= Grad_rate_percentage; run; proc means data=match2 q1 median q3; var Grad_rate_percentage; run; *part b; proc format; value NCollGradGroup 0='Low' 1='Mid-Low' 2='Mid-High' 3='High'; run; proc rank data=match2 groups=4 out=want; var grad_rate_percentage; ranks CollGradGroup; format CollGradGroup NCollGradGroup.; run; proc print; run;

(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