楼主: zzzbeef
4873 4

validity and reliability 在stata中运用? [推广有奖]

  • 0关注
  • 0粉丝

学前班

60%

还不是VIP/贵宾

-

威望
0
论坛币
22 个
通用积分
0
学术水平
0 点
热心指数
0 点
信用等级
0 点
经验
70 点
帖子
3
精华
0
在线时间
0 小时
注册时间
2007-8-6
最后登录
2008-10-27

楼主
zzzbeef 发表于 2007-8-11 08:15:00 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

求职就业群
赵安豆老师微信:zhaoandou666

经管之家联合CDA

送您一个全额奖学金名额~ !

感谢您参与论坛问题回答

经管之家送您两个论坛币!

+2 论坛币

请问各位高手

有谁知道validity and reliability 在stata 中如何运用?

谢谢

[em17]
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

关键词:reliability liability validity Ability Valid Stata reliability validity

回帖推荐

jyliao 发表于4楼  查看完整内容

OVERIDXT: Stata module to test validity of instruments in xtivreg*! overidxt from overid V1.5.0 C F Baum, Vince Wiggins, Steve Stillman * overid V1.1 C F Baum 9B19 * Ref: Davidson and MacKinnon, Estimation and Inference in Econometrics, p.236 * Wooldridge, Econometric Analysis of Cross-Section and Panel Data, p.123 * V1.3: add handling of weights, guard against use with robust * V1.3 ...

沙发
jyliao 发表于 2007-8-11 09:40:00
Reliability == Survival Data analysis

藤椅
zzzbeef 发表于 2007-8-11 09:52:00

那validity 呢 大虾

板凳
jyliao 发表于 2007-8-11 11:04:00

OVERIDXT: Stata module to test validity of instruments in xtivreg

*! overidxt from overid V1.5.0 C F Baum, Vince Wiggins, Steve Stillman * overid V1.1 C F Baum 9B19 * Ref: Davidson and MacKinnon, Estimation and Inference in Econometrics, p.236 * Wooldridge, Econometric Analysis of Cross-Section and Panel Data, p.123 * V1.3: add handling of weights, guard against use with robust * V1.35: correct handling of inst list * V1.4.0: adds support for xtivreg, fe * V1.4.1: standard error msg re xtivreg * V1.4.2: move to ivreg 5.00.09 for collinear instruments correction * V1.4.3: fixed bug with lagged covariates in xtivreg * V1.4.4: suppress constant in aux reg if no constant in orig eqn, per ivreg2 * V1.4.5: 80-byte bug looking for _cons * V1.5.0: support only xtivreg, fe program define overidxt, rclass version 6.0 syntax if "`e(cmd)'" ~= "xtivreg" { di in r "overidxt only works after xtivreg, fe" error 301 } if "`e(cmd)'" == "ivreg" & "`e(version)'" < "05.00.09" { di in red "overidxt requires version 5.0.9 or later of ivreg" di in red "type -update query- and follow the instructions" /* */ " to update your Stata" exit 198 } if "`e(cmd)'" == "xtivreg" & "`e(version)'" < "1.1.4" { di in red "overidxt requires version 1.1.4 or later of xtivreg" di in red "type -update query- and follow the instructions" /* */ " to update your Stata" exit 198 } if "`e(cmd)'" == "xtivreg" & "`e(model)'" ~= "fe" { di in red "test is only valid with fixed effects models" exit 198 } if "`e(vcetype)'" == "Robust" { di in red "test not valid with robust covariance estimates" exit 198 } if "`e(wtype)'" == "aweight" | "`e(wtype)'" == "iweight" { di in red "test not valid with aweights or iweights" exit 198 } tempname res rssiv ivk inst inst2 regest touse weight idvar /* idvar in fixed effect model */ local idvar `e(ivar)' /* determine whether _cons in original list (includes ,noc hanscons) */ tempname b mat `b' = e(b) local x : colnames `b' * FRAGILE FOR LISTS > 80 BYTES * if index("`x'","_cons")==0 { local noc ",noc" } local nc : word count `x' local hc 0 forv i = 1 /`nc' { local w : word `i' of `x' if "`w'" == "_cons" { local hc 1 } } if `hc' == 0 { local noc ",noc" } /* calculate degree of overid */ if "`e(cmd)'" == "ivreg" { local ivk = e(df_m) } else if "`e(cmd)'" == "xtivreg" { local ivk = e(df_rz) } /* instrument list */ local inst `e(insts)' gen byte `touse' = e(sample) /* fetch residuals and calc their SS */ if "`e(cmd)'" == "ivreg" { qui predict double `res' if `touse' , res } else if "`e(cmd)'" == "xtivreg" { qui predict double `res' if `touse' , e } local rssiv = e(rss) local inst2 `e(insts)' local weight "" if "`e(wexp)'" != "" { local weight "[`e(wtype)'`e(wexp)']" } /* regress IV residuals on instrument list */ capture { estimates hold `regest' tsrevar `res' `inst2' xtreg `r(varlist)' `weight' if `touse', fe i(`idvar') return scalar N = e(N) return scalar overid = return(N)*(1.0-e(rss)/`rssiv') return scalar df = `ivk'-e(df_r) return scalar p = chiprob(return(df),return(overid)) estimates unhold `regest' } if return(df) == 0 { di in red _n "There are no overidentifying restrictions." exit } di in gr _n "Test of overidentifying restrictions: " /* */ in ye %7.3f return(overid) in gr /* */ in gr " Chi-sq(" %2.0f in ye return(df) /* */ in gr ") P-value = " in ye %6.0g return(p) end exit 
已有 1 人评分经验 论坛币 学术水平 热心指数 信用等级 收起 理由
Sunknownay + 100 + 10 + 1 + 1 + 1 热心帮助其他会员

总评分: 经验 + 100  论坛币 + 10  学术水平 + 1  热心指数 + 1  信用等级 + 1   查看全部评分

报纸
zzzbeef 发表于 2007-8-11 16:23:00

太感谢了。

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
加好友,备注jltj
拉您入交流群
GMT+8, 2025-12-25 06:20