You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello Matt, thank you this package is really helpful.
I was wondering if you would be able to help with something. I was trying to use this package to download the weekly earnings data (variable name "PRERNWA") , but I get following error: Error: Census API request failed [400]: Bad Request
However, I am able to download other variables such as type of person, age, sex, education attainment, etc. I was wondering how I could download weekly warnings with your package? Thank you for your help!
-Emma
The text was updated successfully, but these errors were encountered:
Hi Emma, sure thing! Glad you are finding the package helpful. And hmm okay, based on what you are describing this sounds like the sort of thing that comes down to the year of data you are requesting/the name of the variable in that year. According to these footnotes for the basic monthly CPS (footnote 16 in particular):
March 2021 - The following variables had their prefixes changed from 'PE' or 'PR' to 'PT' in order to reflect that they are top-coded: PTIO1OCD, PTIO2OCD, PTERNHLY, PTERNWA, PTERN2, & PTERNH1C.
So that explains the change from prernwa to pternwa. But then there is also the fact that, at least in the context of the Census API, that change seems to be reflected in years prior to 2021 as well. (Just checked that for 2020 using MDAT.) Which differs from what you'd expect based on the data dictionary for the 2020 basic monthly CPS data files. So based on that I think changing prernwa to pternwa in your request should resolve the error.
Hello Matt, thank you this package is really helpful.
I was wondering if you would be able to help with something. I was trying to use this package to download the weekly earnings data (variable name "PRERNWA") , but I get following error: Error: Census API request failed [400]: Bad Request
However, I am able to download other variables such as type of person, age, sex, education attainment, etc. I was wondering how I could download weekly warnings with your package? Thank you for your help!
-Emma
The text was updated successfully, but these errors were encountered: