STATA 学习笔记:导入数据
1. excel 格式的数据导入
(1)打开excel
cd "该excel所在的文件夹路径"
//shell out 工作簿名称.格式
shell out auto.xls
shellout 命令
Description
shellout opens a document from inside Stata without having to specify the exact file path of the program. It also opens an application with or
without specifying a file document to be opened.
(2)导入excel
//import excel 工作簿名称.格式, firstrow sheet(Sheet1) clear
//sheet(Sheet1) 指定选取该工作表中的工作表1
import excel auto