Stata User Group Meeting in Kyoto / ( / ) Stata User Group Meeting in Kyoto / 21

Similar documents
.001 nonsmoker smoker 0 Density 5.0e infant birthweight (grams) Graphs by 1 if mother smoked 図 2. 新生児体重のヒストグラム (

こんにちは由美子です

% 10%, 35%( 1029 ) p (a) 1 p 95% (b) 1 Std. Err. (c) p 40% 5% (d) p 1: STATA (1). prtesti One-sample test of pr

第11回:線形回帰モデルのOLS推定

80 X 1, X 2,, X n ( λ ) λ P(X = x) = f (x; λ) = λx e λ, x = 0, 1, 2, x! l(λ) = n f (x i ; λ) = i=1 i=1 n λ x i e λ i=1 x i! = λ n i=1 x i e nλ n i=1 x

AR(1) y t = φy t 1 + ɛ t, ɛ t N(0, σ 2 ) 1. Mean of y t given y t 1, y t 2, E(y t y t 1, y t 2, ) = φy t 1 2. Variance of y t given y t 1, y t

卒業論文

ECCS. ECCS,. ( 2. Mac Do-file Editor. Mac Do-file Editor Windows Do-file Editor Top Do-file e

.. est table TwoSLS1 TwoSLS2 GMM het,b(%9.5f) se Variable TwoSLS1 TwoSLS2 GMM_het hi_empunion totchr

こんにちは由美子です

dvi

1 Stata SEM LightStone 4 SEM 4.. Alan C. Acock, Discovering Structural Equation Modeling Using Stata, Revised Edition, Stata Press 3.

1 Stata SEM LightStone 3 2 SEM. 2., 2,. Alan C. Acock, Discovering Structural Equation Modeling Using Stata, Revised Edition, Stata Press.

Stata11 whitepapers mwp-037 regress - regress regress. regress mpg weight foreign Source SS df MS Number of obs = 74 F(

yamadaiR(cEFA).pdf

Stata 11 Stata ROC whitepaper mwp anova/oneway 3 mwp-042 kwallis Kruskal Wallis 28 mwp-045 ranksum/median / 31 mwp-047 roctab/roccomp ROC 34 mwp-050 s

H22 BioS (i) I treat1 II treat2 data d1; input group patno treat1 treat2; cards; ; run; I

y i OLS [0, 1] OLS x i = (1, x 1,i,, x k,i ) β = (β 0, β 1,, β k ) G ( x i β) 1 G i 1 π i π i P {y i = 1 x i } = G (

(lm) lm AIC 2 / 1

H22 BioS t (i) treat1 treat2 data d1; input patno treat1 treat2; cards; ; run; 1 (i) treat = 1 treat =

最小2乗法

28

Microsoft Word - 計量研修テキスト_第5版).doc

untitled

10

こんにちは由美子です

kubostat2018d p.2 :? bod size x and fertilization f change seed number? : a statistical model for this example? i response variable seed number : { i

浜松医科大学紀要

5 Armitage x 1,, x n y i = 10x i + 3 y i = log x i {x i } {y i } 1.2 n i i x ij i j y ij, z ij i j 2 1 y = a x + b ( cm) x ij (i j )

kubostat7f p GLM! logistic regression as usual? N? GLM GLM doesn t work! GLM!! probabilit distribution binomial distribution : : β + β x i link functi

¥¤¥ó¥¿¡¼¥Í¥Ã¥È·×¬¤È¥Ç¡¼¥¿²òÀÏ Âè2²ó

一般化線形 (混合) モデル (2) - ロジスティック回帰と GLMM

<4D F736F F D20939D8C7689F090CD985F93C18EEA8D758B E646F63>

雇用と年金の接続 在職老齢年金の就業抑制効果と老齢厚生年金受給資格者の基礎年金繰上げ受給要因に関する分析 The Labour Market Behaviour of Older People: Analysing the Impact of the Reformed "Earning Test"

α β *2 α α β β α = α 1 β = 1 β 2.2 α 0 β *3 2.3 * *2 *3 *4 (µ A ) (µ P ) (µ A > µ P ) 10 (µ A = µ P + 10) 15 (µ A = µ P +

Rによる計量分析:データ解析と可視化 - 第3回 Rの基礎とデータ操作・管理

DAA09

2 2 natural experiments y y 1 y 0 y 1 y 0 y 1 y 0 counterfactual y 1 y 0 d treatment indicator d = 1 (treatment group) d = 0 control group average tre


k2 ( :35 ) ( k2) (GLM) web web 1 :

Stata 11 whitepaper mwp 4 mwp mwp-028 / 41 mwp mwp mwp-079 functions 72 mwp-076 insheet 89 mwp-030 recode 94 mwp-033 reshape wide

THE INSTITUTE OF ELECTRONICS, INFORMATION AND COMMUNICATION ENGINEERS TECHNICAL REPORT OF IEICE.

1 Stata SEM LightStone 1 5 SEM Stata Alan C. Acock, Discovering Structural Equation Modeling Using Stata, Revised Edition, Stata Press. Introduc

オーストラリア研究紀要 36号(P)☆/3.橋本

A5 PDF.pwd

¥¤¥ó¥¿¡¼¥Í¥Ã¥È·×¬¤È¥Ç¡¼¥¿²òÀÏ Âè2²ó

Vol. 42 No pp Headcount ratio p p A B pp.29

Stata 11 Stata ts (ARMA) ARCH/GARCH whitepaper mwp 3 mwp-083 arch ARCH 11 mwp-051 arch postestimation 27 mwp-056 arima ARMA 35 mwp-003 arima postestim

第2回:データの加工・整理

こんにちは由美子です

Microsoft Word - 計量研修テキスト_第5版).doc

自由集会時系列part2web.key

σ t σ t σt nikkei HP nikkei4csv H R nikkei4<-readcsv("h:=y=ynikkei4csv",header=t) (1) nikkei header=t nikkei4csv 4 4 nikkei nikkei4<-dataframe(n

untitled

BR001

fx-9860G Manager PLUS_J

kubostat2017b p.1 agenda I 2017 (b) probability distribution and maximum likelihood estimation :

第13回:交差項を含む回帰・弾力性の推定

JGSS統計分析セミナー2009-傾向スコアを用いた因果分析-

untitled

kubostat2015e p.2 how to specify Poisson regression model, a GLM GLM how to specify model, a GLM GLM logistic probability distribution Poisson distrib

12/1 ( ) GLM, R MCMC, WinBUGS 12/2 ( ) WinBUGS WinBUGS 12/2 ( ) : 12/3 ( ) :? ( :51 ) 2/ 71

1 15 R Part : website:

28 Horizontal angle correction using straight line detection in an equirectangular image

10:30 12:00 P.G. vs vs vs 2

DATA Sample1 /**/ INPUT Price /* */ DATALINES

untitled

Studies of Foot Form for Footwear Design (Part 9) : Characteristics of the Foot Form of Young and Elder Women Based on their Sizes of Ball Joint Girth


4.9 Hausman Test Time Fixed Effects Model vs Time Random Effects Model Two-way Fixed Effects Model

²¾ÁÛ¾õ¶·É¾²ÁË¡¤Î¤¿¤á¤Î¥Ñ¥Ã¥±¡¼¥¸DCchoice ¡Ê»ÃÄêÈÇ¡Ë

udc-2.dvi

kubostat2017c p (c) Poisson regression, a generalized linear model (GLM) : :

計量経済分析 2011 年度夏学期期末試験 担当 : 別所俊一郎 以下のすべてに答えなさい. 回答は日本語か英語でおこなうこと. 1. 次のそれぞれの記述が正しいかどうか判定し, 誤りである場合には理由, あるいはより適切な 記述はどのようなものかを述べなさい. (1) You have to wo



4 OLS 4 OLS 4.1 nurseries dual c dual i = c + βnurseries i + ε i (1) 1. OLS Workfile Quick - Estimate Equation OK Equation specification dual c nurser

Microsoft Word - 計量研修テキスト_第5版).doc

Microsoft Word - 計量研修テキスト_第5版).doc

R/S.5.72 (LongTerm Strage 1965) NASA (?. 2? (-:2)> 2?.2 NB. -: is half

A Nutritional Study of Anemia in Pregnancy Hematologic Characteristics in Pregnancy (Part 1) Keizo Shiraki, Fumiko Hisaoka Department of Nutrition, Sc

(iii) x, x N(µ, ) z = x µ () N(0, ) () 0 (y,, y 0 ) (σ = 6) *3 0 y y 2 y 3 y 4 y 5 y 6 y 7 y 8 y 9 y ( ) *4 H 0 : µ

( ) [1] [4] ( ) 2. [5] [6] Piano Tutor[7] [1], [2], [8], [9] Radiobaton[10] Two Finger Piano[11] Coloring-in Piano[12] ism[13] MIDI MIDI 1 Fig. 1 Syst

Microsoft Word - StatsDirectMA Web ver. 2.0.doc

IPSJ SIG Technical Report Pitman-Yor 1 1 Pitman-Yor n-gram A proposal of the melody generation method using hierarchical pitman-yor language model Aki

Ⅰ.市場リスクの計測手法

211 ‚æ2fiúŒÚ

5D1 SY0004/14/ SICE 1, 2 Dynamically Consistent Motion Design of Humanoid Robots even at the Limit of Kinematics Kenya TANAKA 1 and Tomo

R John Fox R R R Console library(rcmdr) Rcmdr R GUI Windows R R SDI *1 R Console R 1 2 Windows XP Windows * 2 R R Console R ˆ R


Microsoft Word - Win-Outlook.docx

Microsoft PowerPoint - TA報告(7)

<4D F736F F D C982E682E C838B B835E95AA90CD2E646F63>

FAX-760CLT

2 Tobin (1958) 2 limited dependent variables: LDV 2 corner solution 2 truncated censored x top coding censor from above censor from below 2 Heck

.3 ˆβ1 = S, S ˆβ0 = ȳ ˆβ1 S = (β0 + β1i i) β0 β1 S = (i β0 β1i) = 0 β0 S = (i β0 β1i)i = 0 β1 β0, β1 ȳ β0 β1 = 0, (i ȳ β1(i ))i = 0 {(i ȳ)(i ) β1(i ))

1 I EViews View Proc Freeze

2 H23 BioS (i) data d1; input group patno t sex censor; cards;

: (EQS) /EQUATIONS V1 = 30*V F1 + E1; V2 = 25*V *F1 + E2; V3 = 16*V *F1 + E3; V4 = 10*V F2 + E4; V5 = 19*V99


Transcription:

Stata User Group Meeting in Kyoto / 2017 9 16 ( / ) Stata User Group Meeting in Kyoto 2017 9 16 1 / 21

Rosenbaum and Rubin (1983) logit/probit, ATE = E [Y 1 Y 0 ] ( / ) Stata User Group Meeting in Kyoto 2017 9 16 2 / 21

Rosenbaum and Rubin Y = { Y0 if W = 0 Y 1 if W = 1 ATE = E [Y 1 Y 0 ] = E [E [Y W = 1, X] E [Y W = 0, X]] ( / ) Stata User Group Meeting in Kyoto 2017 9 16 3 / 21

teffects psmatch( ) psmatch2 optmatch2 pscore ( / ) Stata User Group Meeting in Kyoto 2017 9 16 4 / 21

teffects psmatch. webuse cattaneo2,clear. teffects psmatch (bweight) (mbsmoke mmarried c.mage##c.mage fbaby medu) AI Robust bweight Coef. Std. Err. z P> z [95% Conf. Interval] ATE mbsmoke (smoker vs nonsmoker) -210.9683 32.021-6.59 0.000-273.7284-148.2083 0 ( / ) Stata User Group Meeting in Kyoto 2017 9 16 5 / 21

Abadie and Imbens (2012) ATE N ( ˆτ τ) d N ( 0, σ 2) (1) ( ) N ( ˆτ τ) d N 0, σ 2 c I 1 θ c (2) ( / ) Stata User Group Meeting in Kyoto 2017 9 16 6 / 21

psmatch2 teffects psmatch ATE. psmatch2 mbsmoke mmarried c.mage##c.mage fbaby medu, out(bweight) ties logit ate psmatch2 mbsmoke mmarried c.mage##c.mage fbaby medu, out(bweight) /// noreplacement logit ate ( / ) Stata User Group Meeting in Kyoto 2017 9 16 7 / 21

psmatch2 There are observations with identical propensity score values. The sort order of the data could affect your results. Make sure that the sort order is random before calling psmatch2. Variable Sample Treated Controls Difference S.E. T-stat bweight Unmatched 3137.65972 3412.91159-275.251871 21.4528037-12.83 ATT 3137.65972 3396.11227-258.452546 19.6564795-13.15 ATU 3456.31944 3137.65972-318.659722.. ATE -288.556134.. Note: S.E. does not take into account that the propensity score is estimated. ( / ) Stata User Group Meeting in Kyoto 2017 9 16 8 / 21

ATE bootstrap r(ate),reps(100):psmatch2 mbsmoke mmarried c.mage##c.mage /// fbaby medu, out(bweight) logit ate noreplacement Observed Bootstrap Normal-based Coef. Std. Err. z P> z [95% Conf. Interval] _bs_1-288.5561 24.14543-11.95 0.000-335.8803-241.232 ( / ) Stata User Group Meeting in Kyoto 2017 9 16 9 / 21

optmatch2 teffects psmatch psmatch2, 0.5(N), 0.6(S), 0.1(S), 0.9(N), 0.5 0.6 + 0.1 0.9 = 0.9,, 0.1 0.5 + 0.6 0.9 = 0.7 optmatch2, ( / ) Stata User Group Meeting in Kyoto 2017 9 16 10 / 21

optmatch2 optmatch2, optmatch2 isvar matcorr 2 ado ps. webuse cattaneo2,clear. logit mbsmoke mmarried c.mage##c.mage fbaby medu. predict ps ( / ) Stata User Group Meeting in Kyoto 2017 9 16 11 / 21

optmatch2. optmatch2 mbsmoke ps,gen(mid). drop if mid==.. save optdata,replace *. drop if mbsmoke==1. save nonsmg,replace ( / ) Stata User Group Meeting in Kyoto 2017 9 16 12 / 21

optmatch2 *. use optdata,clear. keep mid mbsmoke bweight. rename bweight bwsm. drop if mbsmoke==0. save smokeg,replace *mid 1:1. use nonsmg,clear. merge 1:1 mid using smokeg. ttest bweight==bwsm ( / ) Stata User Group Meeting in Kyoto 2017 9 16 13 / 21

optmatch2 Paired t test Variable Obs Mean Std. Err. Std. Dev. [95% Conf. Interval] bweight 864 3372.074 20.06695 589.8455 3332.688 3411.46 bwsm 864 3137.66 19.08197 560.8931 3100.207 3175.112 diff 864 234.4144 27.06968 795.6828 181.2842 287.5445 mean(diff) = mean(bweight - bwsm) t = 8.6597 Ho: mean(diff) = 0 degrees of freedom = 863 Ha: mean(diff) < 0 Ha: mean(diff)!= 0 Ha: mean(diff) > 0 Pr(T < t) = 1.0000 Pr( T > t ) = 0.0000 Pr(T > t) = 0.0000 ( / ) Stata User Group Meeting in Kyoto 2017 9 16 14 / 21

. tebalance overlap ( / ) Stata User Group Meeting in Kyoto 2017 9 16 15 / 21

Subclassification Rosembaum and Rubin (1983) ATE τ = Var ( ˆτ) = K n k N [Ȳ 0k Ȳ 1k ] k=1 K k=1 ( nk N ) 2 Var [Ȳ0k Ȳ 1k ] ( / ) Stata User Group Meeting in Kyoto 2017 9 16 16 / 21

pscore pscore ATT ATT attr, attk, attnw, attnd, atts ( / ) Stata User Group Meeting in Kyoto 2017 9 16 17 / 21

pscore. webuse cattaneo2,clear. gen mage2=mageˆ2. pscore mbsmoke mmarried mage mage2 fbaby, /// pscore(pscore) blockid(myblock) numblo(2). atts bweight mbsmoke mmarried mage mage2 fbaby, /// pscore(pscore) blockid(myblock) boot reps(100) dots ( / ) Stata User Group Meeting in Kyoto 2017 9 16 18 / 21

pscore Bootstrapping of standard errors command: atts bweight mbsmoke mmarried mage mage2 fbaby, pscore(pscore) blockid(myblock) statistic: atts = r(atts)... >... note: label truncated to 80 characters Bootstrap statistics Number of obs = 4642 Replications = 100 Variable Reps Observed Bias Std. Err. [95% Conf. Interval] atts 100-228.7896 -.112328 21.20738-270.8696-186.7095 (N) -275.8594-188.1406 (P) -276.1806-191.0637 (BC) Note: N = normal P = percentile BC = bias-corrected ATT estimation with the Stratification method Bootstrapped standard errors n. treat. n. contr. ATT Std. Err. t 864 3778-228.790 21.207-10.788. ( / ) Stata User Group Meeting in Kyoto 2017 9 16 19 / 21

ATE S.E ttest 275.3 21.5 unpaired t test teffects psmatch 211.0 32.0 w.rep, tie psmatch2 boot 288.6 24.1 w/o rep,no tie optmatch2 234.4 27.1 w/o rep,no tie pscore+atts 228.8 21.2 w/o rep,no tie, ATT ( / ) Stata User Group Meeting in Kyoto 2017 9 16 20 / 21

teffects nnmatch teffects ra teffects ipw teffects aipw teffects ipwra ( / ) Stata User Group Meeting in Kyoto 2017 9 16 21 / 21