原标题:一文读懂108个常用stata命令

本文由计量经济学服务中心编辑整理,转载请注明出处。下面命令按照重要程度以及相关分析方法步骤等依次列出。

Some useful Stata commands

help : online help on a specific command

findit : online references on a keyword or topic

ssc : access routines from the SSC Archive

pwd : print the working directory

cd : change the working directory

log : log output to an external file

tsset : define the time indicator for timeseries or panel data

compress : economize on space used by variables

clear : clear memory

quietly : do not show the results of a command

update query : see if Stata is up to date

adoupdate : see if user-written commands are up to date

exit : exit the program (,clear if dataset is not saved)

Data manipulation commands

generate : create a new variable

describe : describe a data set or current contents of memory

replace : modify an existing variable

rename : rename variable

renvars : rename a set of variables

sort : change the sort order of the dataset

drop : drop certain variables and/or observations

keep : keep only certain variables and/or observations

append : combine datasets by stacking

merge : merge datasets (one-to-one or match merge)

encode : generate numeric variable from categorical variable

recode : recode categorical variable

destring : convert string variables to numeric

foreach : loop over elements of a list, performing a block of code

forvalues : loop over a numlist, performing a block of code

local : define or modify a local macro (scalar variable)

use : load a Stata data set

save : write the contents of memory to a Stata data set

insheet : load a text file in tab- or comma-delimited format

infile : load a text file in space-delimited format or as defined in a

dictionary

outfile : write a text file in space- or comma-delimited format

outsheet : write a text file in tab- or comma-delimited format

contract : make a dataset of frequencies

collapse : make a dataset of summary statistics

tab : abbreviation for tabulate: 1- and 2-way tables

table : tables of summary statistics

Statistical commands

summarize : deive statistics

correlate : correlation matrices

ttest : perform 1-, 2-sample and paired t-tests

anova : 1-, 2-, n-way analysis of variance

regress : least squares regression

predict : generate fitted values, residuals, etc.

test : test linear hypotheses on parameters

lincom : linear combinations of parameters

cnsreg : regression with linear constraints

testnl : test nonlinear hypothesis on parameters

margins : marginal effects (elasticities, etc.)

ivregress : instrumental variables regression

prais : regression with AR(1) errors

sureg : seemingly unrelated regressions

reg3 : three-stage least squares

qreg : quantile regression

Limited dependent variable estimation commands

logit, logistic : logit model, logistic regression

probit : binomial probit model

tobit : one- and two-limit Tobit model

cnsreg : Censored normal regression (generalized Tobit)

ologit, oprobit : ordered logit and probit models

mlogit : multinomial logit model

poisson : Poisson regression

heckman : selection model

Time series estimation commands

arima : Box–Jenkins models, regressions with ARMA errors

arfima : Box–Jenkins models with long memory errors

arch : models of autoregressive conditional heteroskedasticity

dfgls : unit root tests

corrgram : correlogram estimation

var : vector autoregressions (basic and structural)

irf : impulse response functions, variance decompositions

vec : vector error–correction models (cointegration)

sspace : state-space models

dfactor : dynamic factor models

ucm : unobserved-components models

rolling: prefix permitting rolling or recursive estimation over subsets

Panel data estimation commands

xtreg,fe : fixed effects estimator

xtreg,re : random effects estimator

xtgls : panel-data models using generalized least squares

xtivreg : instrumental variables panel data estimator

xtlogit : panel-data logit models

xtprobit : panel-data probit models

xtpois : panel-data Poisson regression

xtgee : panel-data models using generalized estimating equations

xtmixed : linear mixed (multi-level) models

xtabond : Arellano-Bond dynamic panel data estimator

◆◆◆◆

点击上图查看:

《空间计量三部曲:零基础|轻松搞定空间计量:空间计量及GeoDa、Stata、Matlab应用》返回搜狐,查看更多

责任编辑:

matlab运行stata命令,一文读懂108个常用stata命令相关推荐

  1. stata 将数据集变量名称导出_一文读懂空间计量经济学及stata操作

    在Stata 15中,推出了最新的空间计量官方命令,均以sp开头,表示 spatial data),可以处理横截面与面板形式的空间数据.本文主要为大家介绍空间计量命令之spregress的使用. 一. ...

  2. python空间计量经济学_一文读懂空间计量经济学及stata操作

    spcompress:Compress Stata-format shapefile压缩数据成stata格式的shapefile 2.Looking at data/观测数据 2.Looking at ...

  3. matlab 解方程组_一文读懂MATLAB微分方程

    此教程说明如何使用 MATLAB 构造几种不同类型的微分方程并求解.MATLAB 提供了多种数值算法来求解各种微分方程: 初始值问题 边界值问题 时滞微分方程 偏微分方程 初始值问题 vanderpo ...

  4. 【Python】一文读懂Python正则表达式常用用法

    点击上方"AI遇见机器学习",选择"星标"公众号 重磅干货,第一时间送达 编辑:爱学AI 来源:geekvi   链接: www.segmentfault.co ...

  5. 一文读懂机器学习的常用模型评价指标

    分类任务 TP,TN,FN,FP 这是个很直觉的分类,T在开头说明这个是完全正确的.F开头就说明是完全错误的. 真正例(True Positive, TP):被模型预测为正的正样本: 假正例(Fals ...

  6. 预测评价系统_「机器学习」一文读懂分类算法常用评价指标

    前言 评价指标是针对将相同的数据,输入不同的算法模型,或者输入不同参数的同一种算法模型,而给出这个算法或者参数好坏的定量指标. 在模型评估过程中,往往需要使用多种不同的指标进行评估,在诸多的评价指标中 ...

  7. stata 求输出相关系数矩阵命令_一文读懂结果输出命令大全(上)

    目录 描述统计量 help tabstat   //Stata 官方命令 描述统计量组间均值差异检验 help ttest help ttable2 help estout 相关分析命令 help p ...

  8. psm倾向得分匹配法举例_一文读懂倾向得分匹配法(PSM)举例及stata实现(一)

    原标题:一文读懂倾向得分匹配法(PSM)举例及stata实现(一) 一.倾向匹配得分应用之培训对工资的效应 政策背景:国家支持工作示范项目( National Supported Work,NSW ) ...

  9. 空间计量 python_一文读懂空间计量入门之空间数据、权重矩阵、空间统计、空间模型等简介...

    原标题:一文读懂空间计量入门之空间数据.权重矩阵.空间统计.空间模型等简介 来源:计量经济学服务中心编辑整理,转载请联系 1 前言 空间分析起源于地理学.空间经济学和相关学科.到目前为止,它被认为是专 ...

最新文章

  1. 概念化学习Django
  2. 人人可以理解的区块链100问——区块链记录哪些信息
  3. 前端学习(3089):vue+element今日头条管理-关于接口的调错
  4. Scrapy 爬虫教程导航
  5. 没有bug队——加贝——Python 59,60
  6. 多媒体交互应用基础(11)
  7. 语音识别学习笔记(二)【基于矢量量化的识别技术】
  8. 《统计学习方法》读书笔记——K近邻法(原理+代码实现)
  9. MAX232无RS232电平信号输出、MAX232/3232硬件设计电路、电荷泵电容、max3221电路
  10. 全网首发:分析及解决com.jogamp.opengl.GLException: J3D-Renderer-1: createImpl ARB n/a but required
  11. axis wsdl2java_AXIS1.4 客户端 wsdl2java 使用方法
  12. 微信僵尸粉源码php,清除微信僵尸粉工具源码
  13. cad手机看图 android,CAD手机看图
  14. 计算机图像双曲线的代码,双曲线
  15. 142. 环形链表 II 双指针法
  16. 万有引力的意思_详细解释万有引力的本质 - 物理 - 小木虫 - 学术 科研 互动社区...
  17. SpringCloud(一)_健康自检
  18. pecl 安装指定版本swoole
  19. Django应用及分布式路由
  20. React Native ---fetch 之GET请求带参数

热门文章

  1. html如何让图片不能抓取,Jsoup+Htmlunit抓取图片遇到坑
  2. aarch64安装mysql_Linux安装MySQL
  3. 名场面!围观业内最强AI应用技术,8月AI能力又升级了
  4. python初中可以学吗_初中学历零基础想转行Python,能否学会?Python难吗?
  5. linux 软件备份 主从,linux高可用(HA)keepalived 主从备份
  6. 深度学习 神经网络的优化方法
  7. 蓝牙耳机无法打开计算机,蓝牙无线耳机怎么连接电脑 蓝牙耳机连接电脑方法【详解】...
  8. 黄金瞳-域名历史成交价格查询器
  9. 计算机编程STATA,Stata软件编程与Mata运算高级应用教程
  10. 搞了三年,再看数据中台的价值与解决方案