huangli 发表于 2016-10-4 19:05 
stata这货只能读取csv格式的。
stata当然可以读取excel格式的文件了,关键是命令写对了没有,看帮助和手册里面有介绍
Title
[D] import -- Overview of importing data into Stata
Description
This entry provides a quick reference for determining which method to use for reading non-Stata data
into memory. See [U] 21 Entering and importing data for more details.
Summary of the different methods
import excel (see [D] import excel)
1. import excel reads worksheets from Microsoft Excel (.xls and .xlsx) files.
2. Entire worksheets can be read, or custom cell ranges can be read.