For the exercises in this chapter, weโll load the NSFG female respondent file, which contains one row for each female respondent. Instructions for downloading the data and the codebook are in the notebook for this chapter.
Weโll start with totincr, which records the total income for the respondentโs family, encoded with a value from 1 to 14. You can read the codebook for the respondent file to see what income level each value represents.
Make a frequency table of the parity column, which records the number of children each respondent has borne. How would you describe the shape of this distribution?
Letโs investigate whether women with higher or lower income bear more children. Use the query method to select the respondents with the highest income (level 14). Plot the frequency table of parity for just the high income respondents.