一文读懂outreg2之描述与回归分析输出结果大全

您所在的位置:网站首页 stata描述性分析导出word结果 一文读懂outreg2之描述与回归分析输出结果大全

一文读懂outreg2之描述与回归分析输出结果大全

2024-07-10 08:27| 来源: 网络整理| 查看: 265

►本文由计量经济学服务中心编辑整理,转载请注明出处

本文主要在前期中心推文基础上,为大家推出系列文章,主要讲解如何将stata与word等结合,一键解决出各种分析需要的表格等。

- 描述性分析-

描述性统计通常对收集来的数据进行直接的频率、频数等描述,描述性统计分析一般对样本的最小值、最大值、平均值、标准偏差等进行分析,这些数据有助于了解样本数据特征,能够清晰的看到各个统计量的分布情况。

程序如下:

sysuse auto.dta,clear

outreg2using "logout-basic2", sum(detail) replace word excel dec(3) keep(price mpg rep78 headroom) eqkeep(N mean sd p5 p25 p50 p75 p95)

展开全文

-回归结果输出-

代码为:

reg price mpg rep78

outreg2 using "reg", word excel replace

多个回归方程的合并输出

sysuse auto,clear

regprice weight

est store m1

regprice mpg rep78 weight

eststore m2

regprice rep78 weight

eststore m3

outreg2[m1 m2 m3] using daqinxueshu.doc,stats(coef,tstat) addstat(Ajusted R2,`e(r2_a)') replace

-面板数据输出-

webuse grunfeld, clear

.xtset company year

panel variable: company (strongly balanced)

time variable: year, 1935 to 1954

delta: 1 year

xtreginvest mvalue kstock, re robust

outreg2using "pannel", word excel replace

xtreginvest mvalue kstock, fe robust

outreg2using "pannel", word excel append

◆◆◆◆

《零基础|轻松搞定空间计量:空间计量及GeoDa、Stata应用》重磅首发,立减200元返回搜狐,查看更多

责任编辑:



【本文地址】


今日新闻


推荐新闻


CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3