Does anyone know of an Open Source library for parsing/reading Stata files in .net? It is a tabular data format.
I plan to write an IDataReader based reader if no one has seen something that could be reused.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
After an exhaustive search, I could not find a library for reading Stata files. I did end up writing an IDataReader implementation for Stata versions 5 to 12. I will see if I can post it to github.
One note for others: the IDataReader does not have a method to get a typed sbyte (int 8) which Stata uses, so if you need that value when implementing a reader with an IDataReader interface, you can return it through the GetInt16.
I also added an in depth GetMissingValue since Stata can have numerous missing value codes. IsDBNull does not support any context information.