Announcement

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

  • Problem with outfile

    Hi!

    I am using the outfile command to export a dataset.dta into csv:

    outfile using dataset.csv, comma replace

    The dataset contains 5,000 observations and 12 variables in Stata. After running the outfile command, I opened the dataset.csv file and contains 10,000 observations and 9 variables. I have no clue why this happens, if useful: Stata database contains zero missings values, and I already imported other four dataset with less variables with no problem.

    Thank you in advance!

  • #2
    From outfile's help file: "The default is to split observations into lines of 80 characters or fewer . . ."

    But why aren't you using export delimited?

    Comment

    Working...
    X