How to download meps files stata






















Put quotation marks around your URL so Stata interprets it as a string - the equal sign is causing it to think you've got an expression in there somewhere.

The following has downloaded observations Code:. My comment at post 3 was the extent of my knowledge of using Stata to read directly from a file on the internet: it presupposes, as did the post from Marcos on which I was commenting, that the data are in a readily-interpretable format like CSV, not embedded within a page of HTML.

And my comment at post 7 was very basic Stata, nothing particular to the import delimited command itself. Dear All, I have had another look this today. With the Code:. Steve Samuels. Copying the table from the Web page and pasting it into a text editor I use BBEdit for Mac will produce a tab delimited file. I first translated the page into English with Google Translate.

Last edited by Steve Samuels ; 26 Dec , Preventive Care Self-Administered Questionnaire file Supplemental Variables files Health Insurance Plan Abstraction file Long Term Care file Household Component Event files Data for the calendar year on unique household-reported medical events.

Prescribed Medicines files. Dental Visits files. Other Medical Expenses files. Hospital Inpatient Stays files. Emergency Room Visits files. There were several compressed shapefiles I wanted to download contained in a directory from the web. I could manually download each file and uncompress each one but that would be time consuming. You should read the rest of his post. He goes on to show how you can script with Stata to automate shelling out to download and unzip a series of files from a website, and he introduces you to some cool Unix-like utilities for Windows.

We save the file calling it dads1. Here we make momdad variable for the moms data file. We save the file calling it moms1. Another way of combining data files is match merging. Say that we wanted to combine the dads with the faminc data file, having the dads information and the family information side by side. We can do this with a match merge.



0コメント

  • 1000 / 1000