连老师:
1、您在Bootstrapping视频中,在Bootstrapping Pairs部分的讲解时,在讲程序时,用到了local这个命令,我不太懂local的意思。查了help文档,里面的定义是:local specifies that the names that the user specifies are to satisfy the naming convention for local macronames. If this option is not specified, standard naming convention is used (names may begin with a letter or underscore, may thereafter also include numbers, and must not be longer than 32 characters). If the user specifies an invalid name, an
error message will be issued. If local is specified, specified names are allowed to begin with numbers but may not be longer than 31 characters.
我的理解是:不用local,名字就先以字母开始,定义local后,就以数字开始。老师,这样理解对吗?
我看您在Bootstrapping Pairs部分的讲解时,在讲程序时,用到了local这个命令,可是我还是没太明白这么多local是啥意思:
local reps = 300 /*抽样次数*/
…………
* 求取 t 值或 z 值
local b_ols = _b[weight] /*OLS 估计系数*/
local t_bs = `b_ols' / `se_bs'
dis "t_bs = " `t_bs'
* 计算 p 值
* 大样本,正态分布
local p_z = 1 - normprob(`t_bs')
dis "p-value = " %6.4f `p_z'
* 小样本,t 分布
local p_t = 1 - tprob(74-2, `t_bs')
dis "p-value = " %6.4f `p_z'
2、老师,红色的字是啥意思啊?
.logit st cash1 rps2 first xsize1 xsize3 dsize1 dsize3
------------------------------------------------------------------------------
st | Coef. Std. Err. z P>|z| [95% Conf. Interval]
-------------+----------------------------------------------------------------
cash1 | -.1051474 .0735592 -1.43 0.153 -.2493207 .039026
rps2 | -1.995512 .1514065 -13.18 0.000 -2.292263 -1.69876
first | -.0236819 .0098309 -2.41 0.016 -.0429501 -.0044138
xsize1 | -.0000149 6.59e-06 -2.26 0.024 -.0000278 -1.99e-06
xsize3 | -1.33e-08 8.52e-08 -0.16 0.876 -1.80e-07 1.54e-07
dsize1 | 1.815823 .474681 3.83 0.000 .8854655 2.746181
dsize3 | -.9601692 .4929565 -1.95 0.051 -1.926346 .0060078
_cons | -2.208543 .3736548 -5.91 0.000 -2.940893 -1.476193
------------------------------------------------------------------------------
Note: 6 failures and 2 successes completely determined.