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

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

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

卒業論文

% 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

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

こんにちは由美子です

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

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

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

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

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

28

1 15 R Part : website:

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

こんにちは由美子です

yamadaiR(cEFA).pdf

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

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

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

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

(lm) lm AIC 2 / 1

最小2乗法

 

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

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

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

Use R

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 (

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

untitled

BR001

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

10

こんにちは由美子です

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

<4D F736F F F696E74202D2091E63989F1837D815B F A B836093C1985F D816A2E >

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

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

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

<4D F736F F D20939D8C7689F090CD985F93C18EEA8D758B E646F63>

DAA09

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

kubostat2017e p.1 I 2017 (e) GLM logistic regression : : :02 1 N y count data or

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

201711grade2.pdf

lavaan Yves Rosseel Department of Data Analysis Ghent University (Belgium) lavaan lavaan cfa sem growth summary coef fitted inspe

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

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

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

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

こんにちは由美子です

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

Isogai, T., Building a dynamic correlation network for fat-tailed financial asset returns, Applied Network Science (7):-24, 206,

σ 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

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

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


Microsoft PowerPoint - TA報告(7)

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

以下の内容について説明する 1. VAR モデル推定する 2. VAR モデルを用いて予測する 3. グレンジャーの因果性を検定する 4. インパルス応答関数を描く 1. VAR モデルを推定する ここでは VAR(p) モデル : R による時系列分析の方法 2 y t = c + Φ 1 y t

第9回 日経STOCKリーグレポート 審査委員特別賞<地域の元気がでるで賞>

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

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

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

untitled

DAA12

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

(pdf) (cdf) Matlab χ ( ) F t

(2/24) : 1. R R R

How to Draw a Beautiful Path Diagram 異文化言語教育評価 担当 :M.S. Goal: A PC tutor conducted a student satisfaction survey. He (She?) wants to know how differen

X X X Y R Y R Y R MCAR MAR MNAR Figure 1: MCAR, MAR, MNAR Y R X 1.2 Missing At Random (MAR) MAR MCAR MCAR Y X X Y MCAR 2 1 R X Y Table 1 3 IQ MCAR Y I

!!! 2!

R分散分析06.indd

3 HLM High School and Beyond HLM6 HLM6 C: Program Files HLM6S 2 C: Program MATHACH Files HLM6S Examples AppendxA school SECTOR Socio-Economic

Kobe University Repository : Kernel タイトル Title 著者 Author(s) 掲載誌 巻号 ページ Citation 刊行日 Issue date 資源タイプ Resource Type 版区分 Resource Version 権利 Rights DOI

+深見将志.indd

untitled

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

7. フィリップス曲線 経済統計分析 (2014 年度秋学期 ) フィリップス曲線の推定 ( 経済理論との関連 ) フィリップス曲線とは何か? 物価と失業の関係 トレード オフ 政策運営 ( 財政 金融政策 ) への含意 ( 計量分析の手法 ) 関数形の選択 ( 関係が直線的でない場合の推定 ) 推

自由集会時系列part2web.key

2015 3

Dependent Variable: LOG(GDP00/(E*HOUR)) Date: 02/27/06 Time: 16:39 Sample (adjusted): 1994Q1 2005Q3 Included observations: 47 after adjustments C -1.5

/22 R MCMC R R MCMC? 3. Gibbs sampler : kubo/

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

03.Œk’ì

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

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

(X) (Y ) Y = intercept + c X + e (1) e c c M = intercept + ax + e (2) a Y = intercept + cx + bm + e (3) (1) X c c c (3) b X M Y (indirect effect) a b

untitled

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

スケーリング理論とはなにか? - --尺度を変えて見えること--

Solution Report

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

Microsoft Word - StatsDirectMA Web ver. 2.0.doc

1 Tokyo Daily Rainfall (mm) Days (mm)

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

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

9 1 (1) (2) (3) (4) (5) (1)-(5) (i) (i + 1) 4 (1) (2) (3) (4) (5) (1)-(2) (1)-(5) (5) 1

浜松医科大学紀要

Transcription:

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

2 4, 2. 1 2 2 Depress Conservative. 3., 3,. SES66 Alien67 Alien71, Alien67 Alien71,. Wheaton et al. (1977),,. Wheaton,. Wheaton et al. (1977) 1967-1971 5. 1 Alan C. Acock, 2013. Discovering Structural Equation Modeling Using Stata, Revised Edition, Stata Press 3.

3 4 SES66,. educ66 occstat66. Alien67 Alien71. anonima, pwless(powerlessness).. 4.1 SES sem sm2.dta..use sem sm2,clear. (,, ).. Stata Summary Statistics Data(SSD),.,.

4.1. SES 4 Endogenous variables Measurement: Latent: Exogenous variables Latent: educ66 occstat66 anomia67 pwless67 anomia71 pwless71 Alien67 Alien71 SES66 Fitting target model: ( ) Structural equation model Number of obs = 932 Estimation method = ml Log likelihood = -15246.469 ( 1) [anomia67]alien67 = 1 ( 2) [anomia71]alien71 = 1 ( 3) [educ66]ses66 = 1 OIM Standardized Coef. Std. Err. z P> z [95% Conf. Interval] Structural Alien67 <- SES66 -.5668218.0344036-16.48 0.000 -.6342517 -.4993919 Alien71 <- Alien67.6630088.0396724 16.71 0.000.5852523.7407654 SES66 -.151492.0458162-3.31 0.001 -.24129 -.061694 Measurement educ66 <- SES66.8326718.031738 26.24 0.000.7704664.8948772 _cons 3.518017.0878219 40.06 0.000 3.345889 3.690145 occstat66 <- SES66.6485148.0301669 21.50 0.000.5893887.707641 _cons 1.767678.0524337 33.71 0.000 1.66491 1.870446 anomia67 <- Alien67.812882.0194328 41.83 0.000.7747943.8509697 _cons 3.95852.097363 40.66 0.000 3.767692 4.149347 pwless67 <- Alien67.811926.0194466 41.75 0.000.7738113.8500406 _cons 4.796692.1158294 41.41 0.000 4.56967 5.023713 anomia71 <- Alien71.8395125.0193263 43.44 0.000.8016337.8773913 _cons 3.993669.09813 40.70 0.000 3.801338 4.186 pwless71 <- Alien71.798082.0198613 40.18 0.000.7591546.8370095 _cons 4.717723.1140761 41.36 0.000 4.494137 4.941308 var(e.educ66).3066577.0528548.2187474.4298974 var(e.occstat66).5794285.0391274.5075984.6614233 var(e.anomia67).3392229.0315932.2826241.4071562 var(e.pwless67).3407762.0315784.2841788.4086457 var(e.anomia71).2952187.0324493.2380034.3661885 var(e.pwless71).3630651.0317019.3059565.4308333 var(e.alien67).6787131.0390015.6064191.7596255 var(e.alien71).4236057.0345717.360988.4970851 var(ses66) 1... LR test of model vs. saturated: chi2(6) = 71.62, Prob > chi2 = 0.0000.

5 4.,., 3 1. ( 1) [anomia67]alien67 = 1 ( 2) [anomia71]alien71 = 1 ( 3) [educ66]ses66 = 1 0.65, 0.85,. Structural ( ), Alien67 Alien71, β = 0.66... estat eqgof

4.1. SES 6 Equation-level goodness of fit Variance depvars fitted predicted residual R-squared mc mc2 observed educ66 9.599689 6.65587 2.943819.6933423.8326718.6933423 occstat66 449.8053 189.1753 260.63.4205715.6485148.4205715 anomia67 11.8209 7.810982 4.009921.6607771.812882.6607771 pwless67 9.353552 6.166084 3.187468.6592238.811926.6592238 anomia71 12.51815 8.822558 3.695593.7047813.8395125.7047813 pwless71 9.974882 6.35335 3.621531.6369349.798082.6369349 latent Alien67 7.810982 2.509567 5.301416.3212869.5668218.3212869 Alien71 8.822558 5.085272 3.737286.5763943.7592064.5763943 overall.7784845 mc = correlation between depvar and its prediction mc2 = mc^2 is the Bentler-Raykov squared multiple correlation coefficient Alien67 32.1%, Alien71 57.6%. SEM,. Alien67 Alien71 β = 0.66,. SEM, anonima( ) (Alien),... estat gof,stats(all)

7 4 Fit statistic Value Description Likelihood ratio chi2_ms(6) 71.621 model vs. saturated p > chi2 0.000 chi2_bs(15) 2134.080 baseline vs. saturated p > chi2 0.000 Population error RMSEA 0.108 Root mean squared error of approximation 90% CI, lower bound 0.087 upper bound 0.131 pclose 0.000 Probability RMSEA <= 0.05 Information criteria AIC 30534.938 Akaike s information criterion BIC 30636.522 Bayesian information criterion Baseline comparison CFI 0.969 Comparative fit index TLI 0.923 Tucker-Lewis index Size of residuals SRMR 0.021 Standardized root mean squared residual CD 0.778 Coefficient of determination chi2 ms(6),.,. RMSE 0.11 0.05,. CFI 0.95 0.97,. MI.

4.1. SES 8. estat mindices Modification indices Standard MI df P>MI EPC EPC Measurement educ66 <- anomia67 <- pwless67 <- anomia71 <- pwless71 <- anomia67 4.415 1 0.04.1055965.1171781 pwless67 6.816 1 0.01 -.1469371 -.1450411 educ66 5.627 1 0.02.0935048.0842631 anomia71 51.977 1 0.00.3906425.4019984 pwless71 32.517 1 0.00 -.2969297 -.2727609 educ66 6.441 1 0.01 -.0889042 -.0900664 anomia71 41.618 1 0.00 -.3106995 -.3594367 pwless71 23.622 1 0.00.2249714.2323233 anomia67 58.768 1 0.00.429437.4173061 pwless67 38.142 1 0.00 -.3873066 -.3347904 anomia67 46.188 1 0.00 -.3308484 -.3601641 pwless67 27.760 1 0.00.2871709.2780833 cov(e.educ66,e.anomia67) 6.063 1 0.01.5527612.1608845 cov(e.educ66,e.pwless67) 7.752 1 0.01 -.5557802 -.1814365 cov(e.anomia67,e.anomia71) 63.786 1 0.00 1.951578.5069627 cov(e.anomia67,e.pwless71) 49.892 1 0.00-1.506704 -.3953794 cov(e.pwless67,e.anomia71) 49.876 1 0.00-1.534199 -.4470094 cov(e.pwless67,e.pwless71) 37.357 1 0.00 1.159123.341162 EPC = expected parameter change MI,, anomia71 anomia67,. anomia powerless,,,,. anomia powerless,.,

9 4, SES66 Alien71 SES66 Alien67, Alien71 Alien67 Alien71 (0.66 0.57)

4.2. 10 estat gof,stats(all), χ 2 (6) = 71.62, p = 0.000 χ 2 (4) = 4.77, p = 0.31 RMSE=0.108 RMSE=0.014 CFI=0.97 CFI=1.000 MI.. estat teffects,nodirect ( ) Structural Alien67 SES66 0 (no path) Alien71 Alien67 0 (no path) SES66 -.3491338.0412546-8.46 0.000 -.4299914 -.2682762 Indirect effects, SES66 Alien67-3.49. 4.2 SEM,., Stata SEM. Stata SSD(Summary statistics data)., SSD sem, gsem.

11 4 1. 3 x1,x2,x3. 3, 5,. 2. 74. 3.. 33.4722 3.6294 0.6043 1.0374 0.2120 0.2118 4. 21.2973, 3.0195, 0.2973.. 1...clear all 2...ssd init x1 x2 x3 3. 3...ssd set obs 74 4...ssd set cov 33.4722 \ -3.6294.6043 \ 1.0374 -.2120.2118 ssd set cor. 5...ssd set means 21.2973 3.0195.2973 6...ssd status 7...ssd list 8., replace..ssd set means 21.2973 3.0195.2973,replace 9.,. 10. SEM,.

4.2. 12 SSD,. SSD SEM. 1. sem vce(sbentler) Satorra-Bentler, Satorra- Bentler χ 2. 2. sem vce(robust). 3. sem vce(cluster clustvar). 4. svy: sem. 5. sem vce(bootstrap) vce(jackknife). 6. sem vce(opg). 7., [fw=varname]. 8. if in. 9. method(mlmv) method(adf)...use sem sm2,clear.ssd list,,.

13 4 4.3 GSEM. 2 GSEM. GSEM,,,... webuse gsem 1fmm,clear. sum Variable Obs Mean Std. Dev. Min Max x1 123.4065041.4931897 0 1 x2 123.4065041.4931897 0 1 x3 123.4227642.4960191 0 1 x4 123.3495935.4787919 0 1 s4 123 690.9837 77.50737 481 885 x1 x4 4 / 0 1. x1 x3 100 x4 725 s4 4 x1 x4, X.. 2 Stata.

4.3. GSEM 14 SEM. GSEM SEM.

15 4,.., GSEM. Fitting fixed-effects model: Iteration 0: log likelihood = -329.82091 Iteration 1: log likelihood = -329.57665 Iteration 2: log likelihood = -329.57664 ( ) Generalized structural equation model Number of obs = 123 Response Family Link Response Family Link Response Family Link Response Family Link : x1 : Bernoulli : probit : x2 : Bernoulli : probit : x3 : Bernoulli : probit : x4 : Bernoulli : probit Log likelihood = -261.30263 ( 1) [x1]x = 1 Coef. Std. Err. z P> z [95% Conf. Interval] x1 <- x2 <- x3 <- x4 <- X 1 (constrained) _cons -.3666763.1896773-1.93 0.053 -.738437.0050844 X 1.33293.4686743 2.84 0.004.4143455 2.251515 _cons -.4470271.2372344-1.88 0.060 -.911998.0179438 X.6040478.1908343 3.17 0.002.2300195.9780761 _cons -.2276709.1439342-1.58 0.114 -.5097767.0544349 X 9.453342 5.151819 1.83 0.067 -.6440375 19.55072 _cons -4.801027 2.518038-1.91 0.057-9.736291.1342372 var(x) 2.173451 1.044885.847101 5.576536 x1 x4. x4 s4.,.

4.3. GSEM 16.

17 4 Fitting fixed-effects model: ( ) Generalized structural equation model Number of obs = 123 Response Family Link Response Family Link Response Family Link Response Family Link : x1 : Bernoulli : probit : x2 : Bernoulli : probit : x3 : Bernoulli : probit : s4 : Gaussian : identity Log likelihood = -869.6892 ( 1) [x1]x = 1 Coef. Std. Err. z P> z [95% Conf. Interval] x1 <- x2 <- x3 <- s4 <- X 1 (constrained) _cons -.4171085.1964736-2.12 0.034 -.8021896 -.0320274 X 1.298311.3280144 3.96 0.000.6554142 1.941207 _cons -.4926357.2387179-2.06 0.039 -.9605142 -.0247573 X.682969.1747328 3.91 0.000.3404989 1.025439 _cons -.2942021.1575014-1.87 0.062 -.6028992.0144949 X 55.24829 12.19904 4.53 0.000 31.3386 79.15798 _cons 690.9837 6.960106 99.28 0.000 677.3422 704.6253 var(x) 1.854506.7804393.812856 4.230998 var(e.s4) 297.8565 408.64 20.24012 4383.299 SEM GSEM,,. Stata 15 [SEM] example 30g.,.