2.使用bootstrap命令,基于主效应模型结果进行Bootstrap重复采样: bootstrap, reps(1000): xttobit y x1 x2, ll(0) 3.定义中介变量和中介效应计算表达式: gen medeffect = (效应1)*(效应2) 4.在bootstrap循环内计算中介效应: bootstrap, reps(1000): quietly { xttobit y x1 x2, ll(0) *计算中介效...
1.建立面板Tobit模型,估计主效应模型,保存估计结果: xttobit y x1 x2, ll(0) estimates store main 2.使用bootstrap命令,基于主效应模型结果进行Bootstrap重复采样: bootstrap, reps(1000): xttobit y x1 x2, ll(0) 3.定义中介变量和中介效应计算表达式: gen medeffect = (效应1)*(效应2) 4.在bootst...