-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is there a reference mapping the sample name code to the sample dataset name? #53
Comments
Hi @hessakh, if you're referring to a mapping between the sample codes used by the IPUMS API and the more human-readable names of those samples, you can use The IPUMS API doesn’t yet support more extensive metadata access for microdata collections, but this functionality is slated to be added in the future. |
Thank you! Do you by any chance know where the ACS5 2021 sample falls under? |
For 2021 ACS 5-year microdata, you'll find the sample in IPUMS USA. Take a look at the IPUMS USA website for more details about the data it provides. If you need additional help identifying data for your needs, check out the IPUMS Forum. |
Thank you, I know I can find it there. But I would like the code name it’s under to use it in the define_extract_usa() function. Is it not possible to access this data from the R library?
… On 26 Sep 2023, at 3:07 PM, Finn Roberts ***@***.***> wrote:
For 2021 ACS 5-year microdata, you'll find the sample in IPUMS USA. Take a look at the IPUMS USA website <https://usa.ipums.org/usa/> for more details about the data it provides.
If you need additional help identifying data for your needs, check out the IPUMS Forum <https://forum.ipums.org/>.
—
Reply to this email directly, view it on GitHub <#53 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AITKIUIKUTAWXTMGYRDG6B3X4MRX7ANCNFSM6AAAAAA5IA3R7M>.
You are receiving this because you were mentioned.
|
As mentioned above, you can view a listing of all sample codes for IPUMS USA by using samples <- get_sample_info("usa")
samples
#> # A tibble: 150 × 2
#> name description
#> <chr> <chr>
#> 1 us1850a 1850 1%
#> 2 us1850b 1850 100% sample (July 2015)
#> 3 us1850c 1850 100% sample (Revised December 2017)
#> 4 us1860a 1860 1%
#> 5 us1860b 1860 1% sample with black oversample
#> 6 us1860c 1860 100% sample (Jan 2019)
#> 7 us1870a 1870 1%
#> 8 us1870b 1870 1% sample with black oversample
#> 9 us1870c 1870 100% sample (Jan 2019)
#> 10 us1880a 1880 1%
#> # ℹ 140 more rows
#> # ℹ Use `print(n = ...)` to see more rows The If you're looking for 2021 ACS data, look for a description that includes those keywords. You can do this manually or by filtering through the table: samples[grepl("2021 ACS", samples$description), ]
#> # A tibble: 1 × 2
#> name description
#> <chr> <chr>
#> 1 us2021a 2021 ACS So, you would use Note that this assumes you have set up your API key and are registered for IPUMS USA. For more about setting up your API key, see the corresponding section in the Introduction to the API. |
Ok I see. I used
so the code name I was looking for is 'us2021c' for 5-year ACS 2021. |
Is there a reference mapping the sample name code to the sample dataset name? I don't see it in the vignette. Thank you!
The text was updated successfully, but these errors were encountered: