help cnuse 中文版本

Title

cnuse Download datasets from the Quantitative Economics WeChat Public Account, the Econometric Service Center WeChat Public Account, and other network data sources.

Syntax

cnuse [filename] [, clear nod save overwrite url("custom_url")]

clear Clear Stata's memory before loading the new dataset.

nod Do not describe the dataset after loading. By default, the describe command is automatically issued after loading.

save Save the dataset in your current working directory (use pwd to check the current directory).

overwrite Overwrite the existing dataset file in your directory if the file already exists.

url("custom_url") Specify a custom URL to download the dataset from.

Description

cnuse is used to access datasets provided in blog posts from the Econometric Service Center or datasets mentioned in quantitative economics resources. The command can import various file formats including .dta, .xls, .xlsx, .txt, .csv, .shp, and .zip. This includes spatial data (.shp files), which makes cnuse unique compared to other importing commands.

If the dataset is declared as a time series or panel, the tsset or xtset command will be automatically issued to display those characteristics.

Datasets downloaded in .zip format will be automatically extracted and read into Stata.

Notes

(1) cnuse supports the latest spatial data formats, such as .shp files. When importing .shp files, ensure that both .shp and .dbf files with the same name are available. Use help sp or help spshape2dta for more details on handling spatial data.

(2) If an error occurs, verify whether the dataset exists on the specified source or URL.

Examples

cnuse smoking.dta, clear

cnuse auto.dta, clear

cnuse auto.xls, clear

cnuse auto.xlsx, clear

cnuse auto.csv, clear

cnuse nlsw88.zip, clear

cnuse columbus.shp, clear

cnuse smoking.dta, clear nodes

cnuse mroz.dta, url(https://gitee.com/econometric/data/blob/master/data01/)

cnuse apple.dta, url(https://www.stata-press.com/data/r18/)

cnuse crime1.dta, url(http://fmwww.bc.edu/ec-p/data/wooldridge/)

Author

Wang Qiang , Xi’an Jiaotong University,China.

E-mail: 740130359@qq.com.

Also see

Online: use, webuse, sysuse, net get, bcuse (if installed).