{"id":1025,"date":"2023-10-14T14:59:06","date_gmt":"2023-10-14T06:59:06","guid":{"rendered":"https:\/\/edu.secda.info\/scu12354014\/?p=1025"},"modified":"2023-12-19T17:43:57","modified_gmt":"2023-12-19T09:43:57","slug":"20231003%e7%ac%ac%e5%9b%9b%e9%80%b1-%e5%a4%9a%e8%ae%8a%e9%87%8f%e4%bd%9c%e6%a5%ad","status":"publish","type":"post","link":"https:\/\/edu.secda.info\/scu12354014\/?p=1025","title":{"rendered":"20231003\u7b2c\u56db\u9031-\u591a\u8b8a\u91cf\u4f5c\u696d"},"content":{"rendered":"<p><span style=\"color: #008080;\"><strong>\u4fe1\u4efb\u662f\u5426\u70ba\u4e92\u52d5\u5c0d\u8cfc\u8cb7\u610f\u9858\u5f71\u97ff\u7684\u4e2d\u4ecb\u8b8a\u9805? \u7528\u50b3\u7d71 BK \u65b9\u6cd5\u3001Sobel \u6cd5\u3001\u8207\u62d4\u9774\u6cd5\u6aa2\u5b9a\uff0c\u4e26\u8aaa\u660e\u6aa2\u5b9a\u7d50\u679c\u3002<\/strong><\/span><\/p>\n<p><strong>1.BK \u65b9\u6cd5<\/strong><\/p>\n<blockquote><p>##\u7e3d\u6548\u679c X(\u4e92\u52d5) -&gt; Y(\u8cfc\u8cb7\u610f\u9858)<br \/>\ntotal &lt;- lm(data=A,\u8cfc\u8cb7\u610f\u9858~\u4e92\u52d5)<\/p>\n<p>##first a X(\u4e92\u52d5) -&gt; M(\u4fe1\u4efb)<br \/>\nfirst &lt;- lm(data=A,\u4fe1\u4efb~\u4e92\u52d5)<\/p>\n<p>#second b + direct M+X -&gt; Y<br \/>\nsecond &lt;- lm(data=A,\u8cfc\u8cb7\u610f\u9858~\u4fe1\u4efb+\u4e92\u52d5)<\/p><\/blockquote>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone wp-image-1026\" src=\"https:\/\/edu.secda.info\/scu12354014\/wp-content\/uploads\/2023\/10\/1003_1-300x204.png\" alt=\"\" width=\"546\" height=\"371\" srcset=\"https:\/\/edu.secda.info\/scu12354014\/wp-content\/uploads\/2023\/10\/1003_1-300x204.png 300w, https:\/\/edu.secda.info\/scu12354014\/wp-content\/uploads\/2023\/10\/1003_1-800x544.png 800w, https:\/\/edu.secda.info\/scu12354014\/wp-content\/uploads\/2023\/10\/1003_1-768x522.png 768w, https:\/\/edu.secda.info\/scu12354014\/wp-content\/uploads\/2023\/10\/1003_1.png 1201w\" sizes=\"(max-width: 546px) 100vw, 546px\" \/><\/p>\n<p>\u7531\u65bc\u7e3d\u6548\u679c=\u76f4\u63a5\u6548\u679c+\u9593\u63a5\u6548\u679ca*b \uff0cY\u70ba\u8cfc\u8cb7\u610f\u9858\uff0cX\u70ba\u4e92\u52d5\uff0c\u4e2d\u4ecb\u8b8a\u9805M\u70ba\u4fe1\u4efb<\/p>\n<p>a.\u7531\u6a21\u578b\u4e00\u53ef\u77e5\uff0c\u4e92\u52d5\u5c0d\u8cfc\u8cb7\u610f\u9858\u7684\u7e3d\u6548\u679c\u70ba 0.633\uff1b<\/p>\n<p>b.\u7b2c\u4e00\u968e\u6bb5\u5f71\u97ff(X-&gt;M)\uff0c a=0.648 \uff0cX\u5c0dM\u7684\u5f71\u97ff\u662f\u986f\u8457\u7684\uff1b<\/p>\n<p>c.\u7b2c\u4e8c\u968e\u6bb5\u5f71\u97ff(X+M-&gt;Y) \u540c\u6642\u8003\u616eX\u8207M\u5c0dY\u7684\u5f71\u97ff\uff0cX\u5c0dY\u7684\u908a\u969b\u5f71\u97ff\u904d\u4e0d\u986f\u8457\uff0c\u4f46M\u5c0dY\u7684\u908a\u969b\u5f71\u97ff\u8b8a\u986f\u8457\u3002<\/p>\n<p>\u56e0\u6b64\u6aa2\u5b9a\u7d50\u679c\uff1a a\uff1a0.648\uff0c b\uff1a0.323\uff0c\u76f4\u63a5\u6548\u679c\uff1a0.424 \uff0c\u7e3d\u6548\u679c\uff1a 0.633<\/p>\n<p>\u53ef\u4ee5\u5f97\u77e5\u9593\u63a5\u6548\u679c\uff1aa*b=0.209<\/p>\n<p><strong>2.Sobel \u6cd5<\/strong><\/p>\n<blockquote><p>##\u4ee5multilevel \u5957\u4ef6\u4e2d\u7684sobel()\u51fd\u6578\u4f86\u505a<br \/>\n##sobel test \u6aa2\u9a57\u4e2d\u4ecb\u6548\u679c\uff0c\u770bindirect effect \u662f\u5426\u986f\u8457\u3002<br \/>\n## X M Y<\/p>\n<p>library(multilevel)<br \/>\nsobel(\u4e92\u52d5,\u4fe1\u4efb,\u8cfc\u8cb7\u610f\u9858)<\/p><\/blockquote>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone wp-image-1027\" src=\"https:\/\/edu.secda.info\/scu12354014\/wp-content\/uploads\/2023\/10\/1003_2-300x271.jpg\" alt=\"\" width=\"431\" height=\"389\" srcset=\"https:\/\/edu.secda.info\/scu12354014\/wp-content\/uploads\/2023\/10\/1003_2-300x271.jpg 300w, https:\/\/edu.secda.info\/scu12354014\/wp-content\/uploads\/2023\/10\/1003_2.jpg 700w\" sizes=\"(max-width: 431px) 100vw, 431px\" \/><\/p>\n<p>a*b\u70ba\u5169\u500b\u659c\u7387\u4f30\u8a08\u503c\u7684\u4e58\u7a4d\uff0c\u5047\u8a2d\u5728\u5927\u6a23\u672c\u4e0b\u670d\u5f9e\u5e38\u614b\u5206\u914d<\/p>\n<p>indirect effect\uff1a 0.2094757\uff0cSE\uff1a 0.04344925<\/p>\n<p>z.value( indirect effect\/SE)\uff1a4.821159 &gt; 0.05 \uff0c\u9593\u63a5\u6548\u679c\u70ba\u986f\u8457\u3002<\/p>\n<p><strong>3.\u62d4\u9774\u6cd5<\/strong><\/p>\n<blockquote><p>fitM &lt;- lm(\u4fe1\u4efb~\u4e92\u52d5 , data=A)<br \/>\nfitY &lt;- lm(\u8cfc\u8cb7\u610f\u9858~\u4fe1\u4efb+\u4e92\u52d5 , data=A)<br \/>\nfitMedBoot &lt;- mediate(fitM,fitY ,<br \/>\nboot=TRUE,<br \/>\nsims=1000,<br \/>\ntreat=&#8217;\u4e92\u52d5&#8217;,mediator=&#8217;\u4fe1\u4efb&#8217;)<br \/>\nsummary(fitMedBoot )<\/p>\n<p>windows()<br \/>\nplot(fitMedBoot )<\/p><\/blockquote>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone wp-image-1028\" src=\"https:\/\/edu.secda.info\/scu12354014\/wp-content\/uploads\/2023\/10\/1003_3-300x133.jpg\" alt=\"\" width=\"580\" height=\"257\" srcset=\"https:\/\/edu.secda.info\/scu12354014\/wp-content\/uploads\/2023\/10\/1003_3-300x133.jpg 300w, https:\/\/edu.secda.info\/scu12354014\/wp-content\/uploads\/2023\/10\/1003_3-800x354.jpg 800w, https:\/\/edu.secda.info\/scu12354014\/wp-content\/uploads\/2023\/10\/1003_3-768x340.jpg 768w, https:\/\/edu.secda.info\/scu12354014\/wp-content\/uploads\/2023\/10\/1003_3.jpg 849w\" sizes=\"(max-width: 580px) 100vw, 580px\" \/><\/p>\n<p>\u9593\u63a5\u6548\u679cACME \uff1a0.209<br \/>\n\u76f4\u63a5\u6548\u679cADE\u00a0 \u00a0 \uff1a0.424<br \/>\nProp. Mediated \u4e2d\u4ecb\u6548\u679c\u5360\u6bd4&lt;- 0.183\/0.382 = 0.331<\/p>\n<p>\u4fe1\u4efb(M)\u900f\u904e\u4e92\u52d5(Y)\u5728\u89e3\u91cb\u8cfc\u8cb7\u610f\u9858(X)\u4e2d\u8d77\u5230\u4e86\u4e2d\u4ecb\u4f5c\u7528\uff0c\u9593\u63a5\u6548\u679c\u70ba0.209\uff0c\u4f54\u7e3d\u6548\u679c\u7684\u7d0433.1%\u3002 \u76f4\u63a5\u6548\u679c\u70ba0.424\uff0c\u8aaa\u660e\u4e92\u52d5\u5c0d\u8cfc\u8cb7\u610f\u9858\u9664\u4e86\u4fe1\u4efb\u4ee5\u5916\uff0c\u9084\u6709\u5176\u4ed6\u6216\u6700\u5f8c\u5269\u9918\u7684\u76f4\u63a5\u5f71\u97ff\u3002<\/p>\n<pre id=\"tw-target-text\" class=\"tw-data-text tw-text-large tw-ta\" dir=\"ltr\" data-placeholder=\"\u7ffb\u8b6f\" data-ved=\"2ahUKEwjN4t6u-vSBAxVPmFYBHW5zBegQ3ewLegQICBAQ\"><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u4fe1\u4efb\u662f\u5426\u70ba\u4e92\u52d5\u5c0d\u8cfc\u8cb7\u610f\u9858\u5f71\u97ff\u7684\u4e2d\u4ecb\u8b8a\u9805? \u7528\u50b3\u7d71 BK \u65b9\u6cd5\u3001Sobel \u6cd5\u3001\u8207<\/p>\n","protected":false},"author":16,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1,26],"tags":[],"_links":{"self":[{"href":"https:\/\/edu.secda.info\/scu12354014\/index.php?rest_route=\/wp\/v2\/posts\/1025"}],"collection":[{"href":"https:\/\/edu.secda.info\/scu12354014\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/edu.secda.info\/scu12354014\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/edu.secda.info\/scu12354014\/index.php?rest_route=\/wp\/v2\/users\/16"}],"replies":[{"embeddable":true,"href":"https:\/\/edu.secda.info\/scu12354014\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1025"}],"version-history":[{"count":4,"href":"https:\/\/edu.secda.info\/scu12354014\/index.php?rest_route=\/wp\/v2\/posts\/1025\/revisions"}],"predecessor-version":[{"id":1033,"href":"https:\/\/edu.secda.info\/scu12354014\/index.php?rest_route=\/wp\/v2\/posts\/1025\/revisions\/1033"}],"wp:attachment":[{"href":"https:\/\/edu.secda.info\/scu12354014\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1025"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/edu.secda.info\/scu12354014\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1025"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/edu.secda.info\/scu12354014\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1025"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}