analyze the public libraries survey (pls) with r

[This article was first published on asdfree by anthony damico, and kindly contributed to R-bloggers]. (You can report issue about the content on this page here)
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.

each and every year, the institute of museum and library services coaxes librarians around the country to put down their handheld “shhhh…” sign and fill out a detailed online questionnaire about their central library, branch, even bookmobile.  the public libraries survey (pls) is actually a census: nearly every public library in the nation responds annually.  that microdata is waiting for you to check it out, no membership required.  the american library association estimates well over one hundred thousand libraries in the country, but less than twenty thousand of those participate in this survey since most libraries in the nation are enveloped by some sort of school system.

laughably easy files to work with, these microdata do not require the r survey package or any of the batman-like statistical tools seen in the other public use file folders.  as confirmed by one of the administrators of this survey, your analysis can simply tabulate, sum, average, whatever else using the base commands in r rather than complex sample survey design commands.  since these data sets are the universe rather than a sample, i’ve foregone a set of analysis examples.  if you want to do something, search stackoverflow with an [r] tag.  no survey design assembly required.  this new github repository contains two scripts:


download all microdata.R
  • download each zipped year of data onto your local computer
  • load a trifecta of tables into RAM
  • save all three data.frame objects as an R data file (.rda)

replicate imls publications.R



click here to view these two scripts



for more detail about the public libraries survey (pls), visit:


notes:

plainly described at the bottom of pdf page 6 of the technical documentation, each year of microdata gets released as three tables: a table of library systems (where new york city public libraries would have one entry), a table of library buildings (where new york city public libraries have one entry per branch), one table of states (where all libraries in new york state get collapsed into one).  imls takes care not to disclose stuff like salary information of individual employees, and the more-aggregated tables require less confidentiality-related-data-squelching.  if you need microdata sans suppression, apply for the restricted use files.


confidential to sas, spss, stata, sudaan users: you are using the blockbuster video of statistical languages.  time to transition to r.  😀

To leave a comment for the author, please follow the link and comment on their blog: asdfree by anthony damico.

R-bloggers.com offers daily e-mail updates about R news and tutorials about learning R and many other topics. Click here if you're looking to post or find an R/data-science job.
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.

Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)
https://www.r-bloggers.com/2014/10/analyze-the-public-libraries-survey-pls-with-r/
www.r-bloggers.com
crawl=CC-MAIN-2021-43
90432
application/http; msgtype=response
sha1:5RZL5LFESJVOTF5QYDXA24XRFCSF3KPI
<urn:uuid:47973110-7027-4415-84a0-21f61fa17912>
2021-10-19T03:07:08Z
172.64.134.34
text/html
sha1:IEV3TGJR42E2KFSX467ZH2RTNCECVQBE
<urn:uuid:2f34f067-6993-4ee3-8c36-3632975e1185>
https://www.r-bloggers.com/2014/10/analyze-the-public-libraries-survey-pls-with-r/
response
<urn:uuid:7fdfe215-60de-40d7-ad19-3fcf7d84095f>
isPartOf: CC-MAIN-2021-43
publisher: Common Crawl
description: Wide crawl of the web for October 2021
operator: Common Crawl Admin (info@commoncrawl.org)
hostname: ip-10-67-67-74
software: Apache Nutch 1.18 (modified, https://github.com/commoncrawl/nutch/)
robots: checked via crawler-commons 1.2-SNAPSHOT (https://github.com/crawler-commons/crawler-commons)
format: WARC File Format 1.1
conformsTo: https://iipc.github.io/warc-specifications/specifications/warc-format/warc-1.1/