Example 2 - Multi-variable recode for microdata

Other features illustrated: Using percent buttons, sorting on a column, creating a timeseries graph from a table cell(s), creating a table that averages across time, creating a table that shows data over time, turning off/on Automatic Totals, cross-variable explosion, nesting vs. not nesting

Background: In microdata datasets, you can create new variables with values that are based on the combinations of multiple variables' values.

Goals: 1) Determine the percentage of people with and without health care coverage by age groups. 2) Examine health insurance coverage numbers over time.

Steps:
Goal 1

  1. Open the Ferrett Session File (or saved data basket) named cps_mar_healthins_multi_databasket.fsf .
  2. Go to the Step 2 tab to view the variables in the data basket. There are five health insurance variables that are required to determine if someone has some sort of health insurance coverage:
    For a person to have any coverage, the answer to any one of these must be "Yes" and for a person to NOT have coverage, the answer to ALL of these must be "No." We can create a multi-variable recode that does this for us so that we have one new variable that shows whether a person has coverage or not.
  3. Highlight the "D_RCD2 Health Insurance Coverage" variable and click on the "Modify" button on the right-hand side. This brings up the multi-variable recode window and shows us the definition of this variable. Notice that this formula is much more complicated than the multi-variable recode definition for the aggregate data in Example 1. See the image below:
    Screenshot of multi-variable recode for microdata variables:
    multi-variable-microdata.JPG
  4. Close the multi-variable recode window by hitting the "Cancel" button at the bottom right.
  5. We will now create a new multi-variable recode defined the same way.
  6. Press the "Make a Table" button. This brings up the DataFerrett spreadsheet window.
  7. Drop the "RECODE3 Age groups" variable into column 1 to define the rows.
  8. Drop our new dynamic recode into C2,R1 to define the columns and hit the "Go Get Data" button.
  9. Show the percentages of each age group covered and not covered by clicking on the "Show % of first data column" button in the toolbar.
  10. Sort the results by column 4 - not covered by health insurance - to see which age groups have the highest and lowest percentages.
  11. Turn off sorting and turn off the percentages.
Goal 2
  1. Create a timeseries graph - highlight four cells in column 4 - not covered, 4 age groups - then hit the Timeseries Graph button in the toolbar. This automatically creates a timeseries graph of the same measure going back in time as far as possible, up to 12 time periods.
  2. Show the same table, but show the average over 5 years, and add the SEX variable to the table.
  3. Create a table that shows the health insurance coverage for EACH of the 5 available years.
Additional Table Manipulation