Do My Homework / Homework Help Answers / SAS Homework Help / SAS programmer in Economics class

SAS programmer in Economics class

Need help with this question or any other SAS assignment help task?

Please make sure to follow the instruction in Homework 5. Please note Log file and output file should be from one run of a completed SAS program. Finish your codes. Close the log and result window. Then run your SAS program in its entirety to create the log and output. Or you can close SAS and open it again and just run the completed SAS program. We are using SAS 9.4 I received an update regard this homework from my professor: " You will see a data file and a format file. You will have to open up the format file before you open the data file to avoid the error. Here you have a data file and a format file. If you dont understand how to use a format file, review November 9th class program or the recording. Before you first open up the data file, you need to bring up the formats into the SAS session. Run the following PROC FORMAT step before your first DATA step. (Just do it at the beginning). "libname" is the name of the library you put the format file in". PROC FORMAT cntlin=libname.hw5_ipumstimeuse_formats; I uploaded Class1109_program do file to show how my professor did a data file and a format file.
Additional Instructions:
ECON 62052/72052 Data Preparation for Academic Research Jooyoun Park 22 Homework 5. SAS Data Prep #1 Deadline: November 13th (Sun) < Total points: 65 pts > Assignment instruction: 1. Submit your SAS program file, output file as a PDF, and the log file as log. 2. Name your files: - SAS program: [your_last_name]_hw5.sas - Output: [your_last_name]_hw5_output.pdf - Log: [your_last_name]_hw5.log 3. Write all codes in one do file but separate each task by using comments to improve visibility. 4. Log file and output file should be from one run of a completed SAS program. Finish your codes. Close the log and result window. Then run your SAS program in its entirety to create the log and output. Or you can close SAS and open it again and just run the completed SAS program. (If not, I will subtract 10 points from your grade.) 5. Comment what you are doing generously so I can understand what you are doing. That is, comment for me, not just for your own reference. 6. If a question requires you to write answers that are not codes, write them as comments on the SAS program. 7. AVOID PLAGIARISM AT ALL COST! Put away my in-class program files while you are coding, then you can’t possibly plagiarize. TASK 1 (rate 4): Create a date variable a. surveydate is string. Convert it to a date variable. - You will have to create a new variable in the process. But the date variable must be named surveydate and have the same variable label at the end. b. Change the display format in various way and list the first 10 observations. For each case, add an appropriate title to the output so I can tell them apart. i. Display as March 7, 2012 ii. Display as 03-07-2012 iii. Display as 2012/03/07 iv. Display as 03/07/12 v. Display as 03/07/2012 c. Make three other date variables using surveydate. Add a variable label and tabulate the values for each variable. Add a title to each table you produce. - surveyyear = year of the survey - surveyquarter = quarter of the survey - surveymonth = month of the survey d. Create a character variable, surveytime, a variable showing survey timing as year+month (e.g. 201203 for March 7th, 2012). Display the first 10 observations. Add a title. ECON 62052/72052 Data Preparation for Academic Research Jooyoun Park 23 TASK 2 (rate 3): Organize/simplify variable values a. citizen is a variable showing the citizenship status of the survey respondent. i. Display the value label originally assigned to citizen. ii. Simplify citizen to have the following values. citizen = 1 Citizen, native 2 Citizen, foreign born 3 non-citizen the rest = missing iii. Create a value label named citizen_lbl based on the values above and assign it on citizen. iv. Tabulate citizen. Add a title. b. educyrs is a variable showing the education attainment in years/grades. Use this variable to construct edudegree, a variable capturing the degree attainment. i. Display the value label assigned to educyrs. ii. Create edudegree to have the following values. 1 Less than high school : 1st - 11th grade 2 High school diploma or eqv. : 12th grade 3 Some college : some years in college, but no degree 4 Bachelor’s degree : Bachelor’s degree 5 Post-graduate degree : anything beyond Bachelor’s degree iii. Create a value label named edudegree_lbl based on the values above and assign it on edudegree. iv. Tabulate edudegree. Add a title. TASK 3 (rate 2): Clean up the errors. sex should be a numeric variable that should take the following values: 1 male 0 female i. Fix the errors and convert it to a numeric variable. ii. Define a value label, sex_lbl, and assign it to sex. iii. Tabulate sex to display the value label. Add a title. ECON 62052/72052 Data Preparation for Academic Research Jooyoun Park 24 TASK 4 (rate 4): Clean up the errors. region s is currently coded as a character variable that takes the values of Northeast, Midwest, South, or West. Refer to the codebook to see which states belong to which region. i. Fix the errors as much as you can. ii. Convert region to a numeric variable that takes the following values: 1 Northeast 2 Midwest 3 South 4 West iii. Define a value label named region_lbl based on the values above. Assign it on region. iv. Display the value label region_lbl. v. Tabulate region to display the value label. Add a title. vi. Produce the following summary statistics: - Each region as a share of the entire sample - Each region as a share of the sample surveyed in 2013 - Each region as a share of the sample each survey year - Share of male for each region - Share of male for each region+year combination
There are no answers to this question.
Login to buy an answer or post yours. You can also vote on other others

Get Help With a similar task to - SAS programmer in Economics class

Related Questions

Similar orders to SAS programmer in Economics class
Popular Services
Tutlance Experts offer help in a wide range of topics. Here are some of our top services: