Below are percentages of female workers in the US workforce from 1921 to 1970 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..... FEMALE WORKERS 1948-1968 IN THE USA
year femaleworkers
1948 28.0
1949 28.3
1950 28.8
1951 29.3
1952 29.4
1953 29.2
1954 29.4
1955 30.2
1956 31.0
1957 31.2
1958 31.5
1959 31.7
1960 32.3
1961 32.6
1962 32.7
1963 33.2
1964 33.6
1965 34.0
1966 34.6
1967 35.1
1968 35.5

 

* BELOW IS THE SAS VERSION;

************************************************************
*** DATA SET..... FEMALE WORKERS 1948-1968 *****************
************************************************************;

DATA FEMWORK;
INPUT YEAR 1-4 FEMALES 6-10;
CARDS;
1948 28.0
1949 28.3
1950 28.8
1951 29.3
1952 29.4
1953 29.2
1954 29.4
1955 30.2
1956 31.0
1957 31.2
1958 31.5
1959 31.7
1960 32.3
1961 32.6
1962 32.7
1963 33.2
1964 33.6
1965 34.0
1966 34.6
1967 35.1
1968 35.5
;
DATA FEMWORK;SET;
LFEMALES=LAG(FEMALES);