同步操作将从 连享会/Stata-Event_Study 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
My Stata .ado files (and templates for starting a new Stata project).
Converts WRDS event study output to CARs.
Returns Fama-MacBeth (1973) time-series average coefficients with Newey-West (1987) standard errors based.
First-stage estimator can be regress
, logit
, logistic
, probit
, or tobit
,
but the code is easily modifiable to new estimators.
Compatible with estout
.
fm y x1 x2, lag(4)
fm d x1 x2, estimator(logit)
fm y x1 x2, estimator(tobit) options(ll(0) ul(1))
regress
Log transform variable with variable label. Option to add arbitrary constant.
sysuse auto, clear
log_transform price
log_transform weight, add(1)
Peek at head and tail of not-in-memory data.
sysuse auto, clear
save auto, replace
peek using auto
peek price weight using auto
Quickly calculate rolling univariate regressions.
webuse grunfeld, clear
rolling_beta mvalue kstock, short(3) long(5)
Quickly perform rolling correlations.
webuse grunfeld, clear
rolling_rho mvalue kstock, short(3) long(5)
Quickly perform rolling standard deviations.
webuse grunfeld, clear
rolling_sigma mvalue kstock, short(3) long(5)
Easy leads, lags, and differences with variable labels.
webuse grunfeld, clear
time_transform mvalue kstock, operators("S1" "L1" "L2")
time_transform invest, o("L2")
Simple .ado file wrapper for simple .py script to download data from WRDS. Save data as either .dta or .csv file. See https://github.com/wharton/wrds for more information on .py script.
TBD.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。