Data about each month (SAS)

A SAS code to generate information about each month such as the number of days in the month, week days, hours, work hours, etc. using intck and intnx function. It’s also a good example of using a DATA step to generate a data set without an input data set (i.e., no SET or MERGE statements).

List of zip codes and cities affected by Hurricane Sandy

The following is a list of states, counties, cities, and zip codes affected by Hurricane Sandy. The counties were pulled from the FEMA web site on November 5 and limited to a small subset designated Individual Assistance (apparently, the areas with the most damage). Then the zip codes were added by merging with an up-to-date…

List of counties and zip codes affected by Hurricane Irene

From the FEMA.gov web site, this is a consolidated list of counties and zip codes in the United States affected by Hurricane Irene. Counties Virginia has many “independent cities” which are technically not part of any county, so the city names are listed instead. Zip codes There is not a precise mapping between counties and…

Programmatically download monthly economic indicators

This SAS code programmatically downloads monthly economic indicators from FRED, and merges multiple time series into a single data set for convenient analysis. FRED (Federal Reserve Economic Data) is an excellent resource from the Federal Reserve Bank of St. Louis: it’s easy to find, graph, download, and process data sets online. In our case, though,…

Zip code list of US military installations

This is an original list of all zip codes which are military installations in the United States of America. Installations include all branches of the US Armed Forces: Army, Coast Guard, Marine Corps (USMC), Navy, and Air Force. Every address in these zip codes should be a military address. I compiled it using automated and…