![]() To use this method of bringing a SAS data file into Stata, you must have SAS working on your computer. The user-written Stata ado-file usesas can be used to read SAS data into Stata. Here is the link to Stata’s help file on fdause if you need more information. Stata is able to read SAS XPORT data files (*.xpt) made with the XPORT engine using the fdause command such as in the example code below. proc export data=mydata outfile= "C:\data\mydata.dta" In the process of conversion, SAS will automatically convert the variable labels and value labels as well. ![]() ![]() ![]() dta, SAS understands that the SAS data file mydata in the work directory will be converted to a Stata file. SAS’s proc export can be used to convert a SAS data file to Stata format as shown below. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |