Program Library

The following programs have been provided to help you get started using the HILDA Survey data.

Programs provided by the HILDA Survey team

HILDA tax-benefit model

This Stata program implements the HILDA tax-benefit model, which the HILDA survey team uses to estimate income taxes and family benefits. The program code makes obvious the assumptions, parameters and formulas of this model. User may want to use the program to recalculate taxes and family benefits themselves.

The program works with both the general and the restricted release of HILDA. Note that, for some observations, the program will produce values that are slightly different from the official values when it is used with the general release. This is because the general release provides less precise information on persons’ dates of birth and because some income variables of the general release are top-coded.

Matching files

These programs show how to match household and responding person files for Wave 1. Program 3 also matches enumerated files.

Adding partner variables

Some users may want to include variables for a respondent’s partner in their analyses. These programs show how to utilise the partner’s cross-wave identifier _hhpxid to add partner variables onto the responding person file.

Creating longitudinal files

User may want to create a balanced longitudinal file in a number of ways.

  1. Wide file of responding persons: A dataset of people who responded in all waves. Variables for each wave are placed next to each other, creating one row of data per person.
  2. Wide file of enumerated persons: A dataset of people living in responding households in all waves. Variables for each wave are placed next to each other.
  3. Long file or responding persons: A dataset of people who responded in all waves. The information for each wave is stacked together, creating a separate row of data for each wave of information for each person.
  4. Long file of enumerated persons: A dataset of people living in responding households in all waves. The information for each wave is stacked together.

Most users will probably want to restrict the files to only include respondents or people from responding households. A few users may also want to add people who have died or moved out of scope (depending on the research question they are answering).

The following programs show how to create balanced long longitudinal files of responding persons.

The wide files are created by matching the responding or enumerated files for each wave together using xwaveid . An alternative way to strip the first letter from a variable name is demonstrated in this macro:

Some users may want to create an unbalanced panel – where you take all respondents or enumerated persons available at each wave (not just those that consistently respond or are consistently in responding households).

The following programs show how to create wide longitudinal files.

The longitudinal weights on the enumerated and responding persons files are for the full, balanced panel of respondents and enumerated persons from Wave 1 (i.e., across the first two, three, ... sixteen waves).

If you are constructing a balanced panel with different specifications, you should find a suitable weight in the longitudinal weights file. Out of scopes (deaths and moves overseas) are treated as acceptable outcomes, so these people have weights applied as well.

Programs provided by users of the HILDA Survey data

Disclaimer

The HILDA Survey team does not take any responsibility for the correctness of these programs.

Contributions

Users of the HILDA Survey data may contribute code to this library if they believe it may be beneficial to other users. To contribute, please send your code to hilda-inquiries@unimelb.edu.au.