{"id":2883,"date":"2023-07-20T06:41:50","date_gmt":"2023-07-20T06:41:50","guid":{"rendered":"https:\/\/statorials.org\/it\/kruskal-wallis-test-sas\/"},"modified":"2023-07-20T06:41:50","modified_gmt":"2023-07-20T06:41:50","slug":"kruskal-wallis-test-sas","status":"publish","type":"post","link":"https:\/\/statorials.org\/it\/kruskal-wallis-test-sas\/","title":{"rendered":"Come eseguire un test kruskal-wallis in sas"},"content":{"rendered":"<p><\/p>\n<hr>\n<p><span style=\"color: #000000;\">Un <a href=\"https:\/\/statorials.org\/it\/test-di-kruskal-wallis\/\" target=\"_blank\" rel=\"noopener\">test di Kruskal-Wallis<\/a> viene utilizzato per determinare se esiste o meno una differenza statisticamente significativa tra le mediane di tre o pi\u00f9 gruppi indipendenti.<\/span><\/p>\n<p> <span style=\"color: #000000;\">\u00c8 considerato l&#8217;equivalente non parametrico <a href=\"https:\/\/statorials.org\/it\/anova-in-un-modo\/\" target=\"_blank\" rel=\"noopener\">dell&#8217;ANOVA unidirezionale<\/a> .<\/span><\/p>\n<p> <span style=\"color: #000000;\">Questo tutorial fornisce un esempio passo passo di come eseguire un test Kruskal-Wallis in SAS.<\/span><\/p>\n<h3> <span style=\"color: #000000;\"><strong>Passaggio 1: inserisci i dati<\/strong><\/span><\/h3>\n<p> <span style=\"color: #000000;\">Supponiamo che i ricercatori vogliano sapere se tre diversi fertilizzanti portano a diversi livelli di crescita delle piante.<\/span><\/p>\n<p> <span style=\"color: #000000;\">Selezionano casualmente 30 piante diverse e le dividono in tre gruppi da 10, applicando un fertilizzante diverso a ciascun gruppo. Dopo un mese si misura l&#8217;altezza di ogni pianta.<\/span><\/p>\n<p> <span style=\"color: #000000;\">Inseriremo i seguenti dati in SAS, che mostrano la crescita totale (in pollici) di ciascuna delle 10 piante in ciascun gruppo:<\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <span style=\"color: #000000;\"><strong><span style=\"color: #008000;\">\/*create dataset*\/\n<\/span><span style=\"color: #800080;\">data<\/span> fertilizer_data;\n    <span style=\"color: #3366ff;\">input<\/span> fertilizer $growth;\n    <span style=\"color: #3366ff;\">datalines<\/span> ;\nfert1 7\nfert1 14\nfert1 14\nfert1 13\nfert1 12\nfert1 9\nfert1 6\nfert1 14\nfert1 12\nfert1 8\nfert2 15\nfert2 17\nfert2 13\nfert2 15\nfert2 15\nfert2 13\nfert2 9\nfert2 12\nfert2 10\nfert2 8\nfert3 6\nfert3 8\nfert3 8\nfert3 9\nfert3 5\nfert3 14\nfert3 13\nfert3 8\nfert3 10\nfert3 9\n;\n<span style=\"color: #800080;\">run<\/span> ;\n<\/strong><\/span><\/pre>\n<h3> <span style=\"color: #000000;\"><strong>Passaggio 2: eseguire il test Kruskal-Wallis<\/strong><\/span><\/h3>\n<p> <span style=\"color: #000000;\">Successivamente, utilizzeremo l&#8217;istruzione <strong>proc npar1way<\/strong> per eseguire un test Kruskal-Wallis per confrontare la crescita media delle piante tra i tre gruppi di fertilizzanti:<\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <span style=\"color: #000000;\"><strong><span style=\"color: #008000;\">\/*perform Kruskal-Wallis test*\/\n<\/span><span style=\"color: #800080;\">proc npar1way <span style=\"color: #000000;\"><span style=\"color: #3366ff;\">data<\/span> =fertilizer_data <span style=\"color: #3366ff;\">wilcoxon dscf<\/span> ;\n    <span style=\"color: #3366ff;\">class<\/span> fertilizer;\n    <span style=\"color: #3366ff;\">vargrowth<\/span> ;\n<span style=\"color: #800080;\">run<\/span> ;<\/span><\/span><\/strong><\/span><\/pre>\n<h3> <span style=\"color: #000000;\"><strong>Passaggio 3: interpretare i risultati<\/strong><\/span><\/h3>\n<p> <span style=\"color: #000000;\">La prima tabella dei risultati mostra la statistica complessiva del test Chi-quadrato e il corrispondente valore p per il test Kruskal-Wallis:<\/span> <\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\" wp-image-25192 aligncenter\" src=\"https:\/\/statorials.org\/wp-content\/uploads\/2023\/08\/kruskalsas1.jpg\" alt=\"\" width=\"386\" height=\"328\" srcset=\"\" sizes=\"\"><\/p>\n<p> <span style=\"color: #000000;\">Il valore p del test \u00e8 <strong>0,0431<\/strong> . Poich\u00e9 questo valore \u00e8 inferiore a 0,05, rifiutiamo l\u2019ipotesi nulla secondo cui la crescita media delle piante \u00e8 la stessa per tutti e tre i fertilizzanti.<\/span><\/p>\n<p> <span style=\"color: #000000;\">Ci\u00f2 significa che abbiamo prove sufficienti per concludere che il tipo di fertilizzante utilizzato provoca differenze statisticamente significative nella crescita delle piante.<\/span><\/p>\n<p> <span style=\"color: #000000;\">La tabella dei risultati finali mostra i valori p per i confronti a coppie tra ciascuno dei tre gruppi:<\/span> <\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\" wp-image-25194 aligncenter\" src=\"https:\/\/statorials.org\/wp-content\/uploads\/2023\/08\/kruskalsas2.jpg\" alt=\"\" width=\"357\" height=\"218\" srcset=\"\" sizes=\"\"><\/p>\n<p> <span style=\"color: #000000;\">Da questa tabella possiamo vedere che l&#8217;unico valore p inferiore a 0,05 \u00e8 il confronto tra il fertilizzante 2 e il fertilizzante 3, che ha un valore p di <strong>0,0390<\/strong> .<\/span><\/p>\n<p> <span style=\"color: #000000;\">Ci\u00f2 significa che esiste una differenza statisticamente significativa nella crescita delle piante tra il fertilizzante 2 e il fertilizzante 3, ma non tra gli altri confronti a coppie.<\/span><\/p>\n<h3> <span style=\"color: #000000;\"><strong>Risorse addizionali<\/strong><\/span><\/h3>\n<p> <span style=\"color: #000000;\">I seguenti tutorial spiegano come eseguire altri test statistici comuni in SAS:<\/span><\/p>\n<p> <a href=\"https:\/\/statorials.org\/it\/un-campione-di-prova-in-una-camera-di-equilibrio\/\" target=\"_blank\" rel=\"noopener\">Come eseguire un test t per un campione in SAS<\/a><br \/> Come eseguire un t-test a due campioni in SAS<br \/> <a href=\"https:\/\/statorials.org\/it\/sola-andata-anova-en-sas\/\" target=\"_blank\" rel=\"noopener\">Come eseguire ANOVA unidirezionale in SAS<\/a><br \/> <a href=\"https:\/\/statorials.org\/it\/due-corsie-anova-nella-camera-di-equilibrio\/\" target=\"_blank\" rel=\"noopener\">Come eseguire ANOVA bidirezionale in SAS<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Un test di Kruskal-Wallis viene utilizzato per determinare se esiste o meno una differenza statisticamente significativa tra le mediane di tre o pi\u00f9 gruppi indipendenti. \u00c8 considerato l&#8217;equivalente non parametrico dell&#8217;ANOVA unidirezionale . Questo tutorial fornisce un esempio passo passo di come eseguire un test Kruskal-Wallis in SAS. Passaggio 1: inserisci i dati Supponiamo che [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11],"tags":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v21.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Come eseguire un test Kruskal-Wallis in SAS - Statorials<\/title>\n<meta name=\"description\" content=\"Questo tutorial spiega come eseguire un test Kruskal-Wallis in SAS, con un esempio completo.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/statorials.org\/it\/kruskal-wallis-test-sas\/\" \/>\n<meta property=\"og:locale\" content=\"it_IT\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Come eseguire un test Kruskal-Wallis in SAS - Statorials\" \/>\n<meta property=\"og:description\" content=\"Questo tutorial spiega come eseguire un test Kruskal-Wallis in SAS, con un esempio completo.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/statorials.org\/it\/kruskal-wallis-test-sas\/\" \/>\n<meta property=\"og:site_name\" content=\"Statorials\" \/>\n<meta property=\"article:published_time\" content=\"2023-07-20T06:41:50+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/statorials.org\/wp-content\/uploads\/2023\/08\/kruskalsas1.jpg\" \/>\n<meta name=\"author\" content=\"Benjamin anderson\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Benjamin anderson\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minuti\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/statorials.org\/it\/kruskal-wallis-test-sas\/\",\"url\":\"https:\/\/statorials.org\/it\/kruskal-wallis-test-sas\/\",\"name\":\"Come eseguire un test Kruskal-Wallis in SAS - Statorials\",\"isPartOf\":{\"@id\":\"https:\/\/statorials.org\/it\/#website\"},\"datePublished\":\"2023-07-20T06:41:50+00:00\",\"dateModified\":\"2023-07-20T06:41:50+00:00\",\"author\":{\"@id\":\"https:\/\/statorials.org\/it\/#\/schema\/person\/0896f191fb9fb019f2cd8623112cb3ae\"},\"description\":\"Questo tutorial spiega come eseguire un test Kruskal-Wallis in SAS, con un esempio completo.\",\"breadcrumb\":{\"@id\":\"https:\/\/statorials.org\/it\/kruskal-wallis-test-sas\/#breadcrumb\"},\"inLanguage\":\"it-IT\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/statorials.org\/it\/kruskal-wallis-test-sas\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/statorials.org\/it\/kruskal-wallis-test-sas\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Casa\",\"item\":\"https:\/\/statorials.org\/it\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Come eseguire un test kruskal-wallis in sas\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/statorials.org\/it\/#website\",\"url\":\"https:\/\/statorials.org\/it\/\",\"name\":\"Statorials\",\"description\":\"La tua guida all&#039;alfabetizzazione statistica!\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/statorials.org\/it\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"it-IT\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/statorials.org\/it\/#\/schema\/person\/0896f191fb9fb019f2cd8623112cb3ae\",\"name\":\"Benjamin anderson\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"it-IT\",\"@id\":\"https:\/\/statorials.org\/it\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/statorials.org\/it\/wp-content\/uploads\/2023\/10\/Dr.-Benjamin-Anderson-96x96.jpg\",\"contentUrl\":\"https:\/\/statorials.org\/it\/wp-content\/uploads\/2023\/10\/Dr.-Benjamin-Anderson-96x96.jpg\",\"caption\":\"Benjamin anderson\"},\"description\":\"Ciao, sono Benjamin, un professore di statistica in pensione diventato insegnante dedicato di Statorials. Con una vasta esperienza e competenza nel campo della statistica, sono ansioso di condividere le mie conoscenze per potenziare gli studenti attraverso Statorials. Scopri di pi\u00f9\",\"sameAs\":[\"https:\/\/statorials.org\/it\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Come eseguire un test Kruskal-Wallis in SAS - Statorials","description":"Questo tutorial spiega come eseguire un test Kruskal-Wallis in SAS, con un esempio completo.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/statorials.org\/it\/kruskal-wallis-test-sas\/","og_locale":"it_IT","og_type":"article","og_title":"Come eseguire un test Kruskal-Wallis in SAS - Statorials","og_description":"Questo tutorial spiega come eseguire un test Kruskal-Wallis in SAS, con un esempio completo.","og_url":"https:\/\/statorials.org\/it\/kruskal-wallis-test-sas\/","og_site_name":"Statorials","article_published_time":"2023-07-20T06:41:50+00:00","og_image":[{"url":"https:\/\/statorials.org\/wp-content\/uploads\/2023\/08\/kruskalsas1.jpg"}],"author":"Benjamin anderson","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Benjamin anderson","Est. reading time":"2 minuti"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/statorials.org\/it\/kruskal-wallis-test-sas\/","url":"https:\/\/statorials.org\/it\/kruskal-wallis-test-sas\/","name":"Come eseguire un test Kruskal-Wallis in SAS - Statorials","isPartOf":{"@id":"https:\/\/statorials.org\/it\/#website"},"datePublished":"2023-07-20T06:41:50+00:00","dateModified":"2023-07-20T06:41:50+00:00","author":{"@id":"https:\/\/statorials.org\/it\/#\/schema\/person\/0896f191fb9fb019f2cd8623112cb3ae"},"description":"Questo tutorial spiega come eseguire un test Kruskal-Wallis in SAS, con un esempio completo.","breadcrumb":{"@id":"https:\/\/statorials.org\/it\/kruskal-wallis-test-sas\/#breadcrumb"},"inLanguage":"it-IT","potentialAction":[{"@type":"ReadAction","target":["https:\/\/statorials.org\/it\/kruskal-wallis-test-sas\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/statorials.org\/it\/kruskal-wallis-test-sas\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Casa","item":"https:\/\/statorials.org\/it\/"},{"@type":"ListItem","position":2,"name":"Come eseguire un test kruskal-wallis in sas"}]},{"@type":"WebSite","@id":"https:\/\/statorials.org\/it\/#website","url":"https:\/\/statorials.org\/it\/","name":"Statorials","description":"La tua guida all&#039;alfabetizzazione statistica!","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/statorials.org\/it\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"it-IT"},{"@type":"Person","@id":"https:\/\/statorials.org\/it\/#\/schema\/person\/0896f191fb9fb019f2cd8623112cb3ae","name":"Benjamin anderson","image":{"@type":"ImageObject","inLanguage":"it-IT","@id":"https:\/\/statorials.org\/it\/#\/schema\/person\/image\/","url":"https:\/\/statorials.org\/it\/wp-content\/uploads\/2023\/10\/Dr.-Benjamin-Anderson-96x96.jpg","contentUrl":"https:\/\/statorials.org\/it\/wp-content\/uploads\/2023\/10\/Dr.-Benjamin-Anderson-96x96.jpg","caption":"Benjamin anderson"},"description":"Ciao, sono Benjamin, un professore di statistica in pensione diventato insegnante dedicato di Statorials. Con una vasta esperienza e competenza nel campo della statistica, sono ansioso di condividere le mie conoscenze per potenziare gli studenti attraverso Statorials. Scopri di pi\u00f9","sameAs":["https:\/\/statorials.org\/it"]}]}},"yoast_meta":{"yoast_wpseo_title":"","yoast_wpseo_metadesc":"","yoast_wpseo_canonical":""},"_links":{"self":[{"href":"https:\/\/statorials.org\/it\/wp-json\/wp\/v2\/posts\/2883"}],"collection":[{"href":"https:\/\/statorials.org\/it\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/statorials.org\/it\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/statorials.org\/it\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/statorials.org\/it\/wp-json\/wp\/v2\/comments?post=2883"}],"version-history":[{"count":0,"href":"https:\/\/statorials.org\/it\/wp-json\/wp\/v2\/posts\/2883\/revisions"}],"wp:attachment":[{"href":"https:\/\/statorials.org\/it\/wp-json\/wp\/v2\/media?parent=2883"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/statorials.org\/it\/wp-json\/wp\/v2\/categories?post=2883"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/statorials.org\/it\/wp-json\/wp\/v2\/tags?post=2883"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}