{"id":2552,"date":"2023-07-21T18:42:47","date_gmt":"2023-07-21T18:42:47","guid":{"rendered":"https:\/\/statorials.org\/it\/welchs-t-test-in-sas\/"},"modified":"2023-07-21T18:42:47","modified_gmt":"2023-07-21T18:42:47","slug":"welchs-t-test-in-sas","status":"publish","type":"post","link":"https:\/\/statorials.org\/it\/welchs-t-test-in-sas\/","title":{"rendered":"Come eseguire il test t di welch in sas"},"content":{"rendered":"<p><\/p>\n<hr>\n<p><span style=\"color: #000000;\"><a href=\"https:\/\/statorials.org\/it\/test-t-di-welch\/\" target=\"_blank\" rel=\"noopener\">Il test t di Welch<\/a> viene utilizzato per confrontare le medie tra due gruppi indipendenti quando <em>non<\/em> si presume che i due gruppi abbiano varianze uguali.<\/span><\/p>\n<p> <span style=\"color: #000000;\">Questo tutorial spiega come eseguire un test t di Welch in SAS.<\/span><\/p>\n<h3> <strong>Esempio: test t di Welch in SAS<\/strong><\/h3>\n<p> <span style=\"color: #000000;\">Supponiamo che un insegnante voglia confrontare i risultati dell&#8217;esame di 12 studenti che hanno utilizzato un libretto di preparazione per un esame con quelli di 12 studenti che non lo hanno fatto.<\/span><\/p>\n<p> <span style=\"color: #000000;\">I seguenti elenchi mostrano i risultati degli esami degli studenti di ciascun gruppo:<\/span><\/p>\n<p> <span style=\"color: #000000;\"><strong>Libretto<\/strong> : 90, 85, 88, 89, 94, 91, 79, 83, 87, 88, 91, 90<\/span><\/p>\n<p> <span style=\"color: #000000;\"><strong>Nessun taccuino<\/strong> : 67, 90, 71, 95, 88, 83, 72, 66, 75, 86, 93, 84<\/span><\/p>\n<p> <span style=\"color: #000000;\">Utilizzare i seguenti passaggi per eseguire il test t di Welch per determinare se il punteggio medio dell&#8217;esame \u00e8 uguale tra i due gruppi.<\/span><\/p>\n<p> <span style=\"color: #000000;\"><strong>Passaggio 1: creare i dati.<\/strong><\/span><\/p>\n<p> <span style=\"color: #000000;\">Innanzitutto, utilizzeremo il seguente codice per creare il set di dati in SAS:<\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <strong><span style=\"color: #008000;\">\/*create dataset*\/\n<\/span><span style=\"color: #800080;\"><span style=\"color: #000000;\"><span style=\"color: #800080;\">data<\/span> exam_scores;\n    <span style=\"color: #3366ff;\">input<\/span> group $score;\n    <span style=\"color: #3366ff;\">datalines<\/span> ;\nbooklet 90\nbooklet 85\nbooklet 88\nbooklet 89\nbooklet 94\nbooklet 91\nbooklet 79\nbooklet 83\nbooklet 87\nbooklet 88\nbooklet 91\nbooklet 90\nno_booklet 67\nno_booklet 90\nno_booklet 71\nno_booklet 95\nno_booklet 88\nno_booklet 83\nno_booklet 72\nno_booklet 66\nno_booklet 75\nno_booklet 86\nno_booklet 93\nno_booklet 84\n;\n<span style=\"color: #800080;\">run<\/span> ;<\/span><\/span><\/strong><\/pre>\n<p> <span style=\"color: #000000;\"><strong>Passaggio 2: eseguire il test t di Welch.<\/strong><\/span><\/p>\n<p> <span style=\"color: #000000;\">Successivamente, utilizzeremo <strong>proc ttetest<\/strong> per eseguire il t-test di Welch:<\/span> <\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <strong><span style=\"color: #008000;\">\/*perform Welch's t-test*\/\n<\/span><span style=\"color: #800080;\">proc ttest <span style=\"color: #000000;\"><span style=\"color: #3366ff;\">data<\/span> =exam_scores <span style=\"color: #3366ff;\">alpha<\/span> = <span style=\"color: #008000;\">0.05<\/span> ;\n    <span style=\"color: #3366ff;\">classgroup<\/span> ;\n    <span style=\"color: #3366ff;\">var<\/span> score;\n<span style=\"color: #800080;\">run<\/span> ;\n<\/span><\/span><\/strong><\/pre>\n<p><img decoding=\"async\" loading=\"lazy\" class=\" wp-image-22680 aligncenter\" src=\"https:\/\/statorials.org\/wp-content\/uploads\/2023\/08\/welch1.jpg\" alt=\"\" width=\"502\" height=\"487\" srcset=\"\" sizes=\"\"><\/p>\n<p> <span style=\"color: #000000;\">L&#8217;ultima tabella intitolata <strong>Uguaglianza delle varianze<\/strong> esegue un test F per determinare se le varianze sono uguali tra i due campioni.<\/span><\/p>\n<p> <span style=\"color: #000000;\">Questo test F utilizza le seguenti ipotesi nulle e alternative:<\/span><\/p>\n<ul>\n<li> <span style=\"color: #000000;\"><strong>H <sub>0<\/sub><\/strong> : le varianze sono uguali.<\/span><\/li>\n<li> <span style=\"color: #000000;\"><strong>H <sub>A<\/sub><\/strong> : Le differenze non sono uguali.<\/span><\/li>\n<\/ul>\n<p> <span style=\"color: #000000;\">Poich\u00e9 il valore p ( <strong>0,0046<\/strong> ) di questo test \u00e8 inferiore a 0,05, rifiutiamo l&#8217;ipotesi nulla. Ci\u00f2 significa che le varianze dei due campioni non sono uguali.<\/span><\/p>\n<p> <span style=\"color: #000000;\">Quindi, dobbiamo fare riferimento alla riga etichettata <strong>Unequal<\/strong> nella penultima tabella per determinare quale valore t e il corrispondente valore p utilizzare:<\/span><\/p>\n<ul>\n<li> <span style=\"color: #000000;\">valore t: <strong>2,24<\/strong><\/span><\/li>\n<li> <span style=\"color: #000000;\">valore p: <strong>0,0417<\/strong><\/span><\/li>\n<\/ul>\n<p> <span style=\"color: #000000;\">Ricordiamo che il test t di Welch utilizza le seguenti ipotesi nulle e alternative:<\/span><\/p>\n<ul>\n<li> <span style=\"color: #000000;\"><strong><sub>H0<\/sub> :<\/strong> <sub>\u00b51<\/sub> = <sub>\u00b52<\/sub><\/span><\/li>\n<li> <span style=\"color: #000000;\"><strong>H <sub>A<\/sub> :<\/strong> \u03bc <sub>1<\/sub> \u2260 \u03bc <sub>2<\/sub><\/span><\/li>\n<\/ul>\n<p> <span style=\"color: #000000;\">Poich\u00e9 il valore p ( <strong>0,0417<\/strong> ) \u00e8 inferiore a 0,05, rifiutiamo l&#8217;ipotesi nulla.<\/span><\/p>\n<p> <span style=\"color: #000000;\">Ci\u00f2 significa che abbiamo prove sufficienti per affermare che il punteggio medio degli esami tra i due gruppi non \u00e8 uguale.<\/span><\/p>\n<p> <span style=\"color: #000000;\"><strong>Bonus<\/strong> : sentiti libero di utilizzare il <a href=\"https:\/\/statorials.org\/it\/calcolatrice-del-test-welchs-t\/\" target=\"_blank\" rel=\"noopener\">calcolatore del test t di Welch<\/a> per eseguire automaticamente il test t di Welch per due campioni qualsiasi.<\/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\/test-t-accoppiato-in-sas\/\" target=\"_blank\" rel=\"noopener\">Come eseguire un t-test per campioni accoppiati in SAS<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Il test t di Welch viene utilizzato per confrontare le medie tra due gruppi indipendenti quando non si presume che i due gruppi abbiano varianze uguali. Questo tutorial spiega come eseguire un test t di Welch in SAS. Esempio: test t di Welch in SAS Supponiamo che un insegnante voglia confrontare i risultati dell&#8217;esame di [&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 il test t di Welch in SAS - Statorials<\/title>\n<meta name=\"description\" content=\"Questo tutorial spiega come eseguire il test t di Welch 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\/welchs-t-test-in-sas\/\" \/>\n<meta property=\"og:locale\" content=\"it_IT\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Come eseguire il test t di Welch in SAS - Statorials\" \/>\n<meta property=\"og:description\" content=\"Questo tutorial spiega come eseguire il test t di Welch in SAS, con un esempio completo.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/statorials.org\/it\/welchs-t-test-in-sas\/\" \/>\n<meta property=\"og:site_name\" content=\"Statorials\" \/>\n<meta property=\"article:published_time\" content=\"2023-07-21T18:42:47+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/statorials.org\/wp-content\/uploads\/2023\/08\/welch1.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\/welchs-t-test-in-sas\/\",\"url\":\"https:\/\/statorials.org\/it\/welchs-t-test-in-sas\/\",\"name\":\"Come eseguire il test t di Welch in SAS - Statorials\",\"isPartOf\":{\"@id\":\"https:\/\/statorials.org\/it\/#website\"},\"datePublished\":\"2023-07-21T18:42:47+00:00\",\"dateModified\":\"2023-07-21T18:42:47+00:00\",\"author\":{\"@id\":\"https:\/\/statorials.org\/it\/#\/schema\/person\/0896f191fb9fb019f2cd8623112cb3ae\"},\"description\":\"Questo tutorial spiega come eseguire il test t di Welch in SAS, con un esempio completo.\",\"breadcrumb\":{\"@id\":\"https:\/\/statorials.org\/it\/welchs-t-test-in-sas\/#breadcrumb\"},\"inLanguage\":\"it-IT\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/statorials.org\/it\/welchs-t-test-in-sas\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/statorials.org\/it\/welchs-t-test-in-sas\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Casa\",\"item\":\"https:\/\/statorials.org\/it\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Come eseguire il test t di welch 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 il test t di Welch in SAS - Statorials","description":"Questo tutorial spiega come eseguire il test t di Welch 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\/welchs-t-test-in-sas\/","og_locale":"it_IT","og_type":"article","og_title":"Come eseguire il test t di Welch in SAS - Statorials","og_description":"Questo tutorial spiega come eseguire il test t di Welch in SAS, con un esempio completo.","og_url":"https:\/\/statorials.org\/it\/welchs-t-test-in-sas\/","og_site_name":"Statorials","article_published_time":"2023-07-21T18:42:47+00:00","og_image":[{"url":"https:\/\/statorials.org\/wp-content\/uploads\/2023\/08\/welch1.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\/welchs-t-test-in-sas\/","url":"https:\/\/statorials.org\/it\/welchs-t-test-in-sas\/","name":"Come eseguire il test t di Welch in SAS - Statorials","isPartOf":{"@id":"https:\/\/statorials.org\/it\/#website"},"datePublished":"2023-07-21T18:42:47+00:00","dateModified":"2023-07-21T18:42:47+00:00","author":{"@id":"https:\/\/statorials.org\/it\/#\/schema\/person\/0896f191fb9fb019f2cd8623112cb3ae"},"description":"Questo tutorial spiega come eseguire il test t di Welch in SAS, con un esempio completo.","breadcrumb":{"@id":"https:\/\/statorials.org\/it\/welchs-t-test-in-sas\/#breadcrumb"},"inLanguage":"it-IT","potentialAction":[{"@type":"ReadAction","target":["https:\/\/statorials.org\/it\/welchs-t-test-in-sas\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/statorials.org\/it\/welchs-t-test-in-sas\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Casa","item":"https:\/\/statorials.org\/it\/"},{"@type":"ListItem","position":2,"name":"Come eseguire il test t di welch 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\/2552"}],"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=2552"}],"version-history":[{"count":0,"href":"https:\/\/statorials.org\/it\/wp-json\/wp\/v2\/posts\/2552\/revisions"}],"wp:attachment":[{"href":"https:\/\/statorials.org\/it\/wp-json\/wp\/v2\/media?parent=2552"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/statorials.org\/it\/wp-json\/wp\/v2\/categories?post=2552"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/statorials.org\/it\/wp-json\/wp\/v2\/tags?post=2552"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}