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

Similar documents
こんにちは由美子です

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

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

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

BR001

卒業論文

% 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

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

A B C A B C X Y Z

こんにちは由美子です

こんにちは由美子です

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

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

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

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

TS002

Stata 11 Stata VAR VEC whitepaper mwp 4 mwp-084 var VAR 14 mwp-004 varbasic VAR 25 mwp-005 svar VAR 31 mwp-007 vec intro VEC 47 mwp-008 vec VEC 75 mwp

Stata13 Stata long/wide whitepaper mwp mcode import excel Excel / 4 mwp-092 import delimited 10 mwp-195 infix 17 mwp-031 infile 23 mwp-080 append 29 m

こんにちは由美子です

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

最小2乗法

統計研修R分散分析(追加).indd

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

R分散分析06.indd

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

28

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

k3 ( :07 ) 2 (A) k = 1 (B) k = 7 y x x 1 (k2)?? x y (A) GLM (k

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

3 M=8.4 M=3 M=.8 M=4.7 M=5.6 M=3 M=5. M=4.6 M=7 M=3 M= (interaction) 4 - A - B (main effect) - A B (interaction)

GLM PROC GLM y = Xβ + ε y X β ε ε σ 2 E[ε] = 0 var[ε] = σ 2 I σ 2 0 σ 2 =... 0 σ 2 σ 2 I ε σ 2 y E[y] =Xβ var[y] =σ 2 I PROC GLM

151021slide.dvi

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

yamadaiR(cEFA).pdf

分布

DAA12

!!! 2!

201711grade2.pdf

: (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

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

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

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

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

日本化学療法学会雑誌第51巻第2号

浜松医科大学紀要

1 15 R Part : website:

waseda2010a-jukaiki1-main.dvi

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

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

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 )

s = 1.15 (s = 1.07), R = 0.786, R = 0.679, DW =.03 5 Y = 0.3 (0.095) (.708) X, R = 0.786, R = 0.679, s = 1.07, DW =.03, t û Y = 0.3 (3.163) + 0

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

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

PowerPoint プレゼンテーション

Vol. 36, Special Issue, S 3 S 18 (2015) PK Phase I Introduction to Pharmacokinetic Analysis Focus on Phase I Study 1 2 Kazuro Ikawa 1 and Jun Tanaka 2

š ( š ) ,148,770 3,147,082 1, ,260 1,688 1,688 10,850 10, , ,

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

講義のーと : データ解析のための統計モデリング. 第5回

Microsoft Word - StatsDirectMA Web ver. 2.0.doc

Microsoft PowerPoint - TA報告(7)

untitled

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

untitled

: : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : :

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

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

「スウェーデン企業におけるワーク・ライフ・バランス調査 」報告書

pressnet_g36ill.indd

Microsoft Word - 研究デザインと統計学.doc

(lm) lm AIC 2 / 1

Use R

(3) (5) (6) 162 青 山 充 て ん層 厚 さ と流 量 計 水 柱 高 さの 関係 を 示 した 付 属 チ ャ ー トに よ り直 ち に平 均 粒子 径 を知 る よ う にな って い る. しか し,試 料 重 量 を 変 え て実 験 す る場 合,チ ρp/w=1を ャー

Mantel-Haenszelの方法

The Evaluation on Impact Strength of Structural Elements by Means of Drop Weight Test Elastic Response and Elastic Limit by Hiroshi Maenaka, Member Sh

Excess Capacity and Effectiveness of Policy Interventions: Evidence from the Cement Industry SMU

日本統計学会誌, 第44巻, 第2号, 251頁-270頁

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


untitled

10

現代日本論演習/比較現代日本論研究演習I「統計分析の基礎」

16soukatsu_p1_40.ai

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

講義のーと : データ解析のための統計モデリング. 第3回


untitled

Microsoft Word - Text_5_STATA_1_Jp_ doc

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

untitled

untitled

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

untitled

Ÿ ( Ÿ ) Ÿ šœš 100,000 10,000,000 10,000,000 3,250,000 1,000,000 24,350,000 5,000,000 2,500,000 1,200,000 1,000,000 2,960,000 7,000,000 1,500,000 2,200

原 著 - MMSE - J Key words : MMSE - J ADNI - - MMSE - J 2006 Japanese Altzheimer s Disease Neuroimaging Initiative J - ADNI J - ADNI 2 14

橡stat3.PDF

Statistical Solutions 社の沿革 1984 BMDP Statistical Software Inc. がCorkに欧州本部を設立 専門のマネージメントチームを結成売上高が急速に成長製品開発チームを編成 1995/6 CEOのMary ByrneがMBO(M

<31315F985F95B62D899C8CA98E8182D982A92E696E6464>

Presentation Title Goes Here

はじめに

SICE東北支部研究集会資料(2017年)

Transcription:

BR003

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 sampsi 47 mwp-044 sdtest 54 mwp-043 signrank/signtest / 61 mwp-046 sktest / 65 mwp-048 swilk/sfrancia 67 mwp-049 ttest 70 mwp-041 StataCorp c 2011 Math c 2011 StataCorp LP Math web: www.math-koubou.jp email: master@math-koubou.jp

mwp-042 anova/oneway - anova oneway ANOVA 1. 2. 3. ANOVA oneway 4. ANOVA anova 5. 6. ANOVA 7. ANOVA 8. ANOVA 1. 2 t mwp-041 3 A, B, C t α 5% (1) A-B = 0.95 (2) A-C = 0.95 (3) B-C = 0.95 3 0.95 3 = 0.86 (1), (2), (3) 1 0.86 = 0.14 1 5% c Copyright Math c Copyright StataCorp LP (used with permission) 3

3 (ANOVA: analysis of variance) F (multiple comparison) 2. (1) (2) (3) (4) (repeated-measures) ANOVA 3. ANOVA oneway (factor) 1 ANOVA (one-way ANOVA) ANOVA anova, oneway oneway anova1.dta. use http://www.math-koubou.jp/stata/data11/anova1.dta, clear 24 (blood pressure). list if n <= 3 n >= 22, separator(3) * 1 bp drug 1. 126 1 2. 121 1 3. 115 1 22. 137 4 23. 139 4 24. 123 4 drug 1, 2, 3, 4 4 drug *2 *1 Data Describe data List data *2 Stata 4

drug bp 1 126 121 115 123 125 113 120.5 2 112 123 115 129 106 108 115.5 3 123 112 133 124 130 121 123.8 4 122 132 125 137 139 123 129.7 oneway α 5% Statistics Linear models and related ANOVA/MANOVA One-way ANOVA Main : Response variable: bp Factor variable: drug Multiple-comparison tests: Bonferroni Output: Produce summary table: 1 oneway - Main 5

. oneway bp drug, bonferroni tabulate Summary of bp drug Mean Std. Dev. Freq. 1 120.5 5.3572381 6 2 115.5 8.9162773 6 3 123.83333 7.3598007 6 4 129.66667 7.3665913 6 Total 122.375 8.6467511 24 Analysis of Variance Source SS df MS F Prob > F Between groups 636.458333 3 212.152778 3.92 0.0237 Within groups 1083.16667 20 54.1583333 Total 1719.625 23 74.7663043 Bartlett's test for equal variances: chi2(3) = 1.1493 Prob>chi2 = 0.765 Comparison of bp by drug (Bonferroni) Row Mean Col Mean 1 2 3 2 5 1.000 3 3.33333 8.33333 1.000 0.383 4 9.16667 14.1667 5.83333 0.260 0.020 1.000 (1) ANOVA tabulate (frequency) 6 oneway anova (unbalanced data) ANOVA Analysis of Variance Source SS df MS F Prob > F Between groups 636.458333 3 212.152778 3.92 0.0237 Within groups 1083.16667 20 54.1583333 Total 1719.625 23 74.7663043 Bartlett's test for equal variances: chi2(3) = 1.1493 Prob>chi2 = 0.765 6

SS (sum of squares) regress mwp-037 y (yi ȳ) 2 = (y i ŷ i ) 2 + (ŷ i ȳ) 2 (yi ȳ) 2 TSS (total sum of squares) (ŷi ȳ) 2 MSS (model sum of squares) (yi ŷ i ) 2 RSS (residual sum of squares) MSS (between groups) 636.46 RSS (within groups) 1083.17 TSS (total) 1719.63 (df: degrees of freedom) MS (mean square) 212.15, 54.16 F 212.15/54.16 = 3.92 F F p 0.0237 p < 0.05 ANOVA Bartlett ANOVA p 0.05 (2) ANOVA µ 1 = µ 2 = µ 3 = µ 4 bonferroni Bonferroni ANOVA Comparison of bp by drug (Bonferroni) Row Mean Col Mean 1 2 3 2 5 1.000 3 3.33333 8.33333 1.000 0.383 4 9.16667 14.1667 5.83333 0.260 0.020 1.000 M ij M ij µ i µ j 0 Bonferroni p µ 4 µ 2 Bonferroni Scheffe, Šidák 7

4. ANOVA anova 5. 6. ANOVA 7. ANOVA 8. ANOVA ANOVA 8

mwp-050 roc - ROC roc ROC roc roctab ROC roccomp AUC rocgold AUC 1. ROC AUC 2. roctab 3. roccomp 3.1 3.2 4. rocgold 1. ROC AUC (ROC: receiver operating characteristic) / 2 roctab ROC (AUC: area under the curve) ROC AUC roc01.dta. use http://www.math-koubou.jp/stata/data11/roc01.dta 100 10 c Copyright Math c Copyright StataCorp LP (used with permission) 9

. list in 1/10 * 1 disease rating 1. 1 4 2. 1 4 3. 0 1 4. 1 5 5. 0 2 6. 0 1 7. 1 5 8. 0 1 9. 0 4 10. 1 5 ROC refvar classvar 2 refvar (observation) / 0/1 0 1 roc01.dta disease refvar classvar roc01.dta rating classvar 1, 2, 3, 4, 5 5 1 5 5 rating 2 2 4 rating 2 rating4. generate rating4 = rating >= 4 * 2 rating >= 4 generate rating4 { rating4 = 0 if rating < 4 rating4 = 1 if rating 4 rating4 disease. tabulate rating4 disease, column * 3 *1 Data Describe data List data *2 Data Create or change data Create new variable *3 Statistics Summaries, tables, and tests Tables Two-way tables with measures of association 10

. tabulate rating4 disease, column Key frequency column percentage disease rating4 0 1 Total 0 44 11 55 91.67 21.15 55.00 1 4 41 45 8.33 78.85 45.00 Total 48 52 100 100.00 100.00 100.00 (frequency) (sensitivity) (specificity) 4 { = 78.85% = 91.67% (, ) 2 ROC 11

x (1 ) AUC 2. roctab 1 (1) 2 (2) (3) roctab ROC AUC (1) (2) (3) ROC (2) 6 (, ) 2 ROC roctab Statistics Epidemiology and related ROC analysis Nonparametric ROC analysis Main : Reference variable: disease Classification variable: rating Graph the ROC curve: Report the area under the ROC curve:. roctab disease rating, graph summary ROC Asymptotic Normal Obs Area Std. Err. [95% Conf. Interval] 100 0.9125 0.0290 0.85562 0.96930 12

AUC summary 95% CI 3. roccomp roccomp AUC (1) ROC (2) ROC 2 (1) wide (2) long wide, long [D] reshape (mwp-036 ) 3.1 3.2 4. rocgold 13