Ask, Learn and Accelerate in your PhD Research

image Post Your Answer


image

Commands to load data into STATA

5 years ago in STATA By Vinay Kumar


I want to load data into STATA. Which command can we use for this purpose?

All Answers (3 Answers In All) Post Your Answer

By Geeta Ghadage Answered 5 years ago

File format needs to be considered while loading data into STATA. Different file formats use different commands to load the data. If the file format is STATA, then you can use the command ‘use’. While using this command the file extension (*.dta) can be omitted.


By Divya Answered 5 years ago

Vinay, if the file format is fixed format or free format ASCII, then make use of infix and infile version 1 command.


By Deepa S Answered 5 years ago

Infile version2, import delimited and import excel is used if the file format is fixed format ASCII with dictionary, text delimited and excel. You can also convert different file formats into STATA file format and then use the command for STATA file format. https://www.stata.com/support/faqs/data-management/converting-excel-files/ This link guides you on how to convert the file format.


Your Answer


View Related Questions


asked at 05 Nov, 2019 03:56 in STATA By Nazia



asked at 15 Aug, 2018 08:12 in STATA By Sur M