tabstat 企*w, by(year) s(N mean sd min p25 p50 p75 max) c(s) save 企业投资效率, replace 得到结果 Summary for variables: 企业投资效率_w Group variable: year year | N Mean SD Min p25 p50 p75 Max ---------+------------------------
tabstat i q1 c1 d1, s(min p25 p50 p75 max) format(%6.3f) c(s) variable | min p25 p50 p75 max ---+--- i | 0.001 0.049 0.076 0.113 1.655 q1 | 0.021 0.371 0.675 1.308 111.796 c1 | -0.937 0.124 0.216 0.321 8.707 d1 | 0.000 0.089 0.206 0.320 4.673 --- 2. 单门限模型 rx...
Tabstat income,by (gender)format(%9.3fc) 箱形图: graph box income if income<50000, over(gender) 又如:不同教育程度的收入 Tabstat income,by (edu)format(%9.3fc) 三维交互表 如不同年龄组中,男性和女性的收入情况,stata实现如下: Table age_g gender, c(mean income)format(%9.3fc) 又如,不同...
use hansen1999.dta des help tabstat tabstat i q1 c1 d1,s(min p25 p50 p75 max) format(%6.3f) c(s) xthreg i q1 q2 q3 d1 qd1,rx(c1) qx(d1) thnum(1) grid(400) trim(0.01) bs(300) _matplot e(LR),columns(1 2) yline(7.35,lpattern(dash)) connect(direct) msize(small) m...
史上最全的 Stata 外部命令一览,可以在线查看帮助文件。 Source:Archive of user-written Stata packages 导言 这里汇集了截至 2015年1月1日 为止的所有 Stata 外部命令。可以在线查看每个外部命令的帮助文件。 对于感兴趣的命令,可以使用findit在 Stata 命令窗口中搜索后下载,亦可直接使用ssc install命令直接下载。
although we gave an example earlier of the application oftabstat. One general strategy is to use anegenfunction to calculate something, (possibly)egen, tag()to tag just one observation in each of several groups, and thenlistto show the results. Usingcollapseorcontractfollowed bylistis more dras...
Differences fromtabstat Multiple groups are allowed. Saving the output is done viamatainstead ofr(). No matrices are saved inr()and optionsaveis not allowed. However, optionmatasavesaves the output andby()info inGstatsOutput(the object can be named viamatasave(name)). Seemata GstatsOutput.de...
Other tabulation commands are the following: Command tabulate (oneway) tabulate (twoway) tabulate, summarize() tabstat svy: tabulate (oneway) svy: tabulate (twoway) Description One-way tabulations with percentages and cumulative percentages Two-way tabulations. Optionally computes statistics for ...
tssc install ctabstat ctreatreg module for estimating dose-response models under exogenous and endogenous treatment tssc install ctreatreg cub module to estimate ordinal outcome model estimated by a mixture of a uniform and a shifted binomial tssc install cub cuentacot module for Contributions...
DID_MULTIPLEGT: Stata module to estimate sharp Difference-in-Difference designs with multiple groups and periods 13 EVENTSTUDY2: Stata module to perform event studies with complex test statistics 14 LOGOUT: Stata module to convert log or ASCII files into various output formats ...