Stata Plus
Stata Plus
目录
目录 1
Home 2
连享会 - Stata 暑期班 2
ssc外部命令一览.md 3
SSC - Stata 外部命令列表 3
A 3
B 5
C 7
D 11
E 14
F 16
G 18
H 21
I 22
J 24
K 25
L 26
M 29
N 34
O 35
P 36
Q 39
R 40
S 44
T 52
U 55
V 55
W 56
X 57
Y 60
Z 60
1 / 61
Home
Home
连享会 外部命令 plus 文件夹下载
线上直播 9 天:2020.7.28-8.7
主讲嘉宾:连玉君 (中山大学) | 江艇 (中国人民大学)
课程主页:https://gitee.com/arlionn/PX | 微信版
2 / 61
ssc外部命令一览.md
ssc外部命令一览.md
SSC - Stata 外部命令列表
Stata连享会 主页 || 视频 || 推文
A
a2reg module to estimate models with two fixed effects
aaniv module to compute unbiased IV regression
aaplot module for scatter plot with linear and/or quadratic fit, automatically annotated
abar module to perform Arellano-Bond test for autocorrelation
abg module to implement the Alpha-Beta-Gamma Method of Distributional Analysis
aboutreg module providing tutorial on regression diagnostics
absdid module to estimate treatment effect with Abadie semiparametric DID estimator
acelong module to fit multilevel mixed-effects ACE, AE and ADE variance decomposition models
acplot module to plot the autocorrelogram
actest module to perform Cumby-Huizinga general test for autocorrelation in time series
addbefore module to add number or character before a variable
addinby module to add in data from a disk dataset using a foreign key
addnotes program to add notes to the end of text files
addplot module to add twoway plot objects to an existing twoway graph
addtex module to display text on a graph
addtxt module to add text to graphs
adecomp module to estimate Shapley Decomposition by Components of a Welfare Measure
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
adftest module to perform ADF and Breusch-Godfrey tests
adjacent module to list adjacent values of variables "- adjksm module to perform adjusted ""ksm"" for robust scatterplot smoothing"
adjmean module to calculate variables' means adjusted for covariates
adjprop module to calculate adjusted probabilities from logistic regression estimates
adjust module (corrected) to compute adjusted predictions and probabilities after estimation
admetan module to provide comprehensive meta-analysis
adodev module to reorder ado-path for developers and other independent-minded users
adoedit module to edit ado file in Stata's do-file editor
adolist module to manage lists of ado packages
3 / 61
ssc外部命令一览.md
B
b1x2 module to account for changes when X2 is added to a base model with X1
babibplot module to plot two graph types which are rooted in Bland-Altman plots using journal and paper percentiles
backrasch module to implement a backward procedure with a Rasch model
backup module to make daily backup of important files (Windows only)
bacondecomp module to perform a Bacon decomposition of difference-in-differences estimation
balancetable module to build a balance table and print it in a LaTeX file or an Excel file
bandplot module to plot summary statistics of responses for bands of predictors
baplot module to produce Bland-Altman plots
barplot module to plot varlist against xvar
barplot2 module to produce bar plot with optional error bars
basetable module to compare a set of risk factors or effects with respect to a categorical variable
batcher module to parallelise tasks
batplot module to produce Bland-Altman plots accounting for trend
bayerhanck module to compute test for non-cointegration
bayesmixedlogit module to perform Bayesian estimation of mixed logit models
bayesmixedlogitwtp module for Bayesian estimation of mixed logit model in willingness-to-pay (WTP) space
bayesmlogit module to perform Bayesian estimation of mixed logit models
bcii module to to estimate the number needed to treat (NNT) and confidence intervals for patients improving, or ‘benefiting’ (either
improvements gained or deteriorations prevented), in a randomised controlled trial
bcoeff module to save regression coefficients to new variable
bcoeffs module to save regression coefficients to new variable
bcss module to create graphs to show how baseline data (prospective or retrospective) affect sample size for a cluster randomised trial
bcstats module to analyze back check (field audit) data and compare it to the original survey data
bctobit module to produce a test of the tobit specification
bcuse module to access instructional datasets on Boston College server
bdiff module to compute Bootstrap and Permutation tests for difference in coefficients between two groups
beamplot module to draw horizontal dotplots using beams
benford module to test Benford's Law on a variable
betacoef module to calculate beta coefficients from regression
betafit module to fit a two-parameter beta distribution
betaprior module to calculate the parameters of a Beta distribution given the mean and variance
betterbar module to produce bar graphs with optional standard error bars and cross-group comparisons
bfmcorr module for correcting surveys using tax data
5 / 61
ssc外部命令一览.md
bgshade module to add background shading to twoway plots using either dummy variable(s) denoting shaded areas and/or precoded NBER
recessions
bgtest module to calculate Breusch-Godfrey test for serial correlation
bhatt module to compute Bhattacharyya Coefficient and Bhattacharyya Distance statistics of distribution overlap
biasepi module to perform simple bias analysis, multidimensional bias analysis, and multiple bias modeling
bibrep module to produce a bibliometric report on a single senior researcher
bic module to evaluate the statistical significance of variables in a model
bicdrop1 module to estimate the probability a model is more likely without each explanatory variable
bidensity module to produce and graph bivariate density estimates
bihist module to produce bihistograms
bineq module to analyze multidimensional inequality in two dimensions of wellbeing
binscatter module to generate binned scatterplots
bioprobit module for bivariate ordered probit regression
biplot module to generate biplots
biplotvlab module to produce biplot with variable labels
bipolate module to perform bivariate interpolation and smooth surface fitting for values given at irregularly distributed points
birthsim module to simulate completed fertility and birth intervals
bitobit module to perform bivariate Tobit regression
bking module to implement Baxter-King filter for timeseries data
bkrosenblatt module for Blum, Kiefer and Rosenblatt test of bivariate independence
blinding module to compute blinding indexes
blindschemes module to provide graph schemes sensitive to color vision deficiency
blist module to list values of variables in as small a space as possible
blogit2 module to produce grouped data logit with support for in
blp module to estimate Berry Levinsohn Pakes random coefficients logit estimator
bme module to compute Bounded midpoint estimator
bmi module to compute Body Mass Index
bmjcip module to format confidence intervals and P-values for medical journals
bmp2dta module to convert bitmap files to Stata datasets
bnormpdf module to calculate the bivariate normal density
boost module to perform boosted regression
boottest module to provide fast execution of the wild bootstrap with null imposed
boxpanel module to produce box plots for panel data
boxtid module to fit Box-Tidwell and exponential regression models
bpagan module to perform Breusch-Pagan test for heteroskedasticity
bpass module to compute band pass filter for time series data
bpmedian module to compute Bonett-Price confidence intervals for medians and their contrasts
brain module to provide neural network
brewscheme module for generating customized graph scheme files
brglm module to perform bias-reduced estimation of binary response models
brmunid module to standardize geocodes for Brazilian municipalities
bronch module to describe bronchiolitis severity
bsens module to compute Sensitivity metric using McNemar's test
bsopm module to compute Black-Scholes European Option Pricing Model
bspline modules to compute B-splines parameterized by their values at reference points
btobit module to produce a test of the tobit specification
buckley module to implement Buckley-James method for analysing censored data
bugsdat module to convert a Stata datafile into the S-plus format used in Winbugs
bugwrite module to write data from Stata into a format compatible with WinBUGS
bundle module to bundle image files in a web page using base64 encoding
butterworth module to implement Butterworth square-wave highpass filter for timeseries data
byhist module to produce interlaced histograms
bynote module to Create a note with a user-specified format for use with the by option
bys module to automatically sort on the bylist (version 5)
bystore module to repeat estimation commands and store estimates
6 / 61
ssc外部命令一览.md
C
cal module to generate calendar
calibest module to estimate proportions and means after survey data have been calibrated to population totals
calibr module for inverse regression and calibration
calibrate module to calibrate survey datasets to population totals
calinski module to compute Calinski-Harabasz cluster stopping index from distance matrix
calipmatch module for caliper matching without replacement
callsado module to find (user-written) ado-files called by (a)do-file
canon module (corrected) to compute canonical correlations
capass module to wrap Stata's assert command, throws error messages
carryforward module to carry forward previous observations
cart module to perform Classification And Regression Tree analysis
casefat module for estimating the case fatality ratio of a new infectious disease
catdev modules for interpretation of categorical dependent variable models
catenate module to concatenate variables into string variable
caterpillar module to generate confidence intervals, Bonferroni-corrected confidence intervals, and null distribution
catgraph module to plotting means of a variable by category
catplot module for plots of frequencies, fractions or percents of categorical data
cb2html module to write a codebook to an HTML file
cbarplot module for centred bar plots of absolute or relative frequencies
ccmatch module to match cases and controls using specified variables
ccmpre module to compute PRE Measures for Cultural Consensus Models
cctable module to calculate summary table for case-control study
ccweight module to generate inverse sampling probability weights
cddens module to estimate a Density under Measurement Error using Auxiliary Information
cdfplot module to plot a cumulative distribution function
cdfquantreg module for estimating generalized linear models for doubly-bounded random variables with cdf-quantile distributions
cdo module to get an update when the dofile stalls
cdout module to display the current working directory
cdreg module to estimate Linear Regression under Measurement Error using Auxiliary Information
cedesign module to find the optimal flexible two stage single-arm binary outcome design
cem module to perform Coarsened Exact Matching
cenpois module to estimate censored maximum likelihood Poisson regression models
censornb module to estimate censored negative binomial regression as survival model
censusapi module to download Census data through the Census API
centcalc module to calculate distribution-based centiles
center module to center (or standardize) variables
centpow module to calculate centrality and power indices for each node in a network.
centroid module to calculate centroids
cepois module to estimate censored maximum likelihood Poisson regression models
ceq module to carry out Commitment to Equity (CEQ) fiscal incidence analysis
cf2 module to compare two datasets
cf3 module to compare two datasets
cfby module to compare datasets and produce discrepancy rates
cfitzrw module to implement Christiano-Fitzgerald Random Walk band pass filter for timeseries data
cflpois module to calculate confidence limits for rates based on Poisson outcome
cfout module to compare two datasets, saving a list of differences
cfvars module to compare variable name lists in two data sets
cgroup module to group contiguous observations with identical values of a varlist
chaid module to conduct chi-square automated interaction detection
chaidforest module to conduct random forest ensemble classification based on chi-square automated interaction detection (CHAID) as base
learner
7 / 61
ssc外部命令一览.md
10 / 61
ssc外部命令一览.md
D
d3network module to create network visualizations using D3.js to view in browser
dag module to provide utilities for directed acyclic graphs
dagfit module to fit a Generalized Beta (Type 2) distribution to grouped data via ML
dagumfit module to fit a Dagum distribution by maximum likelihood
dash module to score Disabilities of the Arm, Shoulder and Hand
dashgph module to construct dashed lines in scatterplots
dashln module to add dashed lines to graphs
datacheck module to perform data checks and produce informative output
dataex module to generate a properly formatted data example for Statalist
dataframe module to store/restore multiple Stata datasets to/from memory
datanet module to facilitate dataset organization for network analysis purposes
dataout module to export a dataset or tab-delimited file into various formats
dataplink module to import data from plink
datelist module to to create ascending numeric lists of dates
datesum module to display summary statistics for date variables
datmat module to multiply variables via matrix multiplication
dbmscopybatch module to produce a batch file for DBMS/Copy
dbnomics module for DB.nomics, the world's economic database
dcreate module to create efficient designs for discrete choice experiments
ddf2dct module to facilitate infiling US Government data distributed with a DDF
deci module to perform Variable Base conversion
11 / 61
ssc外部命令一览.md
12 / 61
ssc外部命令一览.md
13 / 61
ssc外部命令一览.md
E
eaalogit module to estimate endogenous attribute attendance models
eba module to perform extreme bound analysis
ebalance module to perform Entropy reweighting to create balanced samples
ebct module to perform entropy reweighting to create balanced samples for continuous treatments
ebrowse module to to display variables in the Data Editor, ordered by varlist
eclpci module to compute Exact and Approximate Confidence Limits for Poisson Counts
eclplot module to generate estimates and confidence limits plots
edm module to implement empirical dynamic modeling
eealogit module to estimate endogenous attribute attendance models
efetch_tools module to retrieve genetic data from NCBI
effcon module to calculate confidence limits for effect size estimated from one or two samples from normal distribution
effects module to provide a graphical interface for estimation commands
efolder module to easily create folders and/or subfolders
egen_inequal module providing extensions to generate inequality and poverty measures
egenmisc module to provide various egen functions
egenmore modules to extend the generate function
egfr module to calculate estimated glomerular filtration rate (eGFR)
egi module to calculate Ellison and Glaeser's index of geographical concentration
egranger module to perform Engle-Granger cointegration tests and 2-step ECM estimation
eitc module to compute U.S. Earned Income Tax Credit receipts
elabel module to extend the label commands
elapse module to calculate elapsed time in procedure
elasticregress module to perform elastic net regression, lasso regression, ridge regression
electool module containing toolkit to analyze electoral data
elife module to model annual increments of life expectancy
elixhauser module to calculate Elixhauser index of comorbidity
ellip module to graph confidence ellipses (version 8)
ellip6 module to plot confidence ellipses (version 6)
ellip7 module to plot confidence ellipses (version 7)
ellipticity module to compute optimal rank-based multivariate tests of elliptical symmetry and sphericity
eltmle module to provide Ensemble Learning Targeted Maximum Likelihood Estimation
email module to send emails from Stata via Python
emailme module to facilitate sending mail on Windows systems
emc module providing prefix command estimating contrasts for effect modifier values
emh module to compute extended Mantel-Haenszel statistics
encodefrom module to rename and encode variables using an external crosswalk
enforce module to force variables to satisfy a set of accounting identities
enlarge module to propagate constant values through group
entropy module to compute Shannon, Renyi, HCT entropy & Hill numbers
entropyetc module for entropy and related measures for categories
eofplot module to plot coefficients or loadings after principal component or factor analysis
eperiod module to calculate elapsed time between dates
epiconf module to assess confounding effects in epidemiological studies
14 / 61
ssc外部命令一览.md
epidata module Data entry system for use with Stata, SPSS, SAS, Excel, text formats
epimodels module to implement epidemiological models and simulations
episens module for basic sensitivity analysis of epidemiological results
episensrri module for basic sensitivity analysis for unmeasured confounders
epiweek module to create epidemiological week and equivalent epidemiological year
epresent module to present non-linear relationships in regression models with log or logit-link
epsigr module to save graph in EPSF format in UNIX environment
eqprhistogram module for equal probability histogram
equation module to Output The Equation of a Regression
er module to compute Esteban and Ray measure of polarization
erate module to import up-to-date exchange rates for any currency pairs
ereplace module to extend egen and egenmore to permit replacing
erepost module to repost the estimation results
eret2 module to save results in e()
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
esetran module to transform estimates and standard errors in parmest resultssets
esizereg module for computing the effect size based on a linear regression coefficient
esli module to calculate the equation of a straight line
est2tex module to create LaTeX tables from estimation results
estout module to make regression tables
estout1 module to export estimation results from estimates table
estparm module to save results from a parmest resultsset and test equality
estquant module to implement Quantile approach by Combes et al.
estrat module to perform Endogenous Stratification for Randomized Experiments
estsave module to save estimation results with current dataset
estudy module to perform an event study
estwrite module to store estimation results on disk
etime module to time how long a program runs
eurostatuse module to import data from Eurostat repository into Stata
eurouse module to import data from Eurostat
evalue module for conducting sensitivity analyses for unmeasured confounding in observational studies
evalue_estat module for conducting postestimation sensitivity analyses of unmeasured confounding in observational studies
evalues module to calculate E-values
eventdd module to panel event study models and generate event study plots
eventstudy module to perform event studies in finance
eventstudy2 module to perform event studies with complex test statistics
evhistplot module to produce event history plot
ewma module to calculate exponentially weighted moving average
ewreg module to estimate errors-in-variable model with mismeasured regressor
exampleobs module to prints example observations
examples module to show examples from on-line help files
excel2latex module to convert Excel table to LaTeX table
excelclean module to clean and integrate excel files
excelcol module to convert a column index into a name of an Excel column
excelsave module to provide a convenient way to export matched Stata datasets from a specified input directory (also including, if wanted,
additionally recursively matched subsets of files within distinctly matched offspring-directories) to Excel-files
expand_n module to expand dataset
expandby module to duplicate observations by variable
expandihlp module to expand the help file preprocessor directive for substituting repeated material in a given help file
expgen module to duplicate observations sorted in original order with generated variables
expl module to explore folders and files
explist module to generate an exponentially-spaced list of numbers
explorelabs module to explore the use of value labels in the dataset
expy module to calculate the EXPY-index as proposed by Hausmann et al. (2007)
15 / 61
ssc外部命令一览.md
extfunnel module to produce graphical augmentations to the funnel plot to indicate the potential impact of a new study on an existing meta-
analysis
extreme module to fit models used in univariate extreme value theory
extremes module to list extreme values of a variable
F
f_able module for the estimation of marginal effects with transformed covariates
faam module to score Foot and Ankle Ability Measure
fabplot module for plots for each subset with rest of the data as backdrop
factext module to extract factor values from a label variable created by parmest
factmerg module to merge a list of factors to create string variables
factorn module to calculate the factors of an integer
factortest module to perform tests for appropriateness of factor analysis
factref module to insert new observations with reference values for factors
fagan module for Fagan's Bayesian nomoigram
fairlie module to generate nonlinear decomposition of binary outcome differentials
far5 module to compute floating absolute risk for Cox and conditional logit regression
fastcd module to automate changing directories
fastgini module to calculate Gini coefficient with jackknife standard errors
fastreshape module for efficient implementation of reshape for big datasets
fastxtile module to generate a variable of quantile categories
favplots module for formatted added-variable plot(s)
fbar module to produce bar charts showing frequencies of categorical variables
fbep Module to Estimate Financial Break-Even Point Analysis (BEP)
fcinstability module to perform forecast comparison and forecast rationality tests
fcstats module to compute time series forecast accuracy statistics
fdfilter module to implement Corbae-Ouliaris frequency domain filter to time series data
fdta module to change contents of string variables
fedit module to find and edit text file from within Stata
feldti module to compare two independent coefficients of reliability
fese module to calculate standard errors for fixed effects
fgt_ci module to calculate and decompose Foster–Greer–Thorbecke (and standard) concentration indices
fgtest module to Compute Farrar-Glauber Multicollinearity Chi2, F, t Tests
fhsae module to fit an area level Fay-Herriot model
fieldarea module to compute the area of an irregularly shaped plot from GPS coordinates of its vertices
fieller module to calculate confidence intervals of quotients of normal variates
filei module to write lines to end or beginning of text files
filelist module to recursively search directories for files
filesearch module to recursively list files matching to a pattern or regular expression
fileutils module for faster file navigation
filtertrace module to trace filter or contingency questions
find module to find matching strings across files in the current directory
finddup module to find non-unique values or observations
findname module to list variables matching name patterns or other properties
findsysmis module to find system missing values in a list of variables
findunique module to display combinations of unique identifiers in a dataset.
findval module to find a specific value
firstdigit module to analyse first digits of numeric variables
firthfit module to compute model fit for Firth's logit models
firthlogit module to calculate bias reduction in logistic regression
fiscal_impoverishment module to estimate fiscal impoverishment and fiscal gains to the poor
fiskfit module to fit a Fisk distribution by ML to unit record data
fitint module to fit generalized linear model and test two-way interactions
fitmacro module to evaluate fit of loglinear GLM Poisson models
16 / 61
ssc外部命令一览.md
fitstat module to compute fit statistics for single equation regression models
fitstat_ers module to compute goodness of fit statistics for Rasch model
fixsort module to sort variables and align in sorted order, with others fixed
flex module for flexible pseudo maximum likelihood estimation of models for doubly-bounded data
floattolong module to recast variables from float to long storage type
flowchart module to generate subject disposition flow diagram figures in LaTeX using PGF/TikZ to include in manuscripts
flower module to draw sunflower plots
fmiss module to identify variables with problematic missing values
fmlogit module fitting a fractional multinomial logit model by quasi maximum likelihood
fmm module to estimate finite mixture models
fmmic module for postestimation with finite mixture models
fmmlc module for postestimation with finite mixture models
fndmtch module to find matching values
fndmtch2 module to find matching values for one variable in another
fodstr modules to handle fractional day calculations
for211 modules to document features of for and extend the for command
forec_instab module to perform forecast comparison and forecast rationality tests
forest module to visualize results from multiple regressions on a single independent variable
forfile module to execute command for each matching file
fprank module to compute Two-Sample Fligner-Policello Robust Rank Order Test
fpref module to add prefix or suffix to filenames
fpro module to compute Financial Protection Indicators for Health Expenditures
fproper module to get proper case for foreign names in variables
fpuhc module to compute Financial Protection Indicators for Universal Health Coverage
fqreg module to estimate quantile regression for non-negative data with a mass-point at zero and an upper bound
fracdiff module to generate fractionally-differenced timeseries
fracdydx module to evaluate derivatives of fractional polynomials
fracirf module to compute impulse response function for fractionally-integrated timeseries
fraclogit module to estimate fractional logit model
fractal module to generate fractals
fractileplot module for smoothing with respect to distribution function predictors
fragility module to compute the fragility index and quotient
frameappend module to append frames
framingham module for calculating the Framingham 10-year Cardiovascular Disease Risk Prediction
framingham30 module to calculate 30-year risk of cardiovascular disease
frcount module to estimate fractional response model under the presence of count endogeneity and unobservable heterogeneity
fre module to display one-way frequency table
freduse module to Import FRED (Federal Reserve Economic Database) data
fren module to batch rename files (Windows only)
freplace module to batch convert ASCII text or binary patterns in files
freqindex module to generate an index of terms from string variable
frm module to estimate and test fractional regression models
frontier_teci module to generate technical efficiency confidence intervals
frontierhtail module to estimate stochastic production frontier models for heavy tail data
fs module to show names of files in compact form
fsdet module to compute Factor score determinacy coefficient
fsreg module for forward search regression
fsum module to generate and format summary statistics
fsx module to show names of files in compact form (Unix-friendly defaults)
ftest module comparing two nested models using an F-test
ftocci module to back calculate the conventional confidence intervals from the floated confidence intervals
ftools module to provide alternatives to common Stata commands optimized for large datasets
ftrans module to batch convert file formats
ftree module to save directory information in text file (Windows only)
17 / 61
ssc外部命令一览.md
G
g538schemes module to provide graphics schemes for http://fivethirtyeight.com
gam module for generalised additive models
gamet module to perform game-theoretic calculations
gammafit module to fit a two-parameter gamma distribution
gammasym module to compute the value of the symmetrical gamma function
gausshermite module to estimate integrals using Gauss Hermite quadratures
gb2fit module to fit Generalized Beta of the Second Kind distribution by maximum likelihood
gb2lfit module to fit Generalized Beta of the Second Kind distribution by maximum likelihood (log parameter metric)
gb2reg module to perform Regression with a GB2 Error Term
gbgfit module to fit a Generalized Beta (Type 2) distribution to grouped data via ML
gboxplot module to create Box plot for skewed or heavy-tailed distributions
gby module to subset graphs and calculate in the same output
gcause module to perform Granger causality tests
gciget module to read Global Competitiveness Index data into Stata
gcode module to download Google geocode data
gconc module to compute generalized measures of concentration
gdecomp module to compute decomposition of outcome differentials after nonlinear models
gdsum module to summarize grouped data
ge_gravity module to solve a simple general equilibrium one sector Armington-CES trade model
geekel2d module to estimate the parameters of unidimensional and bidimensional IRT models
geivars module to calculate Generalized Entropy inequality indices
gen_tail module to work with indicator observations
genass module to perform Genetic Case-control Association tests
geneigen module to calculate eigenvalues of a real general matrix
genfreq module to produce a frequency distribution for a variable
gengroup module to produce groups of individuals
genhwcci module to calculate Hardy-Weinberg equilibrium test in case-control studies
genicv module to generate interaction between continuous (or dummy) variables
genidseq module for generating a numeric sequence to represent long identifiers
geninteract module to generate N-way interaction terms
genqreg module to perform Generalized Quantile Regression
genscore module to generate a score
genspec module to implement a General-to-Specific modelling algorithm
genstack module to generate Twoway Stacked Charts
genstest module to perform generalized S tests for models in the generalized method of moments framework
gentrun module to generate truncated normal variate
genvars module to generate covariate patterns
geo2xy module to convert latitude and longitude to xy using map projections
geochart module to create interactive map web pages from Stata data
geocircles module to create circles defined by geographic coordinates
geocode module to geocode data
18 / 61
ssc外部命令一览.md
20 / 61
ssc外部命令一览.md
H
hadrilm module to perform Hadri panel unit root test
haif module to compute Homoskedastic Adjustment Inflation Factors for model selection
half module to compute homoskedastic adjustment inflation factors for model selection
hallt-skewt -skewt module to compute skewness-adjusted bootstrap t-statistics
hamiltonfilter module to calculate the Hamilton Filter for a Single Time Series or for a Panel Dataset
hammock module to implement Hammock plot, visualizing categorical (and continuous) data
hangroot module creating a hanging rootogram comparing an empirical distribution to the best fitting theoretical distribution
hansen2 module for Hansen's test for parameter instability
hapblock module to perform haplotype analysis to identify the edges of haplotype blocks
hapipf module to perform haplotype analysis
harmby module to harmonize values of variables within by-groups
hausman module to compute a Hausman test statistic (version 5)
hbar module to generate horizontal bar charts
hbox module to draw horizontal box plots
hcaccprox module to compute a hierchical cluster analysis with conditional measures of proximity
hcavar module to perform Hierarchical Clusters Analysis of variables
hcnbreg module to estimate Heterogeneous Canonical Negative Binomial Regression
hdfe module to partial out variables with respect to a set of fixed effects
hdquantile module for Harrell-Davis estimator of quantiles
heabs module to calculate the ICER and Net Benefit for up to two datasets
head module to print the head observations (first observations in data set)
heatmapgraph module to measure the evolution of risks to financial stability over the financial cycle
heatplot module to create heat plots and hexagon plots
heckprob2 module to run heckprob and svyheckprob with d2 evaluator
heckroc module to plot ROC curves
hegy4 module to compute Hylleberg et al seasonal unit root test
heterogi module to quantify heterogeneity in a meta-analysis
hetop module for estimating heteroskedastic ordered probit models with ordered frequency data
hetprob module to estimate heteroskedastic probit model
hetred module to implement heterogeneity reducing algorithms
hettreatreg module to compute diagnostics for linear regression when treatment effects are heterogeneous
hgclg module to estimate geometric-complementary log log hurdle regression
hglogit module to estimate geometric-logit hurdle regression
hhi module to compute Herfindahl index
hhi5 module to generate Herfindahl-Hirschman index (HHI) variables
hildasetup module to create a longitudinal dataset for the Household, Income and Labour Dynamics in Australia (HILDA) Survey
himap module to create heatmaps for the web, using java api developed by highcharts
himatrix module to highlight selected elements of scatterplot
hireg module for hierarchial regression
hist3 module to draws histograms for intervals of different size
histbox module to generate histogram with boxplot
historaj module to produce histogram with descriptive statistics
histplot module to produce histogram for frequency distribution
hl module to compute Hodges and Lehman (1963) robust measure of location
hlist module for horizontally listing values
hlm module to invoke and run HLM v6 software from within Stata
hlp2html module to translate a list of Stata help files to HTML
21 / 61
ssc外部命令一览.md
I
iati module to import International Aid Transparency Initiative data
ic module to compute measures of interaction contrast (biological interaction)
icc23 module that computes models 2 and 3 of the intra-class correlation
iccconf module to compute a confidence interval for an intraclass correlation (ICC)
iccvar module to calculate intraclass correlation (ICC) after xtmixed
icdpic module to provide methods for translating International Classification of Diseases (Ninth Revision) diagnosis codes into standard injury
categories and/or scores
ice module for multiple imputation of missing values
icet module to perform multiple imputation of covariates
icio module for Economic Analysis with Inter-Country Input-Output tables
icomp module to calculate model selection information criteria
idonepsu module for dealing with strata that have singleton PSUs
ie_rate module to conduct age, period, and cohort (APC) analysis of tabular rate data using the intrinsic estimator
iefieldkit module providing Stata commands for primary data collection and cleaning
ietoolkit module providing commands specially developed for Impact Evaluations
ifin module to generate a local containing an if statement to select multiple values
ifwins module to subset a dataset by 'if exp' before subsetting by 'in range'
igeintb module to estimate intergenerational income elasticities (IGEs) with multiple sets of instruments
22 / 61
ssc外部命令一览.md
24 / 61
ssc外部命令一览.md
K
kalpha module to compute Krippendorff's Alpha-Reliability
kanom module to estimate Krippendorff's alpha for nominal variables
kapgof module to compute confidence intervals for the kappa statistic
kaplansky module to graph examples of distributions of varying kurtosis
kappa2 module to produce Generalizations of weighted kappa for incomplete designs
kappaetc module to evaluate interrater agreement
kapprevi module to plot the dependence of kappa statistic on true prevalence
kaputil module to generate confidence intervals and sample size calculations for the kappa-statistic
katego module to split a continuous numerical variable in custom categories
kdbox module to generate kernel density plot with boxplot
kdens module for univariate kernel density estimation
kdens2 module to estimate bivariate kernel density
kdmany module to perform kernel density estimation for several variables
keeporder module to keep and order a set of variables
keepvar module to keep a list of variables in the order of their appearance in the list
kernel module to compute various kernels
kernreg1 module to compute kernel regression (Nadaraya-Watson estimator)
kernreg2 module to compute kernel regression (Nadaraya-Watson estimator)
keyby module to key the dataset by a variable list
keyplot module to generate scatter plot with keys in user-chosen positions
kfoldclass module for generating classification statistics of k-fold cross-validation for binary outcomes
khb module to decompose total effects into direct and indirect via KHB-method
kitchensink module to return the model with the highest number of statistically significant predictors
kmatch module module for multivariate-distance and propensity-score matching, including entropy balancing, inverse probability weighting,
(coarsened) exact matching, and regression adjustment
kmest module to compute Kaplan-Meier survival probabilities as estimation results
knapsack module to solve the knapsack problem
kobo2stata module to create labelled Stata datasets from KoboToolbox
konfound module to quantify robustness of causal inferences
kountry module to standardize country names across various datasets
kpss module to compute Kwiatkowski-Phillips-Schmidt-Shin test for stationarity
kr20 module to calculate Kuder-Richardson coefficient of reliability
krippalpha module to compute Krippendorff's alpha intercoder reliability coefficient
krls module to perform Kernel–Based Regularized Least Squares
ksi module to compute Krugman specialization index
kssur module to calculate Kapetanios, Shin & Snell unit root test statistic along with critical values and p-values
ksur module to calculate Kapetanios & Shin unit root test statistic along with finite-sample critical values and p-values
kwallis2 module to perform Kruskal-Wallis Test for equality of populations
kwstat module to compute kernel weighted sample statistics
25 / 61
ssc外部命令一览.md
L
labcenswdi module to automatically manage datasets obtained from US Census 2000 and World Development Indicators databases
labeldatasyntax module to produce syntax to label variables and values, given a data dictionary
labellacking module to report numeric variables with values lacking value labels
labellist module to list value labels
labelmiss module to label missing data
labelsof module to obtain a list of labeled values
labelutil programs to create multiple value labels
labgen module to generate or replace variables with definitions in variable labels
lablist module to list value labels (if present) for one or more variables
labmatch module to find observations by label values
labmm module to modify multiple value labels simultaneously
labmv module to change numeric values to extended missing values preserving value labels
labone module to label variables after import excel
labrec module to recode variables according to value label
labsort module to recode a grouping variable according to a group statistic and reorder its value labels
labsumm module to generate summary table with variable labels
labundef module to list undefined value labels attached to variables in the current dataset
labup module to module to order/move variables based on label contents
labutil modules for managing value and variable labels
labutil2 module to manage value and variable labels
labvalch3 module to change value labels
labvalcl module to clear value labels of null strings
labvalpool module to change value labels
labvars module to attach a list of labels to varlist
lambda module for Goodman and Kruskal's lambda measures for two-way tables
landemets module to compute boundaries for group sequential clinical trials using alpha spending functions
laplacereg module to perform Laplace regression for censored data
lars module to perform least angle regression
lasagna module to produce lasagna plots
lassopack module for lasso, square-root lasso, elastic net, ridge, adaptive lasso estimation and cross-validation
lastupto module to collapse a dataset to have 1 observation for each of a list of X-values
latab module to generate LaTeX output from tabulate
lbpower module to calculate approximate power (or sample size) for longitudinal studies with binary response and two equally sized treatment
groups
lclogit module to fit latent class conditional logit models via EM algorithm
lclogit2 module to estimate latent class conditional logit models
lcmc module to estimate latent class missing covariate model for continous main response, ordinal covariate with missing values, and
informative selection
ldecomp module decomposing the total effects in a logistic regression into direct and indirect effects
ldtest module to compute Lorenz Dominance tests
leanout module to produce lean output formatting for estimation results
leebounds module for estimating Lee (2009) treatment effect bounds
leftalign module to left-align (or right-align) variables
levels module to report distinct levels of integer or string variable
levene module to test for equal population variances
levinlin module to perform Levin-Lin-Chu panel unit root test
levpredict module to compute log-linear level predictions reducing retransformation bias
lfk module to compute LFK index and Doi plot for detection of publication bias in meta-analysis
lfsum modules to describe variables located by name fragments
lgamma2 module to estimate two-parameter log-gamma regression
lgraph module to draw line graphs with optional error bars
libd3 module providing D3js Mata library
libhtml module providing an object oriented implementation of HTML in Mata
26 / 61
ssc外部命令一览.md
libjson module to provide Mata class library for obtaining and parsing JSON strings into object trees
lincheck module to graphically assess the linearity of a continuous covariate in a regression model
lincom2 module to compute multiple linear combinations
lincomest module to generate linear combinations of estimators saved as estimation results
linequate module to calculate linear equating constants using the Tucker and Levine Methods
linkplot module for linked (connected) scatter plots
lintrend module to graph observed proportions or means for a continuous or ordinal X variable
linuxlsd1 module to create a dataset of file records from the output of a Linux ls -d1 command
linuxlsdl module to create a dataset of file records from the output of a Linux ls -d1 command
lisrelinput module to generate input for pasting into LISREL
listmiss module to analyse missing values related to an estimation command
listsome module to list a (possibly random) sample of observations
listtab module to list variables as rows of a TeX, HTML or word processor table
listtex module to list variables as rows of a TeX, HTML or word processor table
listutil modules to manipulate lists of words
ljs module to left-justify string variables for printing
lmabg Module to compute OLS Autocorrelation Breusch-Godfrey Test at Higher Order AR(p)
lmabg2 Module to Compute 2SLS-IV Autocorrelation Breusch-Godfrey Test at Higher Order AR(p)
lmabgnl module to compute NLS Autocorrelation Breusch-Godfrey Test at Higher Order AR(p)
lmabgxt module to compute Panel Data Autocorrelation Breusch-Godfrey Test
lmabp module to compute Box-Pierce Autocorrelation LM Test at Higher Order AR(p)
lmabp2 module to compute 2SLS-IV Box-Pierce Autocorrelation LM Test at Higher Order AR(p)
lmabpg module to compute OLS Autocorrelation Breusch-Pagan-Godfrey Test at Higher Order AR(p)
lmabpg2 Module to Compute 2SLS-IV Autocorrelation Breusch-Pagan-Godfrey Test at Higher Order AR(p)
lmabpgnl Module to Compute NLS Autocorrelation Breusch-Pagan-Godfrey Test at Higher Order AR(p)
lmabpgxt module to compute Panel Data Autocorrelation Breusch-Pagan-Godfrey Test
lmabpnl module to compute NLS Autocorrelation Box-Pierce Test at Higher Order AR(p)
lmabpxt module to compute Panel Data Autocorrelation Box-Pierce Test
lmabxt module to compute Panel Autocorrelation Baltagi Test
lmadurh module to compute Durbin h, Harvey LM, Wald LM Autocorrelation Tests
lmadurh2 module to compute 2SLS-IV Autocorrelation Dynamic Durbin h, Harvey LM, and Wald Tests
lmadurhxt module to Compute Panel Data Autocorrelation Dynamic Durbin h and Harvey LM Tests
lmadurm module to compute OLS Autocorrelation Dynamic Durbin m Test at Higher Order AR(p)
lmadurm2 module to compute 2SLS-IV Autocorrelation Dynamic Durbin m Test at Higher Order AR(p)
lmadurmnl module to compute NLS Autocorrelation Dynamic Durbin m Test at Higher Order AR(p)
lmadurmxt module to compute Panel Data Autocorrelation Dynamic Durbin m Test
lmadw module to compute Durbin-Watson Autocorrelation Test
lmadw2 module to compute 2SLS-IV Autocorrelation Durbin-Watson Test at Higher Order AR(p)
lmadwnl module to compute NLS Autocorrelation Durbin-Watson Test at Higher Order AR(p)
lmadwxt module to compute Panel Data Autocorrelation Durbin-Watson Test
lmalb module to compute Ljung-Box Autocorrelation LM Test at Higher Order AR(p)
lmalb2 module to compute 2SLS-IV Autocorrelation Ljung-Box Test at Higher Order AR(p)
lmalbnl module to compute NLS Autocorrelation Ljung-Box Test at Higher Order AR(p)
lmanlsur module to perform Overall System NL-SUR Autocorrelation Tests
lmareg3 module to compute Overall System Autocorrelation Tests after 3SLS and SURE
lmasem module to perform Overall System Structural Equation Modeling (SEM) Autocorrelation Tests
lmavon module to compute Von Neumann Ratio Autocorrelation Test at Higher Order AR(p)
lmavon2 Module to Compute 2SLS-IV Autocorrelation Von Neumann Ratio Test at Higher Order AR(p)
lmavonnl module to compute NLS Autocorrelation Von Neumann Ratio Test at Higher Order AR(p)
lmavonxt module to compute Panel Data Autocorrelation Von Neumann Ratio Test
lmawxt Module to Compute Panel Data Autocorrelation Wooldridge Test
lmaz module to compute OLS Autocorrelation Z Test at Higher Order AR(p)
lmaznl Module to Compute NLS Autocorrelation Z Test at Higher Order AR(p)
lmcol module to compute OLS Multicollinearity Diagnostic Tests
27 / 61
ssc外部命令一览.md
lmcovnlsur module to perform Breusch-Pagan Lagrange Multiplier Diagonal Covariance Matrix Test after (NL-SUR) Regressions
lmcovreg3 module to Compute Breusch-Pagan Lagrange Multiplier Diagonal Covariance Matrix Test after (3SLS-SURE) Regressions
lmcovsem module to perform Overall System Structural Equation Modeling (SEM) Breusch-Pagan Lagrange Multiplier Diagonal Covariance Matrix
Test
lmcovvar module to compute (VAR) Breusch-Pagan Diagonal Covariance Matrix Test
lmcovxt module to Compute Breusch-Pagan Lagrange Multiplier Diagonal Covariance Matrix Test for Panel Data
lmdi module to compute Logarithmic Mean Divisia Index (LMDI) Decomposition
lmeg module to compute Augmented Engle-Granger Cointegration Test at Higher Order AR(p)
lmfreg module to Compute OLS Linear vs Log-Linear Functional Form Tests
lmfreg2 module to compute 2SLS-IV Linear vs Log-Linear Functional Form Tests
lmgc module to compute Granger Causality Test at Higher Order AR(p)
lmharch module to compute OLS Heteroscedasticity Engle (ARCH) Test
lmharch2 Module to Compute 2SLS-IV Heteroscedasticity Engle (ARCH) Test
lmharchnl Module to Compute NLS Heteroscedasticity Engle (ARCH) Test
lmharchxt Module to Compute Panel Data Heteroscedasticity Engle (ARCH) Test
lmhcw Module to Compute OLS Heteroscedasticity Cook-Weisberg Test
lmhcw2 Module to Compute 2SLS-IV Heteroscedasticity Cook-Weisberg Test
lmhcwnl module to compute NLS Heteroscedasticity Cook-Weisberg Test
lmhcwxt Module to Compute Panel Data Heteroscedasticity Cook-Weisberg Test
lmhgl module to Compute Glejser Lagrange Multiplier Heteroscedasticity Test for Residuals after OLS Regression
lmhgl2 Module to Compute 2SLS-IV Heteroscedasticity Glejser Test
lmhglnl module to compute NLS Heteroscedasticity Glejser Test
lmhharv module to Compute Harvey Lagrange Multiplier Heteroscedasticity Test for Residuals after OLS Regression
lmhharv2 Module to Compute 2SLS-IV Heteroscedasticity Harvey Test
lmhhp Module to Compute OLS Heteroscedasticity Hall-Pagan Test
lmhhp2 Module to Compute 2SLS-IV Heteroscedasticity Hall-Pagan Test
lmhhpnl module to compute NLS Heteroscedasticity Hall-Pagan Test
lmhhpxt module to compute Panel Data Heteroscedasticity Hall-Pagan Test
lmhlmxt module to Compute Breusch-Pagan Lagrange Multiplier Panel Heteroscedasticity Test
lmhlrxt module to Compute Greene Likelihood Ratio Panel Heteroscedasticity Test
lmhmss2 Module to Compute 2SLS-IV Heteroscedasticity Machado-Santos-Silva Test
lmhnlsur module to perform Overall System NL-SUR Heteroscedasticity Tests
lmhreg3 module to compute Overall System Heteroscedasticity Tests after (3SLS-SURE) Regressions
lmhsem module to perform Overall System Structural Equation Modeling (SEM) Heteroscedasticity Tests
lmhwald module to compute OLS Heteroscedasticity Wald Test
lmhwaldxt module to compute Panel Data Heteroscedasticity Wald Test
lmnad Module to Compute OLS Non Normality Anderson-Darling Test
lmnad2 Module to Compute 2SLS-IV Non Normality Anderson-Darling Test
lmnadnl Module to Compute NLS Non Normality Anderson-Darling Test
lmnadxt module to compute Panel Data Non Normality Anderson-Darling Test
lmndh Module to Compute OLS Non Normality Doornik-Hansen Test
lmndp module to Compute OLS Non Normality D'Agostino-Pearson Test
lmndp2 module to compute 2SLS-IV Non Normality D'Agostino-Pearson Test
lmngr module to compute Jarque-Bera Non Normality Lagrange Multiplier Runs Test for Residuals after OLS Regression
lmngry module to compute Geary Non Normality Lagrange Multiplier Runs Test
lmngry2 Module to Compute 2SLS-IV Non Normality Geary Runs Test
lmngryxt module to compute Panel Data Non Normality Geary Runs Test
lmnjb module to compute Lagrange Multiplier LM Jarque-Bera Normality Test
lmnjbnl module to compute NLS Non Normality Jarque-Bera Test
lmnjbxt Module to Compute Panel Data Non Normality Jarque-Bera Test
lmnnlsur module to perform Overall System NL-SUR Non-Normality Tests
lmnreg3 module to compute Overall System Non Normality Tests after (3SLS-SURE) Regressions
lmnsem module to perform Overall System Structural Equation Modeling (SEM) Non Normality Tests
lmnwhite module to Compute White Non Normality Lagrange Multiplier Test after OLS Regression
lmnwhite2 Module to Compute 2SLS-IV White IM Non Normality Test
28 / 61
ssc外部命令一览.md
29 / 61
ssc外部命令一览.md
30 / 61
ssc外部命令一览.md
mcmccqreg module to perform simulation assisted estimation of censored quantile regression using adaptive Markov chain Monte Carlo
mcmclinear module for MCMC sampling of linear models
mcmcstats module to compute convergence and summary statistics for MCMC estimation
mcqscore module to score the Monetary Choice Questionnaire using logistic regression
mdensity module for univariate kernel density estimation, for variables or groups
mdepriv module to compute synthetic indicators of multiple deprivation
mdesc module to tabulate prevalence of missing values
mean2 module to make a table of estimate means with subpopulation differences
meaning module to use internet search for the meaning for a word or phrase
medcouple module to compute medcouple measure of asymmetry and heaviness of the tails
median module to perform the median test
mediation module for causal mediation analysis and sensitivity analysis
medoid module to calculate medoids
medsem module to perform mediation analysis using structural equation modelling
medsurv module to calculate the median survival time after Cox/Poisson regression
mehetprob module to compute marginal effects at means and their standard errors after hetprob
meloreg2 module to perform Minimum Expected Loss (MELO) Instrumental Variables Regression
melt module to melt variables into a dataset containing aggregated data by variable
meoprobit module to compute marginal effects after estimation of ordered probit
mequate module to calculate equating constants using the Mean/Mean and Mean/Sigma methods
meresc module to rescale the results of mixed nonlinear probability models
mergeall module to merge multiple files
mergemany module to merge many files
mergepoly module to merge adjacent polygons from a shapefile
merlin module to fit mixed effects regression for linear and non-linear models
meta_lr module to graph positive and negative likelihood ratios in diagnostic test
metaaggr modules for meta-analysis of aggregate data
metaan module to perform fixed- or random-effects meta-analyses
metabias module to test for small-study effects in meta-analysis
metacum module to perform cumulative meta-analysis, with graphics
metadata module to enable access to metadata
metadialog module to provide sub-menu and dialogs for meta-analysis commands
metaeff module to perform effect sizes calculations for meta-analyses
metafrag module to compute the fragility index for meta-analysis
metafunnel module to produce funnel plots for meta-analysis
metagen module to perform meta-analysis of genetic-association studies
metagraph module to draw Forrest plot after meta command
metamiss module to perform meta-analysis with missing data
metamiss2 module accounting for missing outcome data in meta-analysis
metan module for fixed and random effects meta-analysis
metandi module to perform meta-analysis of diagnostic accuracy
metaninf module to evaluate influence of a single study in meta-analysis estimation
metaparm module to perform meta-analysis and transformations using parmest resultssets
metapow module for simulation based sample size calculations for designing new clinical trials and diagnostic test accuracy studies to update
an existing meta-analysis
metapreg module to compute fixed and random effects meta-analysis and meta-regression of proportions
metaprop module to perform fixed and random effects meta-analysis of proportions
metaprop_one module to perform fixed and random effects meta-analysis of proportions
metareg module to perform meta-analysis regression
metatrend module to implement regression methods for detecting trends in cumulative meta-analysis
metatrim module to perform nonparametric analysis of publication bias
mfilegr module to view and save multiple graphs with filenames based on a numeric identifier
mfpi module for modelling and displaying interactions
mfpigen module for modelling and displaying interactions between continuous predictors
mfpmi module to build multivariable fractional polynomial models in multiply imputed data
31 / 61
ssc外部命令一览.md
mfx2 module to enhance mfx command for obtaining marginal effects or elasticities after estimation
mgbe module to compute Multimodel Generalized Beta Estimator
mgen module to apply generate to a matrix
mgof module to perform goodness-of-fit tests for multinomial data
mhl module to compute Hodges and Lehman (1963) robust measure of location
mhtexp module to perform multiple hypothesis testing correction procedure
mi_impute_wlogit module to perform weighted multiple imputation for binary/categorical variables "- mi_mvncat module to assign ""final""
values to (mvn) imputed categorical variables"
mi_twoway module for computing scores on questionnaires containing missing item responses
mibmi module for cleaning and multiple imputation algorithm for body mass index (BMI) in longitudinal datasets
mice module for multiple imputation of missing values
mice7 module for multiple imputation of missing values (version 7)
mict module to provide Multiple imputation for Categorical Time-series
midas module for meta-analytical integration of diagnostic test accuracy studies
mif2dta module convert MapInfo Interchange Format boundary files to Stata boundary files
miinc module to conduct multi-model inference using information criteria
mim module to analyse and manipulate multiply imputed datasets
mimix module to perform reference based multiple imputation for sensitivity analysis of longitudinal clinical trials with protocol deviation
mimrgns module to run margins after mi estimate
mimstack module to stack multiply-imputed datasets into format required by mim
minap module to calculate minimum average partial correlation for principal components
mint module to examine across-groups equivalence of confirmatory factor analysis (CFA) measurement model parameters
miparallel module to perform parallel estimation for multiple imputed datasets
mipolate module to interpolate values
mira module to compute Rubin's measure for multiple imputation regression analysis
missing module to replace missing values
missingplot module to draw plot showing patterns of missing values in a dataset
missings module to manage missing values
misum module to calculate summary statistics in MI dataset
mivif module to calculate variance inflation factors after mi estimate regress
mixlogit module to fit mixed logit models by using maximum simulated likelihood
mixlogitwtp module to estimate mixed logit models in WTP space
mixmcm module to estimate finite mixtures of non-stationary Markov chain models by maximum likelihood (ML) and the Expectation-
Maximization (EM) algorithm
mixmixlogit module to estimate mixed-mixed multinomial logit model
mkbilogn module to create bivariate lognormal variables
mkcorr module to generate correlation table formatted for easy inclusion in articles
mkdat module providing easy SOEP retrievals
mkdensity module to graph kernel densities of several variables
mkern module to perform multivariate nonparametric kernel regression
mkest module to convert variables to estimates matrix
mkprofile module to create or edit your 'profile.do'
mkstrsn modules to format Social Security number variables
mktab module to print table of estimates in delimited or screen-presentation format
mlboolean module to implement Boolean logit and probit
mlcoint module to compute Johansen cointegration tests
mlogitroc module to calculate multiclass ROC Curves and AUC from Multinomial Logistic Regression
mlogpred module to produce predicted probabilities after mlogit and svymlog
mlowess module for lowess smoothing with multiple predictors
mlr2sls module for 2SLS estimation with multiple-LATEs robust standard error under treatment effect heterogeneity
mlt module to provide multilevel tools
mm_regress module to compute robust regression estimates
mmat2tex module to output Mata matrix as LaTeX table
mmeiv module to perform Multiple Marginal Effects IV Estimation
mmerge module: Safer and easier to use variant of merge.
32 / 61
ssc外部命令一览.md
N
nb_adjust module to identify and adjust outliers of a variable assumed to follow a negative binomial distribution
nbercycles module to generate graph command (and optionally graph) timeseries vs. NBER recession dating
nbfit module for fitting negative binomial distribution by maximum likelihood
nbinreg module to estimate negative binomial regression models
nbstrat module to estimate Negative Binomial with Endogenous Stratification
ncf modules related to the noncentral F distribution
nct modules related to the noncentral t distribution
ndbci module extending ci for single variable with exposure time.
nearest module to calculate nearest neighbours from point coordinates
nearmrg module to provide nearest-match merging of datasets
nearstat module to calculate distance-based variables and export distance matrix to text file
nehurdle module for estimation of models with corner solutions
neoclassical module to estimate neoclassical education transitions model
netplot module to provide social network visualization
netreg module to perform linear regression of a network response with the exchangeable assumption
network module to perform network meta-analysis
newey2 module to extend newey (HAC covariance estimation)
newsimpact module to compute news impact curve for ARCH models
next module to perform regression discontinuity
ngram module to provide n-gram feature extractor
nharvey module to perform Nyblom-Harvey panel test of common stochastic trends
nicedates module for nice dates, especially for time series graphs
niceest module to export regression table to excel
niceloglabels module to produce nice axis labels for logarithmic scales
nicewords module to pay compliments
njc_stuff module documenting Stata programs and help files by Nicholas J. Cox
nlcheck module to check linearity assumption after model estimation
nlcorr module to compute correlation metric for cross-sample comparisons using non-linear probability models
nmissing module to show numbers of missing or present values
nnest module to perform J test and Cox-Pesaran-Deaton test for nonnested models
nnipolate module for nearest neighbour interpolation
nnmatch module to compute nearest-neighbor bias-corrected estimators
34 / 61
ssc外部命令一览.md
O
oaxaca module to compute the Blinder-Oaxaca decomposition
oaxaca8 module to compute decompositions of outcome differentials
oaxaca9 module to compute the Blinder-Oaxaca decomposition
obsdiff module to identify differences in values across observations for a variable
obsofint module to display observations of interest
ocratio modules to fit continuation-ratio models on ordinal response data
oda module for conducting Optimal Discriminant Analysis
oddsrisk module to convert Logistic Odds Ratios to Risk Ratios
odi module to score Oswestry Disability Index
odkmeta module to import ODK data
odksplit module to split and label multiple response variables generated from ODK or SurveyCTO
oeratio module to calculate ratio of observed to expected outcomes
oesch module to recode ISCO codes into Oesch class scheme
ofrtplot module to plot observed, fitted and residuals versus time variable
oglm module to estimate Ordinal Generalized Linear Models
oglm9 module to estimate Ordinal Generalized Linear Models
35 / 61
ssc外部命令一览.md
P
p2ci module to calculate confidence limits of a regression coefficient from the p-value
pagetrend module to perform Page's L trend test for ordered alternatives
pairdata module to create paired datasets from individual-per-row data
pairplot module for plots of paired observations
pajek2stata module to import network data in Pajek's .net format
palette_all module to display all the named colours in Stata
palettes module to provide color palettes, symbol palettes, and line pattern palettes
pam Module to Estimate Policy Analysis Matrix (PAM)
panelauto module to support tests for autocorrelation on panel data
panelhetero module to examine the degree of heterogeneity across cross-sectional units using panel data
panell module to display panel length for a given set of variables
panels module to count panels and apply a command to panel units
panelthin module to identify observations for possible thinned panel dataset
panelunit module to support unit root tests on panel data
36 / 61
ssc外部命令一览.md
phenotype module to simulate disease status and censored age for family data
piaactools module to provide PIAAC tools
pieplot module to plot pie charts of categorical frequencies
pindex module to compute targeted price indices
pisareg module to perform linear regression with PISA data and plausible values
pisatools module to facilitate analysis of the data from the PISA OECD study
plausexog module to implement Conley et al's plausibly exogenous bounds
plot3d module to draw colored, scalable, rotatable 3D plots
plotbeta module to plot linear combinations of coefficients
plotmatrix module to plot values of a matrix as different coloured blocks
plotrpys module to plot a spectrogram using CSV export from CRExplorer
pls module to calculate composite variables using the partial least squares path modeling (PLS) algorithm
plssas module to execute SAS partial least squares procedure (Windows only)
plssem module to implement Partial least squares structural equation modelling (PLS-SEM)
plztowknr module to translate German zip codes into electoral districts
pmanage module to manage large projects
pmcalplot module to produce calibration plot of prediction model performance
pmsampsize module to calculate the minimum sample size required for developing a multivariable prediction model
png2rtf module to include PNG graphics in RTF documents
pnrcheck module to verify the check digit in Swedish personal identification number
pobrezaecu module to predict poverty in Ecuador
poi2hdfe module to estimate a Poisson regression with two high-dimensional fixed effects
poisml module to estimate maximum likelihood Poisson regression models
polar module to plot polar coordinates
polyspline module to generate sensible bases for polynomials and other splines
poparms module for potential outcome parameter estimation
popsim module to simulate completed fertility and birth intervals for two generations
postrcspline module containing post-estimation commands for models using a restricted cubic spline
postrri module to calculate posterior relative risks
povcalnet module to access World Bank Global Poverty and Inequality measures
povdeco module to calculate poverty indices with decomposition by subgroup
poverty module to calculate poverty measures
povguide module to generate the U.S. Poverty Guideline value for a given family size and year
povimp module to provide poverty estimates in the absence of actual consumption data
povtime module to compute aggregate intertemporal poverty measures (poverty in a panel accounting for time)
power_tworates_zhu module to calculate sample size or power for a two-sample test of rates
powercal module to perform general power and sample size calculations
powerclus module to calculate sample size and/or cluster size for cluster designed studies
powerq module to calculates posterior probabilities for heterogeneity in a meta-analysis
powersim module for simulation-based power analysis for linear and generalized linear models
ppml module to perform Poisson pseudo-maximum likelihood estimation "- ppml_panel_sg module to estimate ""structural gravity"" models via
Poisson PML"
ppmlhdfe module for Poisson pseudo-likelihood regression with multiple levels of fixed effects
ppplot module for P-P plots
ppschromy module to draw sample with probability proportionate to size, using Chromy's method of sequential random sampling
ppssampford module to draw sample with probability proportionate to size, without replacement, using Sampford's method
pre module to calculate the proportional reduction in errors accomplished by an estimated model
predcalc module to calculate out-of-sample predictions for regression, logistic
predsurv module to compute predicted survival to a specified time after streg
predxcat module to calculate predicted means, medians, or proportions for nominal X's
predxcon module to calculate predicted means, medians, or proportions for a continuous X variable
prepar module to write code and data file needed to process variables in PARSCALE
preparation module to facilitate a one-by-one observation of varlist to make it easier to control data and labels
primes module to generate prime numbers
printgph module to execute command for each matching file
38 / 61
ssc外部命令一览.md
probcalc module to calculate probabilities for Binomial, Poisson, and Normal Distributions
probexog-tobexog -tobexog modules to test exogeneity in probit/tobit
probitfe module to compute analytical and jackknife bias corrections for fixed effects estimators of panel probit models with individual and time
effects
probitiv module to perform instrumental variables probit
probitmiss module for Efficient Probit Estimation with Partially missing Covariates
prodest module for production function estimation based on the control function approach
prodvars module to create product variables for two lists of input variables
prody module to calculate factor intensity and sophistication indicators
profhap module to construct profile likelihood confidence intervals for haplotype analysis
progres module to measure distributive effects of an income tax
project module providing a set of tools to build and manage a Stata project
prolist module to list programs, help files, dialogs
propcnsreg module fitting a measurement model with causal indicators
proprcspline module for restricted cubic spline smoothing of proportions
prosperity module to compute Shared Prosperity Convergence Index
prtab module to compute Precision-recall curves
prwe module to calculate the PRWE scores from your records
psacalc module to calculate treatment effects and relative degree of selection under proportional selection of observables and unobservables
psbayes module to perform pseudo-Bayes smoothing of cell estimates
psemail module to send email from within Stata for Windows environment
psestimate module to estimate the propensity score proposed by Imbens and Rubin
pshare module to compute and graph percentile shares
psidtools module to facilitate access to Panel Study of Income Dynamics (PSID)
psiduse module providing easy PSID access
psmatch2 module to perform full Mahalanobis and propensity score matching, common support graphing, and covariate imbalance testing
pspline module providing a penalized spline scatterplot smoother based on linear mixed model technology
pstrata module for optimal propensity score stratification
psweight module to perform IPW- and CBPS-type propensity score reweighting, with various extensions
ptrend module for trend analysis for proportions
ptvtools module contining various tools for PTV analysis
punaf module to compute population attributable fractions for cohort studies
punafcc module to compute population attributable fractions for case-control and survival studies
putdocxcrosstab module to produce crosstabulations with putdocx
putdocxfreqtable module to produce frequency oneway tables with putdocx
putwrap module to simplify creation of putdocx and putpdf documents
pv module to perform estimation with plausible values
pvenn module to create proportional Venn diagram
pvfix module to compute the present value of a series of equal payments (cash flows)
pvvar module to compute the present value of a series of payments (cash flows)
pvw module to perform predictive value weighting for covariate misclassification in logistic regression
pwcorr2 module to compute pairwise correlations and return results
pwcorrf module to compute pairwise correlations efficiently, with builtin reshape functionality
pwcorrs module for enhanced correlation matrix
pwcorrw module to print wide correlation matrix with significance indicators
pwcov module to compute pairwise covariances
pweibull module to generate probability plot for data vs fitted Weibull distribution
pwmc module to compute pairwise multiple comparisons (unequal variances)
pwploti module to plot power curve for sample size and power calculation
pyramid tutorial for population pyramids
python module for using the Python language within Stata
Q
qap module to perform quadratic assignment procedure
39 / 61
ssc外部命令一览.md
qbeta module to generate quantile-quantile plot for data vs fitted beta distribution
qconvert module to convert a raw Q-sort file into a new Q-sort file which is ready for analysis by QFACTOR program
qcount program to fit quantile regression models for count data
qenv module to generate quantile envelopes for quantile-quantile plots
qexp module to produce quantile-quantile plot for data vs fitted exponential distribution
qfactor module to perform Q-analysis on Q-sorts using different factor extraction and factor rotation techniques
qgamma module to generate quantile-quantile plot for data vs fitted gamma distribution
qhapipf module to perform analysis of quantitative traits using regression and log-linear modelling when PHASE is unknown
qic module to compute model selection criterion in GEE analyses
qll module to implement Elliott-M�ller efficient test for general persistent time variation in regression coefficients
qlqc15 module for scoring of the EORTC QLQ-C15-PAL
qn module to estimate Rousseeuw and Croux (1993) robust measure of dispersion "- qog module to access the most recent release of the
""Quality of Government"" data"
qogbook module to access Quality of Government codebooks
qpfit module containing various quantile and probability plots for assessing distribution fit
qqcompare module to evaluate balance after matching using quantile-quantile plots
qqplot2 module to produce quantile-quantile plot
qqplot3 module to plot the unweighted and weighted quantiles of one variable against the corresponding quantiles of another
qqvalue module to generate quasi-q-values by inverting multiple-test procedures
qreg2 module to perform quantile regression with robust and clustered standard errors
qregpd module to perform Quantile Regression for Panel Data
qrisk2cmd module to run QRISK2 from within Stata
qrprocess module for quantile regression: fast algorithm, pointwise and uniform inference
qsim module to produce variables for clarify routines
qsub module to emulate a cluster environment using your desktop PC
quadas module to provide graphical depiction of quality assessment in diagnostic accuracy reviews
qualtricsload module to download survey results from Qualtrics server and optionally convert to Stata dataset
quandl module to obtain data from Quandl using the Quandl API
quantiles module to categorize by quantiles
quickicc module to compute intraclass correlation and standard error calculation after xtmixed
quine module providing a self-producing program
qv module to compute quasi-variances
qweibull module to generate quantile-quantile plot for data vs fitted Weibull distribution
R
r2_mz module to compute McKelvey & Zavoina's R2
r2c module to compute several fit statistics for count data models
r2nlsur module to perform Overall System (NL-SUR) System R2, Adj. R2, F-Test, and Chi2-Test
r2o module to calculate an ordinal explained variation statistic
r2reg3 module to compute System R2, Adj. R2, F-Test, and Chi2-Test after reg3 or sureg
r2sem module to perform Overall System Structural Equation Modeling (SEM) R2, Adj. R2, F-Test, and Chi2-Test
r2var Module to Compute (VAR) Overall System R2, F-Test, and Chi2-Test
radar module to draw radar (spider) plots
radiusmatch module to perform distance-weighted radius matching with bias adjustment
raewma module to plot the risk adjusted exponentially weighted moving average
ralloc module to design randomized controlled trials
ralpha module to generate pseudo-random characters or words
randinf module to calculate the treatment effect and p-value of a stratified randomized controlled experiment
randomforest module to implement Random Forest algorithm
randomid module to identify every observation in the dataset with random alphanumeric characters
randomize module to create random assignments for experimental trials, including blocking, balance checking, and automated rerandomization
randomizr module to implement random assignment procedures
randomselect module to randomly select and tag observations
randomtag module to draw observations without replacement
40 / 61
ssc外部命令一览.md
randtreat module to randomly assign treatments uneven treatments and deal with misfits
randtreatseq module for generating treatments in a random sequence for each individual in the sample
rangejoin module to form pairwise combinations if a key variable is within range
rangerun module to run Stata commands on observations within range
rangestat module to generate statistics using observations within range
rankseg module to compute rank-order segregation measures with finite sample-bias correction
ranktest module to test the rank of a matrix using the Kleibergen-Paap rk statistic
ranova module to estimate single factor repeated measures ANOVA
ranvar module to compute the random group variance estimator of the mean for survey data
raschcvt module to produce data in WINSTEPS format
raschfit module to implement the Raschfit algorithm defined by Hardouin and Mesbah (2004)
raschify module to transform 1PL model estimates to Rasch metric
raschpower module to estimate power of the Wald test in order to compare the means of the latent trait in two groups of individuals
raschtest module to estimate parameters of the Rasch model by CML, MML or GEE
raschtestv7 module to estimate parameters of the Rasch model by CML, MML or GEE (v7)
rasprt module to plot the risk adjusted sequential probability ratio test (+/- risk adjusted cusum)
rassign module to perform regression-based test for random assignment to peer groups
rbounds module to perform Rosenbaum sensitivity analysis for average treatment effects on the treated
rc2 module to estimate Goodman's Row and Columns model 2
rc_spline module to generate restricted cubic splines
rca module to compute various revealed comparative advantage (RCA) indices
rcall module to provide seamless R in Stata
rcd module to run commands recursively
rcentile module to compute robust confidence intervals for percentiles
rcl module for estimation and simulation of random coefficient logit models
rcolp2mat module to produce a two-way table with row and column percentages as a matrix
rcsgen module to generate restricted cubic splines and their derivatives
rcspline module for restricted cubic spline smoothing
rct_minim module to assign treatments to subjects in a controlled trial
rctable module to create a table used in randomized controlled trials
rctmiss module to analyse a randomised controlled trial (RCT) allowing for informatively missing outcome data
rd module for regression discontinuity estimation
rdatasets module to access R datasets available in CSV format from GitHub
rdci module to calculate risk difference confidence intervals
rdcont module to compute non-randomized approximate sign test of density continuity
rdcv module to perform Sharp Regression Discontinuity Design with Cross Validation Bandwidth Selection
rddsga module to conduct subgroup analysis for regression discontinuity designs
rdecompose module to implements Gupta's rate decomposition method for aggregated data
rdesigni module to perform design analysis
rdexo module to produces relevant estimates for testing the external validity of LATE
rdpermute module to perform a permutation test for the Regression Kink (RK) and Regression Discontinuity (RD) Design
rdplot module to graph residual distribution after regression-type command
rdpower module to perform power calculations for random designs
rdrobust module to provide robust data-driven inference in the regression-discontinuity design
rds module for respondent driven sampling
readlog module to read and process a file
readreplace module to make replacements that are specified in an external dataset
readshare module to access Survey of Health Ageing and Retirement in Europe (SHARE) data
realcomimpute module to export and import data to the realcomImpute software package
recap module to perform capture-recapture analysis for three sources with Goodness-of-Fit based confidence intervals
recast2 module to change storage type of variable
reclink module to probabilistically match records
recode2 module to provide extended recode capabilities
reffadjust module to estimate adjusted regression coefficients for the association between two random effects variables
41 / 61
ssc外部命令一览.md
reffect module to compute Pearson's r Effect Size Computation for Analysis of Variance (ANOVA)
reformat module to reformat regression output
reg2docx module to report regression results to formatted table in DOCX file.
reg2hdfe module to estimate a Linear Regression Model with two High Dimensional Fixed Effects
reg_sandwich module to compute cluster-robust (sandwich) variance estimators with small-sample corrections for linear regression
reg_ss module to compute confidence intervals, standard errors, and p-values in a linear regression in which the regressor of interest has a
shift-share structure
regall module to run and compare all regressions derived from complete sets of regressors
reganat module to perform graphical inspection of linear multivariate models based on regression anatomy
regaxis module to make regular linear and logarithmic axis scales, ranges and tick lists
regcheck module to examine regression assumptions
regcoef module to compute coefficients for quantifying relative importance of predictors
regdis module to control variables and decimals in regression displays
regen module to create new or change existing variable
reggae_music module for rasta Stata users
reghdfe module to perform linear or instrumental-variable regression absorbing any number of high-dimensional fixed effects
regife module to estimate linear models with interactive fixed effects
regintfe module to estimate a linear regression model with one interacted high dimensional fixed effect
reglike module to calculate log-likelihood function value from regress
regmain module to perform Quasi-Maximum Likelihood Regression
regoprob module to estimate random effects generalized ordered probit models
regoprob2 module to estimate random effects generalized ordered probit models (update)
regpar module to compute population attributable risks from binary regression models
regplot module to plot regression fit
regpred module to calculate linear regression predictions
regresby module to generate regression residuals by byvarlist
regsave module to save regression results to a Stata-formatted dataset
regtable module to produce file of conditional average treatment effects
regwls module to estimate Weighted Least Squares with factor variables
regxfe module to fit a linear high-order fixed-effects model
rel_clust module to compute indices of relative clusterability of variables
relicoef module to compute Raykov's factor reliability coefficient
relrank module to generate relative data (grade transformation)
rely module to graph reliability plot of predictions for linear or logistic regression models
relyplot module to graph reliability plot of predictions for linear or logistic regression models
renames module to rename variables
renfiles module providing a convenient way to change filenames for (a matched subset of) files in a directory of choice (and, if wanted, also
recursively in a matched subset of offspring-directories)
rensheet module to edit variable names and labels
renvarlab module to rename variables, with option of using variable labels to create new variable names
reorder module to reorder variables in dataset, reversibly
repest module to run estimations with weighted replicate samples and plausible values
replacebylab module to replace values by drawing on value labels
report module to produce tables for XML
reporterror module to estimate true distribution from noisy measurements
repsample module to perform representative sampling from a population or theoretical distributions
reset module to calculate specification tests in regression analysis
reset2 module to calculate specification tests in 2SLS-IV regression analysis
resetxt Module to Compute Panel Data REgression Specification Error Tests (RESET)
reshape3 module to enhance reshape for multilevel data
reshape7 module to provide improved reshape
reshape8 module to reshape while preserving variable labels
respdiff module for generating response differentiation indices
reswage module to estimate a reservation wage model with endogenous selection
retrodesign module to compute type-S (Sign) and type-M (Magnitude) errors
42 / 61
ssc外部命令一览.md
reu module to compute number of random error units (REU) in epidemiological studies
rev module to reverse value order of variables
revcat module to fit reversible catalytic models
revrs module to reverse variable value order
revv module to reverse value order of variables
reweight module for survey reweighting
reweight2 module to reweight survey data to user-defined control totals
rewrite module to rewrite text files from disk performing macro substitutions
rfl module to maintain lists of recently accessed files
rforest module to implement Random Forest algorithm
rfregk module to estimate random-effects model with weights
rgb2 module to generate GB2 random numbers
rglm module to estimate robust generalized linear models
rgroup module for Random Group Variance Estimation
rhausman module to perform Robust Hausman Specification Test
rhetplot module to graph residual heteroscedasticity after regression-type command
rho_xtregar module to estimate a consistent and asymptotically unbiased autocorrelation coefficient for xtregar fixed-effects or random-effects
linear model with an AR(1) disturbance
rhsbsample module for repeated half-sample bootstrap sampling
richness module to compute measures of income richness
ridder module to solve equation by Ridder's method
ridge2sls module to compute Two-Stage Least Squares (2SLS) Ridge & Weighted Regression
ridgereg module to compute Ridge Regression Models
rif module to compute Recentered Influence Functions (RIF): RIF-Regression and RIF-Decomposition
rifle module to perform Randomization Inference for Leader Effects
rii module to perform Repeated-Imputation Inference
riigen module to generate Variables to Compute the Relative Index of Inequality
ritest module to perform randomization inference and permutation tests
rmanova module to estimate repeated measures ANOVA
rmfiles module to provide a convenient way to remove matched files within a specified directory and possibly, if applicable, corresponding empty
directories (which will also, if wanted, be applied recursively to a matched subset of offspring-directories) "- rmpw module to implement the
RMPW method of causal mediation analysis to decompose treatment effects into ""direct"" and ""indirect"" effects"
rmse module to calculate raw or adjusted RMSE (Root MSE)
rnd modules for random number generation
robbox module to compute generalized box plots
robjb module to compute Brys et al. (2008) robust Jarque-Bera Normality test
roblpr module to estimate long memory in a set of timeseries
robreg module providing robust regression estimators
robstat module to compute robust univariate statistics
robumeta module to perform robust variance estimation in meta-regression with dependent effect size estimates
rocmic module to estimate minimally important change (MIC) thresholds for continuous clinical outcome measures using ROC curves
rocss module to calculate ROC curve and other statistics for any classification method
roctabi module for performing nonparametric ROC analysis using summarized data
rolling2 module to perform rolling window and recursive estimation
rolling3 module to compute predicted values for rolling regressions
rollreg module to perform rolling regression estimation
rollstat module to compute rolling-window statistics for time series or panel data
roman module for handling Roman numerals and decimal equivalents
romantoarabic module for converting roman numerals to arabic numbers
rosssekh module to perform forecast comparison and forecast rationality tests
rotate2 module to produce sorted and labeled rotated matrix
rowmat_utils module to perform parallel computation on sequences of matrices in Mata
rowranks module to create row ranks of a set of variables
rowsort module to row sort a set of integer variables
rpme module to compute Robust Pareto midpoint estimator
43 / 61
ssc外部命令一览.md
rpnfcn module to provide a Mata generic function evaluator based on Reverse Polish Notation
rq module to compute Reynal-Querol index of ethnic polarization
rqrs module to install required community-contributed packages
rrcalc module to calculate AAPOR compliant response rates
rrlogit module to estimate logistic regression for randomized response data
rrreg module to estimate linear probability model for randomized response data
rscore module for estimation of responsiveness scores
rscript module to call an R script from Stata
rsens module to perform sensitivity analysis after matching with multiple nearest neighbours
rsgt module to generate skewed generalized t random numbers
rsoort module to perform Oort's Structural Equations Modeling (SEM) based procedure to detect Response Shift
rsort module to perform reproducible random sorting of dataset
rsource module to run R from inside Stata using an R source file
rspeedindex module to compute a response speed index and perform outlier identification
rsz module to draw a stratified simple random sample, a systematic sample, or a randomly split zones sample, with probabilities proportional
to size
rtfutil module to provide utilities for writing Rich Text Format (RTF) files
rtmci module to estimate regression to the mean effects with confidence intervals
rtnorm Mata module to produce truncated normal pseudorandom variates (Mata)
runby module to run a user's program on by-groups of observations
runmixregls module to run the MIXREGLS software from within Stata
runmlwin module to run the MLwiN multilevel modelling software from within Stata
runmplus module to run Mplus from Stata
running module for symmetric nearest neighbour smoothing
runningprod Mata module to obtain the running product of a vector
runparscale module to run PARSCALE from Stata
russ_stata tutorial in Russian
rvfplot2 module to produce residual-versus-fitted plot after regression-type command
rvlrplot module to plot residuals vs lagged residuals for time series data
rvpplot2 module to graph residual-versus-predictor plot after regression-type command
rwg module to compute within group interrater reliability
rwolf module to calculate Romano-Wolf stepdown p-values for multiple hypothesis testing
S
sadi module to compute Sequence Analysis Distance Measures
sae module to provide commands and mata functions devoted to unit level small area estimation
safedrop module to drop variables if and only if varnames specified in full
sampicc module to compute sample size for an intra-class correlation (ICC)
samplepps module to draw a random sample with probabilities proportional to size
samplesize module to execute sampsi multiple times and produce a graph
sampsi_fleming module to compute exact sample size calculation for single-stage designs
sampsi_gehan module to give the parameters of the single stage Gehan design
sampsi_mcc module to calculate Sample Size or Power for Matched Case-Control Studies
sampsi_reg module to calculate the sample size/power for linear regression
sampsi_rho module to compute sample size for a Pearson correlation
sampsi_sccs module to calculate the sample size for self controlled case series study designs
saswrapper module to run a SAS program from within Stata
savasas module to save your dataset as a SAS dataset
save12 module to save data in version 12 format
save12_13 module to save data in version 12 or version 13 format
save13 module to save data in version 13 format
save9 module to save dataset in Stata 9 format
saveascii module to provide wrapper for saveold, incorporating translation of unicode characters to extended ASCII encodings
saveresults module to save output from a command in a file on disk
44 / 61
ssc外部命令一览.md
smcfcs module to perform multiple imputation of covariates by substantive model compatible fully conditional specification
smcl2do module to convert log files to do-files in a robust fashion
smclpres module to create a SMCL presentation from a do file
smcvir module to compute sliced mean variance-covariance inverse regression
smfit module to fit a Singh-Maddala distribution by maximum likelihood
smgfit module to fit a Singh-Maddala distribution to grouped data via ML
smhsiao module to conduct Small-Hsiao test for IIA in multinomial logit
smileplot module to create plots for use with multiple significance tests
smithwelch module to compute trend decomposition of outcome differentials
smrtbl module to produce various tables for putdocx
smvcir module to compute sliced mean variance-covariance inverse regression
smwoodbury module to compute Sherman-Morrison-Woodbury rank-k update to matrix inverse
sob module to perform second-order bootstrap standard error correction
soepdo module to handle SOEP drop-outs
soepren module providing easy SOEP renames
soepuse module providing easy SOEP access
somersd module to calculate Kendall's tau-a, Somers' D and median differences
soreg module to implement the stereotype ordinal regression model
sortl module to sort factor loadings or rotated matrix from PCA or factor
sortlistby module to sort by random or by ancillary numlist
sortobs module to sort observations according to a specified order
sortrows program to perform sort within observation
spaces module to parse a file for delimiters
spagg module to create aggregate source or target contagion spatial effect variable for directed dyadic data
sparkline module for sparkline-type plots
sparl module to produce scatter plot and y-x regression line
spautoc modules to calculate spatial autocorrelation (Moran and Geary measures)
spautoreg module to estimate Spatial (Lag-Error-Durbin-SAC-SPGKS-SPGSAR-GS2SLS-GS3SLS-SPML-SPGS-SPIVREG-IVTobit)
spcs2xt module to Convert Cross Section to Panel Spatial Weight Matrix
spdir module to create directed dyad contagion spatial effect variable
spearman2 module to calculate Spearman rank correlations, extended
spec_stand module to create dataset of stratum-specific, unadjusted and standardized rates
specc module to create specification curves
speccheck module to check model specification
spechist module to produce specific histograms for continuous variables
specialexp module to obtain expression that evaluates to specified string
spectdens module to compute sample spectral density
speedergles module to compute the GLES response speed index
spell module for identification of spells or runs of similar values
spellutil module of utilities for the manipulation of timespan data
spgen module to generate spatially lagged variables
spglsxt module to estimate Spatial Panel Autoregressive Generalized Least Squares Regression
spgmm module to estimate Spatial Autoregressive Generalized Method of Moments Cross Sections Regression
spgmmxt module to estimate Spatial Panel Autoregressive Generalized Method of Moments Regression
spgrid module to generate two-dimensional grids for spatial data analysis
sphdist module to compute spherical distances
spike module to allow for a zero willingness to pay
spikeplt module to generate spike plot showing fine structure of the data
spineplot module for spine plots for two-way categorical data
spkde module to perform kernel estimation of density and intensity functions for two-dimensional spatial point patterns
splagvar module to generate spatially lagged variables, construct the Moran Scatter plot, and calculate Moran's I statistics
split modules for splitting string variables into parts
splitit module to split chronological overlapping spells in spell data
splitvallabels module to split up value labels for multi-line graph labelling
47 / 61
ssc外部命令一览.md
48 / 61
ssc外部命令一览.md
49 / 61
ssc外部命令一览.md
50 / 61
ssc外部命令一览.md
51 / 61
ssc外部命令一览.md
T
t2docx module to report Mean Comparison for variables between two groups with formatted table output in DOCX file
t2way5 module to perform Tukey's Two-Way Analysis by Medians
tab2mat module to produce a one-way table as a matrix
tab2way module to handle two-way tables with percentages
tab3way module to handle three-way tables with percentages
tab_chi modules for tabulation of multiple variables in Stata 8.2 or better
taba module for tabulation of frequencies
tabcond module to tabulate frequencies satisfying specified conditions
tabcount module to tabulate frequencies, with zeros explicit
tabcusum module to graph observed minus expected CUSUM vertically aligned with tabular CUSUM
tabex module to efficiently export tabulations to Excel
tabexport module to export tables of summary statistics to text files
tabform module to export tables of means, standard deviations to text file
tabhbar module to show table of frequencies as horizontal bar chart
tabhplot module to show table of frequencies as horizontal plot
tablab module to autocrosstabulate a variable "- table1 module to create ""table 1"" of baseline characteristics for a manuscript" "- table1_mc
module to create ""table 1"" of baseline characteristics for a manuscript"
tablecol module to add column percentages to table command
tablemat module to produce and export table of results in a matricial format
tablepc module for percent calculation prior to table
tableplot module giving graphical display in two-way table format
tabletutorial module to provide tutorial on automated table generation and reporting with Stata
tabm module to extend tabulate and produce XML format
tabmerge module to tabulate report on merge
tabmult module to produce multiple two-way tabulations
tabone module for exporting single or multiple one-way tabulations into various formats
52 / 61
ssc外部命令一览.md
53 / 61
ssc外部命令一览.md
longitudinal data
twopm module to estimate two-part models
twostepweakiv module to implement two-step weak-instrument-robust confidence sets for linear instrumental-variable (IV) models
twoway_estfit module to enable graph twoway estfit
twoway_parea module to generate area graph with pattern fills (Windows only)
twowayfeweights module to estimate the weights and measure of robustness to treatment effect heterogeneity attached to two-way fixed
effects regressions
txt2qr module to produce QR codes containing plain text
txtlabdef module to define value labels from ASCII (text) file
txttool module providing utilities for text analysis
U
ua module to provide prefix command for unicode utilities
ucgof module to perform univariate categorical goodness-of-fit tests
ucspsplit module to extract paradata from a string variable produced by the universal client-side paradata script
udiff module to estimate the generalized unidiff model for individual-level data
ueve module to compute unbiased errors-in-variables estimator and variants from grouped data
uirt module to fit unidimensional Item Response Theory models
uirt_sim module to simulate data from unidimensional Item Response Theory models
ultimatch module to implement Nearest Neighbor, Radius, Coarsened Exact, Percentile Rank and Mahalanobis Distance Matching
umbrella module to perform O'Brien's Umbrella test
umeta module for u-statistic-based univariate and multivariate random-effects meta-analysis
unemp module module to compute aggregate households employment deprivation (or unemployment) measures
unicode2ascii modules to translate between Unicode and ASCII
unique module to report number of unique values in variable(s)
uniquestrata module to abort the program if the specified variables don't collectively account for every observation
unitab program to display a univariate table for a binary outcome variable
univar module to generate univariate summary with box-and-whiskers plot
univstat module to produce summary statistics in matrix form
urcovar module to perform Elliott-Jansson test for unit roots with stationary covariates
usagelog module to log usage of Stata programs in an existing text file
usd module to get US dollar exchange rates from the Federal Reserve
use10 module to use and describe version 10 datafiles in Stata 9.2
use10save9 module to save matched Stata 10/11 files, from within Stata 9+, in Stata 9 format - either as new files in an automatically created
directory or through replacing previous Stata 10/11 files
use13 module to import Stata 13 (*.dta) data into older versions of Stata
use13save12 module to load sets of matched Stata 13-files into Stata 10-12 and saving them in older formats readable for the Stata 10-12
user
uselab module to list value labels and variables using them
useold module to provide a convenient wrapper for unicode translate in Stata 14+
usepackage module to find and install a list of user-written packages needed to run a do-file
usesas module to use a SAS dataset
usesome module to use subset of Stata dataset
usespss module to import SPSS (*.sav) data (Windows only)
usexmlex module to import data stored in XML format
usmaps module to provide US state map coordinates for tmap
usmaps2 module to provide US county map coordinates for tmap
usswm module to provide US state and county spatial weight (contiguity) matrices
utest module to test for a U-shaped relationship
V
vaf module to compute mediation effect in SEM
valcuofon module for downloading daily share values and assets balances of Chile's unemployment insurance funds and pension system
validly module to correct Stata’s handling of missing values in logical and relational expressions
55 / 61
ssc外部命令一览.md
W
wald_mse module to calculate the maximum mean square error (MSE) of a point estimator of the mean
wbdata module to access World Bank databases
wbopendata module to access World Bank databases
wbull module to fit Weibull distribution by maximum likelihood
wclogit module to perform conditional logistic regression with within-group varying weights
wdireshape module to reshape World Development Indicators database
wdiscrim module to compute earnings discrimination statistics
56 / 61
ssc外部命令一览.md
weakiv module to perform weak-instrument-robust tests and confidence intervals for instrumental-variable (IV) estimation of linear, probit and
tobit models
weakiv10 module to perform weak-instrument-robust tests and confidence intervals for instrumental-variable (IV) estimation of linear, probit and
tobit models
weakivtest module to perform weak instrument test for a single endogenous regressor in TSLS and LIML
weathr module to display US weather conditions
weaver module to produce dynamic reports in HTML, LaTeX and PDF
webdoc module to create a HTML or Markdown document including Stata output
webimage module to print images from web files in pdf, png, jpeg, gif, and bmp format
weeklyclaims module to Get Weekly Initial Jobless Claims from the US Dept. of Labor
weibullfit module to fit a two-parameter Weibull distribution
welcom module for simulating distributional impacts of changes in competition (WELCOM)
welflossas module to compute well-being (monetary) gain/loss measures and social welfare loss indices and curves associated with
segregation using either disaggregated or aggregated data for the quantitative variable
wgttest module to test the impact of sampling weights in regression analysis
whereis module to keep track of ancillary programs and files
which_version module to return location and programmer's version of ado-files
whichpkg module to display information on components of a Stata package
white module to perform White's test for heteroscedasticity
whitetst module to perform White's test for heteroskedasticity
whotdeck module to perform multiple imputation using the Approximate Bayesian Bootstrap with weights
wid module to download data from the World Wealth and Income Database (WID.world)
williams module to estimate logistic regression via Williams procedure
windowsmonitor module to send a winexec command to a Windows operating system and display the output in the Stata results window in
(almost) real time
winsor module to Winsorize a variable
winsor2 module to winsorize data
witch module to mystically manage files on adopath
wntstmvq module to compute multivariate Ljung-Box Q test
wordcb module to create a codebook in MS Word format
wordconvert module to transfer files among several types in Windows
workdays module to compute elapsed workdays
worldstat module to produce a visualisation of the state of world development
wosaddress module to convert datasets from Web of Science data from wide to long
wosload module to load datasets from Web of Science data
wridit module to generate weighted ridits
writeinput module to write dataset in memory to new do-file as an input command
writekml module to write Keyhole Markup Language file
writepsfrag module to translate Stata text to EPS
wtd module to produce analysis of waiting time distribution
wtd_perc module to calculate percentile of inter-arrival density based on the parametric Waiting Time Distribution (WTD)
wtdttt module to estimate parameters of the ordinary and reverse Waiting Time Distribution (WTD) by maximum likelihood
wtp module to estimate confidence intervals for willingness to pay measures
wtpcikr module to estimate Krinsky and Robb Confidence Intervals for Mean and Median Willingness to Pay
wyoung module to perform multiple testing corrections
X
xb2pi module to transform the logit scores into probabilities
xbalance module to compute standardized differences for stratified comparisons via R
xbrcspline module to tabulate differences in predicted responses after restricted cubic spline models
xcollapse module to make data set of summary statistics on disk or in memory
xcontract module to make a data set of frequencies and percents on disk or in memory
xcorplot module to calculate and graph cross-correlation function
xdatelist module to create ascending numeric lists of dates
xdir module to create a resultsset with one observation per file in a directory
57 / 61
ssc外部命令一览.md
xfrac module to produce tabulation using categories defined by fractions of a cut-off value
xglm module to extend glm
xgroup module to create a grouping variable with key values in an output dataset
xls2dta module to save Excel files as Stata datasets
xls2stata module to provide Stata Dialog Box to Import Excel Files into Stata
xmiss module to perform cross-tabulation of missing data
xml_tab module to save results in Excel XML format
xpredict module to extend predict command
xrewide module to extend reshape wide command
xrigls module to calculate reference intervals via generalised least squares
xriml module for estimation of reference intervals ('normal ranges') by maximum likelihood
xsampsi module to calculate sample size for cross-over trials with continuous measures
xsmle module for spatial panel data models estimation
xsvmat module to convert a matrix to variables in an output dataset
xtab module to tabulate longitudinal data
xtable module for exporting table output to Excel
xtabond2 module to extend xtabond dynamic panel data estimator
xtarsim module to perform Monte Carlo analysis for dynamic panel data models
xtavplot module to produce added-variable plots for panel data estimation
xtbalance module to transform the dataset into balanced Panel Data
xtbcfe module to perform bootstrap-corrected Fixed Effects estimation and inference in dynamic panel models
xtcaec module to estimate heterogeneous error correction models in cross-sectional dependent panel data
xtcbfe module to perform bootstrap-corrected Fixed Effects estimation and inference in dynamic panel models
xtcce module to implement the Common Correlated Effects estimator
xtcd module to investigate Variable/Residual Cross-Section Dependence
xtcd2 module to test for weak cross sectional dependence
xtcdf module to perform Pesaran's CD-test for cross-sectional dependence in panel context
xtcenter module to disaggregate within and between-person effects by centering variables for mixed and melogit models
xtcips module to compute Pesaran Panel Unit Root Test in the Presence of Cross-section Dependence
xtcointreg module for panel data generalization of cointegration regression using fully modified ordinary least squares, dynamic ordinary least
squares, and canonical correlation regression methods
xtcsd module to test for cross-sectional dependence in panel data models
xtcse2 module to estimate the exponent of cross-sectional dependence in large panels
xtcsi module to investigate Residual Cross-Section Independence
xtdcce module to estimate heterogeneous coefficient models using common correlated effects in a dynamic panel
xtdcce2 module to estimate heterogeneous coefficient models using common correlated effects in a dynamic panel
xtdolshm module to perform panel data cointegration
xtdpdgmm module to perform generalized method of moments estimation of linear dynamic panel data models
xtdpdml module to estimate Dynamic Panel Data Models using Maximum Likelihood
xtdpdqml module to perform quasi-maximum likelihood linear dynamic panel data estimation
xtendothresdpd module to estimate a Dynamic Panel Data Threshold Effects Model with Endogenous Regressors
xteurostat module to import data from Eurostat in panel data structure
xtewreg module to estimate errors-in-variable model with mismeasured regressors
xtfeis module to estimate linear Fixed-Effects model with Individual-specific Slopes (FEIS)
xtfisher module to compute Fisher type unit root test for panel data
xtfixedcoeftvcu module to estimate Panel Data Models with Coefficients that Vary over Time and Cross-sectional Units
xtfmb module to execute Fama-MacBeth two-step panel regression
xtgcause module to test for Granger non-causality in heterogeneous panels
xtgeebcv module to compute bias-corrected (small-sample) standard errors for generalized estimating equations
xtgraph module to produce graphs of cross-sectional time series (xt) data
xtheckmanfe module to fit panel data models in the presence of endogeneity and selection
xthrtest module to perform Born & Breitung Bias-corrected HR-test for first order panel serial correlation
xthst module to test slope homogeneity in large panels
xthybrid module to estimate hybrid and correlated random effect (Mundlak) models within the framework of generalized linear mixed models
(GLMM)
58 / 61
ssc外部命令一览.md
59 / 61
ssc外部命令一览.md
Y
yrdif module to calculate daily date differences
Z
zandrews module to calculate Zivot-Andrews unit root test in presence of structural break
zb_qrm module to Recoding multiple responses into binary variables
zcq module to score Zurich Claudication Questionnaire
zicen module to estimate a finite mixture model of a degenerate distribution with mass at zero and one or two censored (Tobit) normals
zinb module to estimate zero inflated negative binomial model on count data
zip module to estimate zero inflated Poisson model on count data
zipffit module to fit the Zipf distribution or the Zipf-Mandelbrot distribution by maximum likelihood
zippkg module to create ZIP archives of community-contributed content for offline distribution
zipsave module to save and use datasets compressed by zip
zmap module for binned scatter maps
zoib module to fit a zero-one inflated beta distribution by maximum likelihood
zscore06 module to calculate anthropometric z-scores using the 2006 WHO child growth standards
ztg module to estimate zero-truncated geometric regression
ztnbp module to estimate zero-truncated NegBin-P regression
ztpflex module to estimate zero-truncated Poisson mixture regression
60 / 61
ssc外部命令一览.md
61 / 61