作者klbetty ( )
看板Statistics
标题[程式] stata
时间Fri Jul 13 09:30:27 2012
正在做propensity score matching+ difference in difference的东西,
找到这个指令
在stata打"help diff"後出现解释
但我看不懂id里面的var要放什麽?
Kernel Propensity Score Matching Diff-in-Diff.
diff fte, t(treated) p(t) cov(bk kfc roys) kernel id(id)
diff fte, t(treated) p(t) cov(bk kfc roys) kernel id(id) support
diff fte, t(treated) p(t) kernel id(id) ktype(gaussian) pscore(_ps)
○kernel
Performs the Kernel-based Propensity Score Matching diff-in-diff. This option
generates _weights that contains the weights derived from the kernel density
function, _ps when the Propensity Score is not specified in pscore(varname).
This option requires the id(varname) of each individual.
○id(varname)
Option kernel requires the supply of the identification variable.
------------------------------------------------------------------------
TITLE请着名软体类别
按ctrl+v可预览 发文前请把灰色的注解删除
可使用ctrl+y删除一整行
[软体程式类别]:
请填入软体程式类别 例如SAS、SPSS、R、EVIEWS...等
[程式问题]:
资料处理、回归、叙述统计、logistic、probit...等
[软体熟悉度]:
请把以下不需要的部份删除
新手(不到1个月)
低(1~3个月)
中(3个月到1年)
高(1年以上)
根据不同熟悉度
板上高手可以给予你不同指导
新手或许需要的还是语法的熟悉
而其他部分则可能往往是盲点上的点破
[问题叙述]:
请详尽叙述遭遇到的问题,可能的话,分点叙述你要处理的流程
能够分点叙述处理流程,基本上在撰写程式或者跑统计时是相当有帮助的
甚至有经验的人可以藉此告知你步骤是否错误
[程式范例]:
虽然张贴程式很可怕,但基本上有些程式还是要张贴才能解决
-----------------------------------------------------------------------------
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 140.109.122.199