Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Importing .do file

    Hi all. I am trying to execute a .do file in Stata that I have downloaded and keep receiving this error. If anyone can offer assistance it would be greatly appreciated.
    Click image for larger version

Name:	forum1.JPG
Views:	1
Size:	29.0 KB
ID:	1633418
    Click image for larger version

Name:	forum2.JPG
Views:	1
Size:	17.9 KB
ID:	1633419

  • #2
    Stata's error message here is informative -- the syntax is not valid. From your screenshots, your do file is attempting to import a delimited text file. I would refer you to the output of -help import delimited- to see the proper syntax for this commnad. I imagine your command will need to look something like this:

    Code:
    import delimited name of your variables here using "path to my file.dat", stringcols(1)

    Comment

    Working...
    X