Submit the assignment by the due date via canvas. This assignment may be submitted up to 24 hours late for a 5 point reduction.
All files read, sourced, or referred to within scripts should be assumed to be in the same working directory (./
).
Your code should be clearly written and it should be possible to assess it by reading it. Use appropriate variable names and comments. Your style will be graded using the style rubric [10 points].
Some of these exercises may require you to use commands or techniques that were not covered in class or in the course notes. You can use the web as needed to identify appropriate approaches. Part of the purpose of these exercises is for you to learn to be resourceful and self sufficient. Questions are welcome at all times, but please make an attempt to locate relevant information yourself first.
Except where explicitly instructed otherwise, you should do this assignment entirely in SAS.
Peer review: There will not be peer review for this assignment.
In addition to the usual write up, submit just your sas scripts (.sas), log files (.log), the ouptut/listings file (.lst) for question 1. You may use screenshots from the lst file or SAS output to display your results for question 1. For questions 2 and 3 parts a and b, submit csv files with the estimates and standard errors.
Repeat question 1 from problem set 4, originally question 2 part d of problem set 2.
This question asks you to revisit problem set 2, question 1 parts a, c-d. For this problem set, it is sufficient to compute the required results, including standard errors, and export them to csv. You do not need to create tables or graphs.
Use the 2015 RECS survey data available here.
In this question use SAS procedures and data steps, avoiding proc SQL which will be used in the next question.
[5 pts] First, use proc transpose
to reshape the repliacte weights to a longer format. Save these to disk as brrwt_long.sas7bdat
using a two part filename.
[10 pts] Estiamte the national average home temperature at night, among homes that use space heating.
[15 pts] Next, by census division, estimate the average winter home temperatures at night, during the day with someone home, and during the day with no one home (when applicable).
Repeat the second two parts (b and c) of question 2 above, using proc SQL.