the pesquisa nacional de saude (pns) monitors the performance of the brazilian healthcare system, with disease surveillance, risk behavior assessment, and a familiar battery of access-to-care questions that health services researchers might be seeing for the first time in portuguese. this is brazil's healthcare survey. now that ibge has published the first collection, you (yes you) have the publicly-available person-level data to begin a serious study of brazilian medicine. individuals responding to the pns offer up information like tobacco use, sedentary lifestyles, diabetes diagnosis. if you follow our examples, you'll be able to draw statistically-valid conclusions along linhas like age, race, education, and yes even estado. thanks to djalma pessoa for teaching both you and me how to work with this primary (and ultra-current) source to understand most anything about the health status of the brazilian people. this new repository contains three scripts:
download and import.R
- download the latest zipped household- and person-level microdata ascii files
- import each table directly into a data.frame object with sascii
- post-stratify each survey design according to the official documentation, so you don't have to
- run the well-documented block of code reviewing most of the syntax configurations you'll need for basically any breakout that you might imagine or desire
- prove that r will precisely match the ibge-produced statistics and standard errors because we are thorough like that
click here to view these three scripts
for more detail about the pesquisa nacional de saude (pns), visit ibge's pns landing page and go from there. it's got everything that we do not. this is a brand new survey for you to fall in love with.
confidential to sas, spss, stata, and sudaan users: purchasing statistical software may be hazardous to your wallet.