Below are the percentages of females aged 45 to 64 in the total female labor force from 1958 to 1968 in the United States. The data are presented in two forms. The first is a form that can be read by R and the second is a form that can be read by SAS. For the R version, simply copy and paste the code into Notepad (or other text editor), and then save the file in your R_Working_Directory as a txt file. Your R program for this assignment will ask you to select a data set, and you will then select this file when prompted. To use the SAS version, you will need to copy and paste the data directly into your program in the SAS editor.
# FIRST IS THE R VERSION
# DATA SET... MATURE FEMALE WORKERS AGED 45-64
year maturefemaleworkerspercent
1958 10.8
1959 11.2
1960 11.5
1961 11.7
1962 11.7
1963 11.9
1964 12.0
1965 12.1
1966 12.2
1967 12.2
1968 12.2
* BELOW IS THE SAS VERSION;
************************************************************
*** DATA SET... MATURE FEMALE WORKERS AGED 45-64 *****
************************************************************;
DATA MFEMWORK;
INPUT YEAR 1-4 MATWOMEN 6-10;
CARDS;
1958 10.8
1959 11.2
1960 11.5
1961 11.7
1962 11.7
1963 11.9
1964 12.0
1965 12.1
1966 12.2
1967 12.2
1968 12.2
;
DATA MFEMWORK;SET;
LMATWOM=LAG(MATWOMEN);