设为首页收藏本站

EPS数据狗论坛

 找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 2409|回复: 2

stata外部命令:那些最常用的和最新的命令

  [复制链接]

30

主题

333

金钱

471

积分

入门用户

发表于 2019-3-14 13:21:02 | 显示全部楼层 |阅读模式
stata中最重要的两个命令莫过于help和search了。即使是经常使用stata的人也很难,也没必要记住常用命令的每一个细节,更不用说那些不常用到的了。help和search都是查找帮助文件的命令,它们之间的区别在于help用于查找精确的命令名,而search是模糊查找。本文将为大家梳理出最新的外部命令和最热门外部命令,并且提供完整讲解。
- stata -
最流行的Stata 非官方命令下载平台为“统计软件成分”(Statistical Software Components,SSC),由 Boston College 维护,网址为 http://ideas.repec.org/s/boc/bocode.html
想知道,现在的热点命令是什么吗?
ssc hot查看热点命令
ssc new (罗列 SSC 的最新非官方Stata 命令及简介)
ssc hot (罗列 SSC 提供的最流行非官方 Stata 命令)
ssc install newcommand (安装 SSC 非官方命令“newcommand”)
help ssc (有关 SSC 的帮助信息)
获取外部命令的最佳方式是使用 - findit - 命令,在搜索完成后,可以按照 stata 的提示直接下载安装相应的命令和作者提供的范例数据或dofiles(如果有的话)。
另外,也可以help加命令来查看自己该外部命令是否已经正确安装,若是已经安装,则显示完整的帮助文件。
ssc hot
输入ssc hot, n(30),可以得到过去最火热的30个命令,如下:
Rank # hits Package Author(s)
1 705346.0 rsource Roger Newson
2 353124.0 unique Tony Brady
3 350278.7 vallist Patrick Joly
4 228398.2 ftools Sergio Correia
5 62658.8 outreg2 Roy Wada
6 51727.1 estout Ben Jann
7 23114.3 distinct Nicholas J. Cox, Gary Longton
8 20822.0 confirmdir Dan Blanchette
9 20770.7 use13 Sergiy Radyakin
10 20190.3 regsave Julian Reif
11 20067.3 tmpdir Dan Blanchette
12 19688.3 shortdir Dan Blanchette
13 19412.0 appendfile Julian Reif
14 19391.7 texsave Julian Reif
15 19383.7 reg2hdfe Paulo Guimaraes
16 13488.0 winsor Nicholas J. Cox
17 11331.0 winsor2 Lian Yu-jun
18 10798.9 ivreg2 Steven Stillman, Christopher F Baum,
Mark E Schaffer
19 10797.7 ivreg210 Mark E Schaffer, Steven Stillman,
Christopher F Baum
20 10797.3 ivreg29 Mark E Schaffer, Christopher F Baum,
Steven Stillman
21 10691.4 ivreg28 Christopher F Baum, Mark E Schaffer,
Steven Stillman
22 10431.7 mkprofile Dan Blanchette
23 7806.0 usesas Dan Blanchette
24 7764.0 savasas Dan Blanchette
25 7026.0 sxpose Nicholas J. Cox
26 6764.3 psmatch2 Edwin Leuven, Barbara Sianesi
27 6313.7 reghdfe Sergio Correia
28 6270.3 saswrapper Dan Blanchette
29 5294.5 ranktest Mark E Schaffer, Frank Kleibergen
30 5158.7 outreg John Luke Gallup
(Click on package name for deion)
可以看到outreg命令比较火热。小编后期将终点推荐stata中的命令使用方法。
ssc new
若想了解最近一个月发布了哪些新的外部命令,只需输入 - ssc new - 即可。
SSC Stata modules created or revised 2017-07-11 to 2017-08-11
AGGIND
module to aggregate indicators among units within a specified radius
Authors: Andreas Hartung Req: Stata version 10
Created: 2017-08-05
THSEARCH
module to evaluate threshold search model for non-linear models based on information criteri
> on
Authors: Ho Fai Chan Brenda Gannon David Harris Mark Harris Req: Stata versi
> on 7
Created: 2017-08-05
STD_BETA
module to calculate centered and standardized coefficients after estimation
Authors: Doug Hemken Req: Stata version 12
Created: 2017-08-05
WALD_MSE
module to calculate the maximum mean square error (MSE) of a point estimator of the mean
Authors: Chuck Manski Max Tabord-Meehan Req: Stata version 12
Created: 2017-08-02
FLOWCHART
module to generate subject disposition flow diagram figures in LaTeX using PGF/TikZ to inclu
> de in manus
Authors: Isaac M. E. Dodd Req: Stata version 13 and texdoc from SSC (q.v.)
Revised: 2017-08-05
ENCODEFROM
module to rename and encode variables using an external crosswalk
Authors: Sally Hudson Req: Stata version 8
Created: 2017-08-01
XTCDF
module to perform Pesaran's D-test for cross-sectional dependence in panel context
Authors: Jesse Wursten Req: Stata version 12
Created: 2017-07-31
DDID
module to compute pre- and post-treatment estimation of the Average Treatment Effect (ATE) w
> ith binary time-varying treatment
Authors: Giovanni Cerulli Req: Stata version 14
Created: 2017-07-31
CORR2DOCX
module to report Pearson & Spearman correlation coefficients to formatted table in DOCX file
Authors: Chuntao Li Zijian Li Yuan Xue Req: Stata version 15
Revised: 2017-08-04
SICFF
module to create Fama French Industry Variable from SIC Code
Authors: Tyson Van Alfen Req: Stata version 10
Created: 2017-07-24
TWITTER2STATA
module to import data from Twitter
Authors: Kevin Crow Req: Stata version 15
Revised: 2017-07-31
BMP2DTA
module to convert bitmap files to Stata datasets
Authors: Austin Nichols Req: Stata version 11
Created: 2017-07-23
PLOTRPYS
module to plot a spectrogram using CSV export from CRExplorer
Authors: Lutz Bornmann Req: Stata version 11
Created: 2017-07-22
CVCRAND
module for efficient design and analysis of Cluster Randomized Trials
Authors: John A. Gallis Fan Li Hengshi Yu Elizabeth L. Turner Req: Stata version 1
> 4
Created: 2017-07-22
MULTIDOT
module for multiple panel dot charts and similar
Authors: Nicholas J. Cox Req: Stata version 10
Created: 2017-07-22
BABIBPLOT
module to plot two graph types which are rooted in Bland-Altman plots using journal and pape
> r percentiles
Authors: Lutz Bornmann Req: Stata version 11
Revised: 2017-07-22
BGSHADE
module to add background shading to twoway plots using either dummy variable(s) denoting sha
> ded areas and/or precoded NBER recessions
Authors: Eric Haavind-Berman Aaron Markiewitz Req: Stata version 8 (version 15 fo
> r full functionality)
Created: 2017-07-16
MSDECO
module to calculate the Mookherjee & Shorrocks (1982) over-time inequality decomposition by
> subgroup
Authors: Andrew Silva Req: Stata version 8.2 and ineqdeco from SSC (q.v.)
Created: 2017-07-16
REG2DOCX
module to report regression results to formatted table in DOCX file.
Authors: Chuntao Li Yuan Xue Req: Stata version 15
Created: 2017-07-16
SUM2DOCX
module to report summary statistics to formatted table in DOCX file
Authors: Chuntao Li Yuan Xue Req: Stata version 15
Created: 2017-07-13
TIDY
module to ease reshaping of data
Authors: Matthieu Gomez Req: Stata version 12.1
Created: 2017-07-13
MULTILINE
module for multiple panel line plots
Authors: Nicholas J. Cox Req: Stata version 11
Revised: 2017-07-22
SMCLPRES
module to create a SMCL presentation from a do file
Authors: Maarten L. Buis Req: Stata version 8
Revised: 2017-07-16
WORDCONVERT
module to transfer files among several types in Windows
Authors: Chuntao Li Yuan Xue Req: Stata version 12 for Windows
Revised: 2017-08-04
STAFT
module to fit flexible parametric accelerated failure time models
Authors: Michael J. Crowther Req: Stata version 14.1
Revised: 2017-07-31
SCREEN
module to screen observations that meet specific distributional criteria in terms of percent
> ile, standard deviation or interquartile range
Authors: Marco Santacroce Req: Stata version 11
Revised: 2017-07-13
ADFMAXUR
module to calculate Leybourne (1995) ADFmax unit root test statistic along with 1, 5 and 10%
> finite-sample critical values and associated p-values
Authors: Jes煤s Otero Christopher F Baum Req: Stata version 13
Revised: 2017-07-30
CVAUROC
module to compute Cross-validated Area Under the Curve for ROC Analysis after Predictive Mod
> elling for Binary Outcomes
Authors: Miguel Angel Luque-Fernandez Camille Maringe Paul Nelson Req: Stata ve
> rsion 10.1
Revised: 2017-07-31
ERSUR
module to calculate Elliott, Rothenberg & Stock DF-GLS unit root test statistic along with 1
> , 5 and 10% finite-sample critical values and associated p-values
Authors: Jes煤s Otero Christopher F Baum Req: Stata version 13
Revised: 2017-07-30
XTGCAUSE
module to test for Granger non-causality in heterogeneous panels
Authors: Luciano Lopez Sylvain Weber Req: Stata version 13.1
Revised: 2017-07-31
CNSTOCK
module to download stock names and codes for Chinese listed companies
Authors: Chuntao Li Zijian Li Yuan Xue Req: Stata version 14
Revised: 2017-07-31
SUBINFILE
module to perform byte-based substitution for the contents of a text-formatted file
Authors: Chuntao Li Yuan Xue Rong GAO Req: Stata version 14
Revised: 2017-08-04
FOREC_INSTAB
module to perform forecast comparison and forecast rationality tests
Authors: Barbara Rossi Req: Stata version 8 and dmariano from SSC (requires version
> 9.2)
Revised: 2017-07-22
FTOOLS
module to provide alternatives to common Stata commands optimized for large datasets
Authors: Sergio Correia Req: Stata version 11.2
Revised: 2017-07-22
XTCD2
module to test for weak cross sectional dependence
Authors: Jan Ditzen Req: Stata version 10
Revised: 2017-07-13
XTDCCE2
module to estimate heterogeneous coefficient models using common correlated effects in a dyn
> amic panel
Authors: Jan Ditzen Req: Stata version 10, ivreg2 and moremata from SSC (q.v.)
Revised: 2017-07-13
IETOOLKIT
module providing commands specially developed for Impact Evaluations
Authors: Kristoffer Bj盲rkefur Mrijan Rimal Req: Stata version 11
Revised: 2017-07-31
BOOTTEST
module to provide fast execution of the wild bootstrap with null imposed
Authors: David Roodman Req: Stata version 11.2
Revised: 2017-07-31
CLUSTSE
module to estimate the statistical significance of parameters when the data is clustered wit
> h a small number of clusters
Authors: Andrew Menger Req: Stata version 9, clusterbs and estout from SSC (q.v.)
Revised: 2017-08-04
MIMIX
module to perform reference based multiple imputation for sensitivity analysis of longitudin
> al clinical trials with protocol deviation
Authors: Suzie Cro Req: Stata version 13
Revised: 2017-07-31
CEQ
module to carry out Commitment to Equity (CEQ) fiscal incidence analysis
Authors: Sean Higgins Rodrigo Aranda Ruoxi Li Req: Stata version 13
Revised: 2017-08-01
CNTRADE
module to retrieve Chinese stock market quotations from NetEase
Authors: Chuntao Li Xuan Zhang Req: Stata version 12
Revised: 2017-08-04
QOG
module to access the most recent release of the "Quality of Government" data
Authors: Christoph Thewes Req: Stata version 11
Revised: 2017-08-05
DSGINIDECO
module to compute decomposition of inequality change into pro-poor growth and mobility compo
> nents
Authors: Stephen P. Jenkins Philippe Van Kerm Req: Stata version 8.2
Revised: 2017-07-24
GROUPS
module to list group frequencies
Authors: Nicholas J. Cox Req: Stata version 8.0
Revised: 2017-07-22
UNIQUE
module to report number of unique values in variable(s)
Authors: Tony Brady Req: Stata version 10.1
Revised: 2017-08-01
End of recent additions and updates
spmap
该命令主要画地图的
help spmap
Syntax
spmap [attribute] [if] [in] using basemap [,
basemap_options
polygon(polygon_suboptions)
line(line_suboptions)
point(point_suboptions)
diagram(diagram_suboptions)
arrow(arrow_suboptions)
label(label_suboptions)
scalebar(scalebar_suboptions)
graph_options]
在stata培训会议中总结的命令为:
use E:stataStata15china_mapchina_label,clear
gen x = uniform()
format x %9.3g
spmap x using "E:stataStata15china_mapchina_map.dta", ///
id(id) label(label(ename) xcoord(x_coord) ycoord(y_coord) size(*.66))
help spmap
findit spmap
spmap x using "E:stataStata15china_mapchina_map.dta", id(id) fcolor(Reds)
spmap x using "E:stataStata15china_mapchina_map.dta", id(id) fcolor(red green blue orange)
cd E:stataStata15china_map
spmap x using "china_map.dta", id(id) fcolor(red green blue orange) ///
label(label(name) xcoord(x_coord) ycoord(y_coord) size(*.66))

2

主题

122

金钱

155

积分

入门用户

发表于 2019-5-17 17:09:29 | 显示全部楼层
请问楼主,我想下载sobel命令,用了findit也没有找到下载的地方,怎么办呀??谢谢楼主
回复 支持 反对

使用道具 举报

4

主题

577

金钱

864

积分

初级用户

发表于 2019-5-21 13:33:06 | 显示全部楼层
感谢,楼主好厉害
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

站长推荐上一条 /1 下一条

客服中心
关闭
在线时间:
周一~周五
8:30-17:30
QQ群:
653541906
联系电话:
010-85786021-8017
在线咨询
客服中心

意见反馈|网站地图|手机版|小黑屋|EPS数据狗论坛 ( 京ICP备09019565号-3 )   

Powered by BFIT! X3.4

© 2008-2028 BFIT Inc.

快速回复 返回顶部 返回列表