Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Obtaining variables ID for ACS data

    Hi,
    Using the code below, I am trying to retrieve the microdata for the 1-year 2019 ACS data for my variables of interest. It looks like I need variables ID to be able to obtain my data of interest. I wonder how the ID of the variables can be obtained.
    Thanks,
    NM

    getcensus SEX DOUT DEAR AGEP DIS RAC1P SCHL DEYE PWGTP DREM DPHY DDRS MAR HISP, year(2019)geography(puma) clear

  • #2
    The output of help getcensus (a community-contributed command available from SSC) tells us
    Code:
        Users rarely know offhand the variable ID or table ID of the data points they would
        like to retrieve. getcensus catalog allows users to access the API data
        dictionaries. For instance, getcensus catalog, product(ST) will load into memory a
        dataset containing, for every variable in the subject tables ("ST"): the variable
        ID, the variable's description, and the name of the variable's table.
    
        If you are new to American Community Survey data, the Census Bureau's handbook
        Understanding and Using American Community Survey Data: What All Data Users Need to
        Know is the best place to start.

    Comment

    Working...
    X