*! version 1.4 11Sep2023
help lxhuse

Title

lxhuse -- Access Stata datasets of lianxh.cn blogs,
see help lianxh.

Syntax

lxhuse
[
filename
,
desc
clear
save
replace
url(string)
]

Options

desc
describe the dataset.

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

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

replace
overwrite the datasets with same filename as the dataset loaded.

url()
specifies that the dataset will be download from url you provied.

Notes:

(1) lxhuse with no argument is used to list the datasets available.

(2) url() provide an easy way to download dataset from various sources.
For example, the following commands are equivalent:

. lxhuse jtrain, url(http://fmwww.bc.edu/ec-p/data/wooldridge)

. bcuse jtrain

Description

lxhuse provides easy access to a number of Stata-format datasets used
in blogs of lianxh.cn.
Those blogs can be easily searched with lianxh command in Stata Command Window.

To use the auto_test.dta dataset, give the command lxhuse auto_test.
If you receive an error message, check the web page listing
these datasets.

If a Stata data file has been saved in .zip format on the server (usually because
it is very large), you may give the filename, including .zip, and the zip file
will be copied to your working directory, unzipped, and read into Stata.

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

The anciliary files can be downloaded using lxhget command.

Examples

. lxhuse // list datasets

. lxhuse auto_test

. lxhuse auto_test, clear

. lxhuse auto_test.zip, clear

Acknowledgements

Codes from bcuse by Prof. C.F. Baum have been incorporated.

Author

Yujun, Lian Lingnan College, Sun Yat-Sen University, China.

E-mail: arlionn@163.com.

Blog: lianxh.cn

Other Commands

lxhget (if installed) ssc install lxhget (to install)

lianxh (if installed) ssc install lianxh (to install)

bdiff (if installed) ssc install bdiff (to install)

songbl (if installed) ssc install songbl (to install)

xtbalance (if installed) ssc install xtbalance (to install)

ihelp (if installed) ssc install ihelp (to install)

Also see

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