{"id":101,"date":"2023-07-22T10:38:26","date_gmt":"2023-07-22T10:38:26","guid":{"rendered":"https:\/\/ungdung.hotronghiencuu.com\/open\/?p=101"},"modified":"2023-07-22T17:38:26","modified_gmt":"2023-07-22T10:38:26","slug":"cac-lenh-tren-spss-phan-2","status":"publish","type":"post","link":"https:\/\/ungdung.hotronghiencuu.com\/open\/cac-lenh-tren-spss-phan-2","title":{"rendered":"C\u00e1c l\u1ec7nh tr\u00ean SPSS- ph\u1ea7n 2: H\u1ed3i quy nh\u1ecb ph\u00e2n"},"content":{"rendered":"<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_40 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" area-label=\"ez-toc-toggle-icon-1\"><label for=\"item-6b1378b608f29\" aria-label=\"Table of Content\"><span style=\"display: flex;align-items: center;width: 35px;height: 30px;justify-content: center;direction:ltr;\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/label><input  type=\"checkbox\" id=\"item-6b1378b608f29\"><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/ungdung.hotronghiencuu.com\/open\/cac-lenh-tren-spss-phan-2\/#Cac_lenh_hoi_quy_nhi_phan_trong_SPSS\" title=\"C\u00e1c l\u1ec7nh h\u1ed3i quy nh\u1ecb ph\u00e2n trong SPSS\">C\u00e1c l\u1ec7nh h\u1ed3i quy nh\u1ecb ph\u00e2n trong SPSS<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/ungdung.hotronghiencuu.com\/open\/cac-lenh-tren-spss-phan-2\/#Cac_lenh_ve_do_thi_khi_hoi_quy_nhi_phan_trong_SPSS\" title=\"C\u00e1c l\u1ec7nh v\u1ebd \u0111\u1ed3 th\u1ecb khi h\u1ed3i quy nh\u1ecb ph\u00e2n trong SPSS\">C\u00e1c l\u1ec7nh v\u1ebd \u0111\u1ed3 th\u1ecb khi h\u1ed3i quy nh\u1ecb ph\u00e2n trong SPSS<\/a><\/li><\/ul><\/nav><\/div>\n<h2><span class=\"ez-toc-section\" id=\"Cac_lenh_hoi_quy_nhi_phan_trong_SPSS\"><\/span>C\u00e1c l\u1ec7nh h\u1ed3i quy nh\u1ecb ph\u00e2n trong SPSS<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<div class=\"flex flex-grow flex-col gap-3\">\n<div class=\"min-h-[20px] flex flex-col items-start gap-4 whitespace-pre-wrap break-words\">\n<div class=\"markdown prose w-full break-words dark:prose-invert light\">\n<p>Trong SPSS, \u0111\u1ec3 th\u1ef1c hi\u1ec7n m\u00f4 h\u00ecnh h\u1ed3i quy nh\u1ecb ph\u00e2n (binary logistic regression), b\u1ea1n c\u00f3 th\u1ec3 s\u1eed d\u1ee5ng l\u1ec7nh LOGISTIC. D\u01b0\u1edbi \u0111\u00e2y l\u00e0 c\u00fa ph\u00e1p c\u01a1 b\u1ea3n c\u1ee7a l\u1ec7nh LOGISTIC trong SPSS:<\/p>\n<p>Xem th\u00eam: <a href=\"https:\/\/ungdung.hotronghiencuu.com\/mo-dau-ve-hoi-quy-nhi-phan-binary-logistic\"><strong>H\u01b0\u1edbng d\u1eabn h\u1ed3i quy nh\u1ecb ph\u00e2n tr\u00ean SPSS t\u1eeb A-Z<\/strong><\/a><\/p>\n<div class=\"bg-black rounded-md mb-4\">\n<div class=\"flex items-center relative text-gray-200 bg-gray-800 px-4 py-2 text-xs font-sans justify-between rounded-t-md\">scss<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"bg-black rounded-md mb-4\">\n<div class=\"p-4 overflow-y-auto\"><code class=\"!whitespace-pre hljs language-scss\">LOGISTIC <span class=\"hljs-selector-attr\">[dependent variable]<\/span> BY <span class=\"hljs-selector-attr\">[independent variables]<\/span> \/METHOD=ENTER <span class=\"hljs-selector-attr\">[covariates]<\/span> \/CRITERIA=<span class=\"hljs-built_in\">PIN<\/span>(<span class=\"hljs-number\">0.05<\/span>) <span class=\"hljs-built_in\">POUT<\/span>(<span class=\"hljs-number\">0.10<\/span>) <span class=\"hljs-built_in\">ITERATE<\/span>(<span class=\"hljs-number\">20<\/span>) \/PRINT=PARAMETER <span class=\"hljs-selector-tag\">SUMMARY<\/span> ODDS RISK <span class=\"hljs-built_in\">CI<\/span>(<span class=\"hljs-number\">95<\/span>) EXPB \/FORMAT=NOTABLE \/CONTRAST (independent variables) \/SAVE=PRED PROB.<br \/>\n<\/code><\/div>\n<\/div>\n<p>\u1ede \u0111\u00e2y:<\/p>\n<ul>\n<li>[dependent variable] l\u00e0 bi\u1ebfn ph\u1ee5 thu\u1ed9c (outcome variable) c\u00f3 hai gi\u00e1 tr\u1ecb (0 v\u00e0 1).<\/li>\n<li>[independent variables] l\u00e0 danh s\u00e1ch c\u00e1c bi\u1ebfn \u0111\u1ed9c l\u1eadp (independent variables) m\u00e0 b\u1ea1n mu\u1ed1n s\u1eed d\u1ee5ng trong m\u00f4 h\u00ecnh.<\/li>\n<li>[covariates] l\u00e0 danh s\u00e1ch c\u00e1c bi\u1ebfn \u1ea3nh h\u01b0\u1edfng (covariates) m\u00e0 b\u1ea1n mu\u1ed1n \u0111i\u1ec1u ch\u1ec9nh trong m\u00f4 h\u00ecnh (t\u00f9y ch\u1ecdn).<\/li>\n<li>\/METHOD=ENTER ch\u1ec9 \u0111\u1ecbnh ph\u01b0\u01a1ng ph\u00e1p nh\u1eadp (enter) cho bi\u1ebfn \u0111\u1ed9c l\u1eadp v\u00e0o m\u00f4 h\u00ecnh.<\/li>\n<li>\/CRITERIA=PIN(0.05) POUT(0.10) ITERATE(20) l\u00e0 c\u00e1c ti\u00eau ch\u00ed d\u1eebng (stopping criteria) v\u00e0 s\u1ed1 l\u1ea7n l\u1eb7p (iterations) cho m\u00f4 h\u00ecnh.<\/li>\n<li>\/PRINT=PARAMETER SUMMARY ODDS RISK CI(95) EXPB ch\u1ec9 \u0111\u1ecbnh th\u00f4ng tin \u0111\u01b0\u1ee3c in ra, bao g\u1ed3m tham s\u1ed1 h\u1ed3i quy, t\u1ef7 l\u1ec7 (odds), nguy c\u01a1 (risk), kho\u1ea3ng tin c\u1eady 95% v\u00e0 gi\u00e1 tr\u1ecb e^b (exp(b)).<\/li>\n<li>\/FORMAT=NOTABLE ch\u1ec9 \u0111\u1ecbnh \u0111\u1ecbnh d\u1ea1ng \u0111\u1ea7u ra kh\u00f4ng b\u1ea3ng.<\/li>\n<li>\/CONTRAST (independent variables) \u0111\u1ec3 t\u1ea1o ra c\u00e1c hi\u1ec7u \u1ee9ng so s\u00e1nh \u0111\u1ed1i v\u1edbi bi\u1ebfn \u0111\u1ed9c l\u1eadp (t\u00f9y ch\u1ecdn).<\/li>\n<li>\/SAVE=PRED PROB \u0111\u1ec3 l\u01b0u d\u1ef1 \u0111o\u00e1n v\u00e0 x\u00e1c su\u1ea5t (t\u00f9y ch\u1ecdn).<\/li>\n<\/ul>\n<p>L\u01b0u \u00fd r\u1eb1ng b\u1ea1n c\u1ea7n thay th\u1ebf c\u00e1c ph\u1ea7n t\u1eed trong ngo\u1eb7c vu\u00f4ng b\u1eb1ng t\u00ean bi\u1ebfn th\u1ef1c t\u1ebf trong d\u1eef li\u1ec7u c\u1ee7a b\u1ea1n. B\u1ea1n c\u0169ng c\u00f3 th\u1ec3 thay \u0111\u1ed5i c\u00e1c t\u00f9y ch\u1ecdn v\u00e0 tham s\u1ed1 trong l\u1ec7nh LOGISTIC \u0111\u1ec3 ph\u00f9 h\u1ee3p v\u1edbi nghi\u00ean c\u1ee9u c\u1ee7a m\u00ecnh.<\/p>\n<p>\u0110\u1ec3 s\u1eed d\u1ee5ng l\u1ec7nh LOGISTIC trong SPSS, b\u1ea1n c\u00f3 th\u1ec3 s\u1eed d\u1ee5ng tr\u00ecnh \u0111\u01a1n Analyze &gt; Regression &gt; Binary Logistic ho\u1eb7c g\u00f5 c\u00e2u l\u1ec7nh tr\u1ef1c ti\u1ebfp trong c\u1eeda s\u1ed5 Syntax.<\/p>\n<p>Xem th\u00eam:<\/p>\n<ul>\n<li class=\"post-list no-number\"><a href=\"https:\/\/ungdung.hotronghiencuu.com\/open\/cac-lenh-tren-spss-phan-1\" rel=\"bookmark\">C\u00e1c l\u1ec7nh tr\u00ean SPSS- ph\u1ea7n 1: H\u1ed3i quy tuy\u1ebfn t\u00ednh<\/a><\/li>\n<\/ul>\n<h2><span class=\"ez-toc-section\" id=\"Cac_lenh_ve_do_thi_khi_hoi_quy_nhi_phan_trong_SPSS\"><\/span>C\u00e1c l\u1ec7nh v\u1ebd \u0111\u1ed3 th\u1ecb khi h\u1ed3i quy nh\u1ecb ph\u00e2n trong SPSS<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Khi th\u1ef1c hi\u1ec7n m\u00f4 h\u00ecnh h\u1ed3i quy nh\u1ecb ph\u00e2n (binary logistic regression) trong SPSS, b\u1ea1n c\u00f3 th\u1ec3 s\u1eed d\u1ee5ng c\u00e1c l\u1ec7nh v\u1ebd \u0111\u1ed3 th\u1ecb \u0111\u1ec3 tr\u1ef1c quan h\u00f3a k\u1ebft qu\u1ea3 c\u1ee7a m\u00f4 h\u00ecnh. D\u01b0\u1edbi \u0111\u00e2y l\u00e0 m\u1ed9t s\u1ed1 l\u1ec7nh ph\u1ed5 bi\u1ebfn \u0111\u1ec3 v\u1ebd \u0111\u1ed3 th\u1ecb khi h\u1ed3i quy nh\u1ecb ph\u00e2n trong SPSS:<\/p>\n<ol>\n<li>L\u1ec7nh &#8220;GGRAPH&#8221;: L\u1ec7nh n\u00e0y \u0111\u01b0\u1ee3c s\u1eed d\u1ee5ng \u0111\u1ec3 v\u1ebd \u0111\u1ed3 th\u1ecb tr\u00ean SPSS Graphs. B\u1ea1n c\u00f3 th\u1ec3 s\u1eed d\u1ee5ng l\u1ec7nh n\u00e0y \u0111\u1ec3 v\u1ebd c\u00e1c bi\u1ec3u \u0111\u1ed3 c\u1ed9t, bi\u1ec3u \u0111\u1ed3 d\u00f2ng, bi\u1ec3u \u0111\u1ed3 h\u00ecnh tr\u00f2n, bi\u1ec3u \u0111\u1ed3 d\u1ea1ng th\u1ee9c v\u00e0 nhi\u1ec1u lo\u1ea1i bi\u1ec3u \u0111\u1ed3 kh\u00e1c.V\u00ed d\u1ee5:\n<div class=\"bg-black rounded-md mb-4\">\n<div class=\"flex items-center relative text-gray-200 bg-gray-800 px-4 py-2 text-xs font-sans justify-between rounded-t-md\">scss<\/div>\n<\/div>\n<\/li>\n<\/ol>\n<ol>\n<li>\n<div class=\"bg-black rounded-md mb-4\">\n<div class=\"p-4 overflow-y-auto\"><code class=\"!whitespace-pre hljs language-scss\">GGRAPH \/GRAPHDATASET NAME=\"graphdataset\" VARIABLES=xvar yvar.<br \/>\nGGRAPH \/GRAPHDATASET NAME=\"graphdataset\" VARIABLES=xvar yvar<br \/>\nGRAPHSPEC SOURCE=INLINE.<br \/>\nBEGIN GPL<br \/>\nSOURCE: s=<span class=\"hljs-built_in\">userSource<\/span>(<span class=\"hljs-built_in\">id<\/span>(<span class=\"hljs-string\">\"graphdataset\"<\/span>))<br \/>\nDATA: xvar=<span class=\"hljs-built_in\">col<\/span>(<span class=\"hljs-built_in\">source<\/span>(s), <span class=\"hljs-built_in\">name<\/span>(<span class=\"hljs-string\">\"xvar\"<\/span>))<br \/>\nDATA: yvar=<span class=\"hljs-built_in\">col<\/span>(<span class=\"hljs-built_in\">source<\/span>(s), <span class=\"hljs-built_in\">name<\/span>(<span class=\"hljs-string\">\"yvar\"<\/span>))<br \/>\nGUIDE: <span class=\"hljs-built_in\">axis<\/span>(<span class=\"hljs-built_in\">dim<\/span>(<span class=\"hljs-number\">1<\/span>), <span class=\"hljs-built_in\">label<\/span>(<span class=\"hljs-string\">\"X Axis\"<\/span>))<br \/>\nGUIDE: <span class=\"hljs-built_in\">axis<\/span>(<span class=\"hljs-built_in\">dim<\/span>(<span class=\"hljs-number\">2<\/span>), <span class=\"hljs-built_in\">label<\/span>(<span class=\"hljs-string\">\"Y Axis\"<\/span>))<br \/>\nELEMENT: <span class=\"hljs-built_in\">point<\/span>(<span class=\"hljs-built_in\">position<\/span>(xvar*yvar))<br \/>\nEND GPL.<br \/>\n<\/code><\/div>\n<\/div>\n<\/li>\n<li>L\u1ec7nh &#8220;CROSSTABS \/BARCHART&#8221;: L\u1ec7nh n\u00e0y \u0111\u01b0\u1ee3c s\u1eed d\u1ee5ng \u0111\u1ec3 v\u1ebd bi\u1ec3u \u0111\u1ed3 c\u1ed9t (bar chart) \u0111\u1ec3 so s\u00e1nh ph\u00e2n ph\u1ed1i c\u1ee7a bi\u1ebfn \u0111\u1ed9c l\u1eadp trong t\u1eebng nh\u00f3m c\u1ee7a bi\u1ebfn ph\u1ee5 thu\u1ed9c.V\u00ed d\u1ee5: <code>CROSSTABS \/TABLES=depvar BY indepvar \/BARCHART<\/code>.<\/li>\n<li>L\u1ec7nh &#8220;EXAMINE \/PLOT&#8221;: L\u1ec7nh n\u00e0y \u0111\u01b0\u1ee3c s\u1eed d\u1ee5ng \u0111\u1ec3 v\u1ebd bi\u1ec3u \u0111\u1ed3 &#8220;probit&#8221; ho\u1eb7c &#8220;logit&#8221; plot, hi\u1ec3n th\u1ecb m\u1ed1i quan h\u1ec7 gi\u1eefa bi\u1ebfn \u0111\u1ed9c l\u1eadp v\u00e0 x\u00e1c su\u1ea5t d\u1ef1 b\u00e1o c\u1ee7a bi\u1ebfn ph\u1ee5 thu\u1ed9c.V\u00ed d\u1ee5: <code>EXAMINE VARIABLES=indepvar BY depvar \/PLOT PROBIT(idv) LOGIT(idv).<\/code><\/li>\n<li>L\u1ec7nh &#8220;PLOT&#8221;: L\u1ec7nh n\u00e0y \u0111\u01b0\u1ee3c s\u1eed d\u1ee5ng \u0111\u1ec3 v\u1ebd bi\u1ec3u \u0111\u1ed3 scatter plot ho\u1eb7c line plot c\u1ee7a bi\u1ebfn \u0111\u1ed9c l\u1eadp v\u00e0 x\u00e1c su\u1ea5t d\u1ef1 b\u00e1o c\u1ee7a bi\u1ebfn ph\u1ee5 thu\u1ed9c.V\u00ed d\u1ee5: <code>PLOT \/SCATTERPLOT(Y=depvar X=indepvar) \/LINE(Y=depvar X=indepvar)<\/code>.<\/li>\n<\/ol>\n<p>L\u01b0u \u00fd r\u1eb1ng b\u1ea1n c\u1ea7n thay th\u1ebf c\u00e1c t\u00ean bi\u1ebfn th\u1ef1c t\u1ebf v\u00e0 t\u00f9y ch\u1ecdn trong c\u00e1c l\u1ec7nh tr\u00ean. B\u1ea1n c\u0169ng c\u00f3 th\u1ec3 t\u00f9y ch\u1ec9nh c\u00e1c l\u1ec7nh n\u00e0y \u0111\u1ec3 \u0111\u00e1p \u1ee9ng nhu c\u1ea7u tr\u1ef1c quan h\u00f3a d\u1eef li\u1ec7u c\u1ee7a m\u00ecnh.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>C\u00e1c l\u1ec7nh h\u1ed3i quy nh\u1ecb ph\u00e2n trong SPSS Trong SPSS, \u0111\u1ec3 th\u1ef1c hi\u1ec7n m\u00f4 h\u00ecnh h\u1ed3i quy nh\u1ecb ph\u00e2n (binary logistic regression), b\u1ea1n c\u00f3 th\u1ec3 s\u1eed d\u1ee5ng&#8230; <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,7],"tags":[9],"class_list":["post-101","post","type-post","status-publish","format-standard","hentry","category-phan-mem","category-su-dung-phan-mem","tag-spss"],"_links":{"self":[{"href":"https:\/\/ungdung.hotronghiencuu.com\/open\/wp-json\/wp\/v2\/posts\/101","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ungdung.hotronghiencuu.com\/open\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ungdung.hotronghiencuu.com\/open\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ungdung.hotronghiencuu.com\/open\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ungdung.hotronghiencuu.com\/open\/wp-json\/wp\/v2\/comments?post=101"}],"version-history":[{"count":3,"href":"https:\/\/ungdung.hotronghiencuu.com\/open\/wp-json\/wp\/v2\/posts\/101\/revisions"}],"predecessor-version":[{"id":104,"href":"https:\/\/ungdung.hotronghiencuu.com\/open\/wp-json\/wp\/v2\/posts\/101\/revisions\/104"}],"wp:attachment":[{"href":"https:\/\/ungdung.hotronghiencuu.com\/open\/wp-json\/wp\/v2\/media?parent=101"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ungdung.hotronghiencuu.com\/open\/wp-json\/wp\/v2\/categories?post=101"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ungdung.hotronghiencuu.com\/open\/wp-json\/wp\/v2\/tags?post=101"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}