tidycensus icon indicating copy to clipboard operation
tidycensus copied to clipboard

get_decennial gives incorrect values for 2000 aian and aianprofile

Open resistor4u opened this issue 10 months ago • 0 comments

Run the code below:

aian2000 <- get_decennial(geography="state",
                          variables=c("PCT001001"),
                          pop_group="all", pop_group_label=T,
                          year=2000,
                          sumfile="aian",
                          show_call=T,
                          output="wide")
aianpro2000 <- get_decennial(geography="state",
                             #variables=c("AIANHH","DP1_C0","POPGROUP"),
                             variables=c("AIANHH","DP1_C0"),
                             pop_group="all", pop_group_label=T,
                             year=2000,
                             sumfile="aianprofile",
                             show_call=T,
                             output="wide")

Both datasets have POPGROUP variables and POPGROUP_LABEL attributes, according to the API (https://api.census.gov/data/2000/dec/aian/variables/POPGROUP.json and https://api.census.gov/data/2000/dec/aianprofile/variables/POPGROUP.json). One of these groups is "3A5" with label "Kaibab Band of Paiute Indians of the Kaibab Indian Reservation alone (G29)" and "8U3" with label "Kaibab Band of Paiute Indians of the Kaibab Indian Reservation alone or in any combination (G29) and (100-299) or (300, A01-Z99) or (400-999)".

These groups (and several others) do not appear in the results above nor in the API call. Which makes me think it's not a tidycensus problem, but why are they not being reported? There were well over 100 ppl living at Kaibab in 2000, so I would be very surprised if there were not over 100 ppl who identified as Kaibab Paiute in the 2000 census and I don't think the 2000 reporting threshold was higher than 100?

Since the groups aren't in the results of the API call, the issue isn't likely with tidycensus. Is this a census reporting problem, or am I selecting inappropriate variables, or...?

resistor4u avatar Apr 24 '24 16:04 resistor4u