Below are the percentages of married females in the female labor force from 1948 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..... MARRIED FEMALE WORKERS 1948-1968
year marriedfemaleworkerspercent
1948 23.1
1949 23.6
1950 24.8
1951 26.7
1952 26.8
1953 27.7
1954 28.1
1955 29.4
1956 30.2
1957 30.8
1958 31.4
1959 32.3
1960 31.7
1961 34.0
1962 33.7
1963 34.6
1964 35.6
1965 35.7
1966 36.5
1967 37.8
1968 39.1

 

* BELOW IS THE SAS VERSION;

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

DATA MFEMWORK;
INPUT YEAR 1-4 MARRIED 6-10;
CARDS;
1948 23.1
1949 23.6
1950 24.8
1951 26.7
1952 26.8
1953 27.7
1954 28.1
1955 29.4
1956 30.2
1957 30.8
1958 31.4
1959 32.3
1960 31.7
1961 34.0
1962 33.7
1963 34.6
1964 35.6
1965 35.7
1966 36.5
1967 37.8
1968 39.1
;
DATA MFEMWORK;SET;
LMARRIED=LAG(MARRIED);