Skip to content

Commit

Permalink
Merge pull request #111 from andersonfrailey/sasfiles
Browse files Browse the repository at this point in the history
Add SAS files to make CPS
  • Loading branch information
martinholmer authored Jul 20, 2017
2 parents 2b8f238 + dbef5b0 commit 85d9101
Show file tree
Hide file tree
Showing 18 changed files with 33,245 additions and 0 deletions.
6,787 changes: 6,787 additions & 0 deletions cps_data/State Database - 2015/CPS Files/March 2013/cpsmar2013r.sas

Large diffs are not rendered by default.

6,782 changes: 6,782 additions & 0 deletions cps_data/State Database - 2015/CPS Files/March 2014/cpsmar2014.sas

Large diffs are not rendered by default.

6,800 changes: 6,800 additions & 0 deletions cps_data/State Database - 2015/CPS Files/March 2015/cpsmar2015.sas

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
*******************************************************************************************;
*** ***;
*** ***;
*** State Modeling Project ***;
*** ***;
*** ***;
*******************************************************************************************;
OPTIONS PAGESIZE=59 LINESIZE=160 CENTER ; /* LANDSCAPE */
*****
PRODUCTION FILE
*****;
LIBNAME EXTRACT "C:\Users\anderson.frailey\Documents\State Database - 2015\CPS Tax Units\2013\EXTRACTS\";
*****
PROCESS THE PRODUCTION FILE
NOTE: WE USE A TEMPORARY DATA SET FIRST UNTIL
THE SOI CONTROL TOTAL IS REACHED.
17-SEP-2015
*****;
DATA EXTRACT.CPSRETS2013(COMPRESS=YES);
SET EXTRACT.CPSRETS2013;
RETAIN ISEED1 21679 ISEED2 665533 ;
*****
Adjust FILST Variable
*****;
IF( FILST EQ 0.) THEN
DO;
IF( WAS GT 0.0 )THEN
DO;
CALL RANUNI( ISEED1 , Z1 );
IF( Z1 LE 0.8400 )THEN FILST = 1;
END;
ELSE
DO;
CALL RANUNI( ISEED2 , Z2 );
IF( Z2 LE 0.5400 )THEN FILST = 1;
END;
END;
RUN;
PROC MEANS N SUMWGT MIN MAX SUM DATA=EXTRACT.CPSRETS2013;
VAR FILST;
WEIGHT WT;
TITLE1 "Adjustment of Filing Status Variable to Match SOI Totals";
RUN;
/*
*****
CREATE FILER AND NON-FILER EXTRACTS
*****;
DATA EXTRACT.CPSRETS;
SET EXTRACT.CPSRETS2015;
IF( FILST EQ 1 );
RUN;
DATA EXTRACT.CPSNONF;
SET EXTRACT.CPSRETS2015;
IF( FILST EQ 0 );
RUN;
*/
2,232 changes: 2,232 additions & 0 deletions cps_data/State Database - 2015/CPS Tax Units/2013/Programs/CPS-RETS13V5.SAS

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
*******************************************************************************************;
*** ***;
*** ***;
*** State Modeling Project ***;
*** ***;
*** ***;
*******************************************************************************************;
OPTIONS PAGESIZE=59 LINESIZE=160 CENTER ; /* LANDSCAPE */
*****
PRODUCTION FILE
*****;
LIBNAME EXTRACT "C:\Users\anderson.frailey\Documents\State Database - 2015\CPS Tax Units\2014\EXTRACTS\";
*****
PROCESS THE PRODUCTION FILE
NOTE: WE USE A TEMPORARY DATA SET FIRST UNTIL
THE SOI CONTROL TOTAL IS REACHED.
17-SEP-2015
*****;
DATA EXTRACT.CPSRETS2014(COMPRESS=YES);
SET EXTRACT.CPSRETS2014;
RETAIN ISEED1 21679 ISEED2 665533 ;
*****
Adjust FILST Variable
*****;
IF( FILST EQ 0.) THEN
DO;
IF( WAS GT 0.0 )THEN
DO;
CALL RANUNI( ISEED1 , Z1 );
IF( Z1 LE 0.8400 )THEN FILST = 1;
END;
ELSE
DO;
CALL RANUNI( ISEED2 , Z2 );
IF( Z2 LE 0.5400 )THEN FILST = 1;
END;
END;
RUN;
PROC MEANS N SUMWGT MIN MAX SUM DATA=EXTRACT.CPSRETS2014;
VAR FILST;
WEIGHT WT;
TITLE1 "Adjustment of Filing Status Variable to Match SOI Totals";
RUN;
/*
*****
CREATE FILER AND NON-FILER EXTRACTS
*****;
DATA EXTRACT.CPSRETS;
SET EXTRACT.CPSRETS2015;
IF( FILST EQ 1 );
RUN;
DATA EXTRACT.CPSNONF;
SET EXTRACT.CPSRETS2015;
IF( FILST EQ 0 );
RUN;
*/
Loading

0 comments on commit 85d9101

Please sign in to comment.