1

I am writing a file to csv before reading it into Stata. How do i specify missing values in the csv file, so that when the csv is read into Stata they are automatically coded by as missing?

1 Answer 1

1

Found answer - if values are set as . in the csv file, they are read into stata as missing values.

Sign up to request clarification or add additional context in comments.

1 Comment

Leaving the fields empty would also work. I think that's better than using a . in the CSV file because many programs won't recognize the dot as a missing value indicator. Also, leaving the field empty will work for strings too.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.