five

Current Population Survey (CPS)

收藏
DataCite Commons2025-05-12 更新2025-05-17 收录
下载链接:
https://dataverse.harvard.edu/citation?persistentId=doi:10.7910/DVN/AK4FDD
下载链接
链接失效反馈
官方服务:
资源简介:
<h3 class="post-title entry-title" itemprop="name"> analyze the current population survey (cps) annual social and economic supplement (asec) with r </h3> the annual march cps-asec has been supplying the statistics for the census bureau's <a href="http://www.census.gov/prod/2012pubs/p60-243.pdf">report on income, poverty, and health insurance coverage</a> since 1948. wow. <a href="http://www.census.gov/">the us census bureau</a> and <a href="http://www.bls.gov/">the bureau of labor statistics ( bls)</a> tag-team on this one. until <a href="http://www.census.gov/acs/www/">the american community survey (acs)</a> hit the scene in the early aughts (2000s), the current population survey had the largest sample size of all the annual general demographic data sets outside of the decennial census - about two hundred thousand respondents. this provides enough sample to conduct state- and a few large metro area-level analyses. your sample size will vanish if you start investigating subgroups b y state - consider pooling multiple years. county-level is a no-no. <br /> <br /> despite the american community survey's larger size, the cps-asec contains many more variables related to employment, sources of income, and insurance - and can be <a href="http://data.bls.gov/timeseries/LNU04000000?years_option=all_years&periods_option=specific_periods&periods=Annual+Data">trended back to harry truman's presidency</a>. aside from questions specifically asked about an annual experience (like income), many of the questions in this march data set should be t reated as point-in-time statistics. cps-asec generalizes to the united states non-institutional, non-active duty military population. <br /> <br /> <a href="http://www.nber.org/">the national bureau of economic research (nber)</a> provides <a href="http://data.nber.org/data/cps_progs.html">sas, spss, and stata importation scripts</a> to create a rectangular file (rectangular data means only person-level records; household- and family-level information gets attached to each person). to import these files into r, <a href="https://github.com/ajdamico/SAScii/blob/master/R/parse.SAScii.R">the parse.SAScii function</a> uses nber's sas code to determine how to import the fixed-width file, then <a href="http://cran.r-project.org/web/packages/RSQLite/index.html">RSQLite</a> to put everything into a schnazzy database. you can try reading through <a href="http://data.nber.org/data/progs/cps/cpsmar12.sas">the nber march 2012 sas importation code</a> yourself, but it's a bit of a proc freak show. this new github repository contains three scripts:<br /> <br /> <b>2005-2012 asec - download all microdata.R</b><br /> <ul> <li>down load the fixed-width file containing household, family, and person records </li> <li>import by separating this file into three tables, then merge 'em together at the person-level</li> <li>download the fixed-width file containing the person-level replicate weights</li> <li>merge the rectangular person-level file with the replicate weights, then store it in a sql database</li> <li>create a new variable - one - in the data table</li> </ul> <br /> <b>2012 asec - analysis examples.R</b><br /> <ul> <li>connect to the sql database created by the 'download all microdata' progr am</li> <li>create the complex sample survey object, using the replicate weights</li> <li>perform a boatload of analysis examples</li> </ul> <br /> <b>replicate census estimates - 2011.R</b><br /> <ul> <li>connect to the sql database created by the 'download all microdata' program</li> <li>create the complex sample survey object, using the replicate weights</li> <li>match the sas output shown in the png file below</li> </ul> <br /> <b>2011 asec replicate weight sas output.png</b><br /> <ul> <li> statistic and standard error generated from the replicate-weighted example sas script contained in this census-provided <a href="http://smpbff2.dsd.census.gov/pub/cps/march/Use_of_the_Public_Use_Replicate_Weight_File_final_PR_2010.doc">person replicate weights usage instructions document</a>.</li> </ul> <br /> <br /> <a href="https://github.com/ajdamico/usgsd/tree/master/Current%20Population%20Survey">click here to view these three scripts</a><br /> <br /> <br /> <br /> for more detail about the current population survey - annual social and economic supplement (cps-asec), visit:<br /> <ul> <li><a href="http://www .census.gov/cps/">the census bureau's current population survey page </a></li> <li><a href="http://www.bls.gov/cps/">the bureau of labor statistics' current population survey page</a></li> <li><a href="http://en.wikipedia.org/wiki/Current_Population_Survey">the current population survey's wikipedia article</a></li> </ul> <br /> notes:<br /> <br /> interviews are conducted in march about experiences during the previous year. the file labeled 2012 includes information (income, work experience, health insurance) pertaining to 2011. when you use the current populat ion survey to talk about america, subract a year from the data file name. <br /> <br /> as of the 2010 file (the interview focusing on america during 2009), the cps-asec contains exciting new medical out-of-pocket spending variables most useful for <a href="https://www.census.gov/hhes/povmeas/methodology/supplemental/research.html">supplemental (medical spending-adjusted) poverty research</a>.<br /> <br /> <br /> confidential to sas, spss, stata, sudaan users: why are you still rubbing two sticks together after we've invented the butane lighter? time to transition to r. :D
提供机构:
Harvard Dataverse
创建时间:
2019-02-13
5,000+
优质数据集
54 个
任务类型
进入经典数据集
二维码
社区交流群

面向社区/商业的数据集话题

二维码
科研交流群

面向高校/科研机构的开源数据集话题

数据驱动未来

携手共赢发展

商业合作