David L. Van Brunt, Ph.D.
2005-Sep-13 20:29 UTC
[R] Anyone have any code for importing data from NAMCS?
The National Ambulatory and Medical Care Survey is a free data set from the CDC that I'd like to analyze using the "Survey" package in R. Before I dive in, though, it occurred to me that someone may already have gone to the trouble of writing code that will bring in the data and assign the variable names and value labels. This is a big file, so doing it from scratch will take quite a bit of time... Just hoping I can avoid re-inventing the wheel! Anyone out there interested in throwing me a rope? Thanks! -- --------------------------------------- David L. Van Brunt, Ph.D. mailto:dlvanbrunt@gmail.com [[alternative HTML version deleted]]
Dieter Menne
2005-Sep-14 07:23 UTC
[R] Anyone have any code for importing data from NAMCS?
David L. Van Brunt, Ph.D. <dlvanbrunt <at> gmail.com> writes:> > The National Ambulatory and Medical Care Survey is a free data set from the > CDC that I'd like to analyze using the "Survey" package in R. Before I dive > in, though, it occurred to me that someone may already have gone to the > trouble of writing code that will bring in the data and assign the variable > names and value labels.At least the 2002 and 2003 files are available as SPSS macros (not as SPSS file, as far I know). So if you know someone with SPSS, ask her to run the macros, and read in the data with R and package foreign. Dieter Menne
Apparently Analagous Threads
- "Survey" package and NAMCS data... unsure of specification
- Repost: Examples of "classwt", "strata", and "sampsize" i n randomForest?
- Repost: Examples of "classwt", "strata", and "sampsize" in randomForest?
- Creating new columns inside a loop
- memory, speed, and assigning results into new v. existing variable