<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://acsdatacommunity.prb.org/utility/feedstylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>2019 ACS: Subject Tables and Data Profile Tables in R using tidycensus</title><link>https://acsdatacommunity.prb.org/discussion-forum/f/forum/709/2019-acs-subject-tables-and-data-profile-tables-in-r-using-tidycensus</link><description> Hey all - I am working on project for my university. I am looking at Census Tract level data for a municipality, and leveraging 2019 ACS data in R using the tidycensus package. 
 Some examples of the metrics I want to analyze are Unemployment Rate, Percent</description><dc:language>en-US</dc:language><generator>Telligent Community 11</generator><item><title>RE: 2019 ACS: Subject Tables and Data Profile Tables in R using tidycensus</title><link>https://acsdatacommunity.prb.org/thread/1720?ContentTypeID=1</link><pubDate>Tue, 16 Mar 2021 17:19:52 GMT</pubDate><guid isPermaLink="false">3e86467a-1916-4e54-a922-55a4945229ec:fdfb93fc-7c07-4ab9-a84e-7225c5b5676e</guid><dc:creator>georgeking371</dc:creator><description>&lt;p&gt;Thank you Matt &amp;amp; Matt! This is super, super helpful.&lt;/p&gt;
&lt;p&gt;Do you (or others) have thoughts on whether these profile or subject tables are preferable to analyze percentages and rates? Or should I build my own metrics using the Base tables?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I guess they ultimately should yield the same (or very similar) results.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 2019 ACS: Subject Tables and Data Profile Tables in R using tidycensus</title><link>https://acsdatacommunity.prb.org/thread/1719?ContentTypeID=1</link><pubDate>Tue, 16 Mar 2021 15:48:24 GMT</pubDate><guid isPermaLink="false">3e86467a-1916-4e54-a922-55a4945229ec:e6633360-f674-4b9a-b920-532299d77b12</guid><dc:creator>Matt Schroeder</dc:creator><description>&lt;p&gt;Hi, George.&amp;nbsp;Tacking this on to Matt H&amp;#39;s reply, `tidycensus::load_variables()` will give you only the combined labels, which can be difficult to sift through to find what you&amp;#39;re looking for. For example,&amp;nbsp;S0501_C01_088 has the label &amp;quot;Estimate!!Total!!EARNINGS IN THE PAST 12 MONTHS (IN 2019 INFLATION-ADJUSTED DOLLARS) FOR FULL-TIME, YEAR-ROUND WORKERS!!Population 16 years and over with earnings!!Median earnings (dollars) for full-time, year-round workers:!!Female&amp;quot;.&lt;/p&gt;
&lt;p&gt;I have an easier time seeing the hierarchy in the tables when I split up the label into separate parts:&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;&lt;em&gt;load_variables(year = 2019, dataset = &amp;quot;acs5/subject&amp;quot;) %&amp;gt;%&lt;/em&gt;&lt;/p&gt;
&lt;p style="padding-left:60px;"&gt;&lt;em&gt;separate(label, into = paste0(&amp;quot;label&amp;quot;, 1:9), sep = &amp;quot;!!&amp;quot;, fill = &amp;quot;right&amp;quot;, remove = FALSE)&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;That will break apart the label components and give you new variables: label1 would be &amp;quot;Estimate&amp;quot;, label2 would be &amp;quot;Total&amp;quot;, ..., and label6 would be &amp;quot;Female&amp;quot;. Then it&amp;#39;s easier to filter on different dimensions of each table.&lt;/p&gt;
&lt;p&gt;Something else that may be helpful: A&amp;nbsp;given variable name&amp;nbsp;in one year may represent something completely different in another year (unlike in the detailed tables, which are often replaced by tables with a different name when categories change substantially). And even when the variable names are the same from year to year, the format of the labels sometimes does.&amp;nbsp;I do like the subject tables for getting more accurate margins of error for certain fields (rather than using the formulas for calculating them ourselves), but it can be hard to grab them over time.&lt;/p&gt;
&lt;p&gt;Good luck!&lt;/p&gt;
&lt;p&gt;--Matt&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 2019 ACS: Subject Tables and Data Profile Tables in R using tidycensus</title><link>https://acsdatacommunity.prb.org/thread/1717?ContentTypeID=1</link><pubDate>Tue, 16 Mar 2021 15:19:00 GMT</pubDate><guid isPermaLink="false">3e86467a-1916-4e54-a922-55a4945229ec:c762da79-40e4-4cb8-8c6c-8738cc125ea3</guid><dc:creator>Matt Herman</dc:creator><description>&lt;p&gt;You can get both subject and data profile tables using tidycensus. If you want to explore which variables are available, you need to set the dataset argument in load_variables to profile or subject. Here for example you can see variables related to unemployment in the data profile tables:&lt;/p&gt;
&lt;p&gt;library(tidycensus)&lt;br /&gt;library(tidyverse)&lt;/p&gt;
&lt;p&gt;load_variables(year = 2019, dataset = &amp;quot;acs5/profile&amp;quot;) %&amp;gt;% &lt;br /&gt;&amp;nbsp; filter(str_detect(label, &amp;quot;Unemploy&amp;quot;))&lt;/p&gt;
&lt;p&gt;For subject tables set dataset to &amp;quot;acs5/subject&amp;quot;.&lt;/p&gt;
&lt;p&gt;Hope this helps!&lt;br /&gt;Matt&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>