-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #111 from andersonfrailey/sasfiles
Add SAS files to make CPS
- Loading branch information
Showing
18 changed files
with
33,245 additions
and
0 deletions.
There are no files selected for viewing
6,787 changes: 6,787 additions & 0 deletions
6,787
cps_data/State Database - 2015/CPS Files/March 2013/cpsmar2013r.sas
Large diffs are not rendered by default.
Oops, something went wrong.
6,782 changes: 6,782 additions & 0 deletions
6,782
cps_data/State Database - 2015/CPS Files/March 2014/cpsmar2014.sas
Large diffs are not rendered by default.
Oops, something went wrong.
6,800 changes: 6,800 additions & 0 deletions
6,800
cps_data/State Database - 2015/CPS Files/March 2015/cpsmar2015.sas
Large diffs are not rendered by default.
Oops, something went wrong.
57 changes: 57 additions & 0 deletions
57
cps_data/State Database - 2015/CPS Tax Units/2013/Programs/AdjustFILSTV4_2013.sas
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
2,232
cps_data/State Database - 2015/CPS Tax Units/2013/Programs/CPS-RETS13V5.SAS
Large diffs are not rendered by default.
Oops, something went wrong.
57 changes: 57 additions & 0 deletions
57
cps_data/State Database - 2015/CPS Tax Units/2014/Programs/AdjustFILSTV4_2014.sas
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
*/ |
Oops, something went wrong.