{"id":4622,"date":"2023-07-09T14:06:39","date_gmt":"2023-07-09T14:06:39","guid":{"rendered":"https:\/\/statorials.org\/it\/sas-proc-stdize\/"},"modified":"2023-07-09T14:06:39","modified_gmt":"2023-07-09T14:06:39","slug":"sas-proc-stdize","status":"publish","type":"post","link":"https:\/\/statorials.org\/it\/sas-proc-stdize\/","title":{"rendered":"Come utilizzare proc stdize in sas (con esempio)"},"content":{"rendered":"<p><\/p>\n<hr>\n<p><span style=\"color: #000000;\"><strong>Standardizzare<\/strong> una variabile significa ridimensionare ciascuno dei valori della variabile in modo tale che il valore medio sia 0 e la deviazione standard sia 1.<\/span><\/p>\n<p> <span style=\"color: #000000;\">\u00c8 possibile utilizzare la formula seguente per standardizzare una variabile<\/span><\/p>\n<p> <span style=\"color: #000000;\"><strong>(x <sub>i<\/sub> \u2013 <span style=\"text-decoration: overline;\">x<\/span> ) \/ s<\/strong><\/span><\/p>\n<p> <span style=\"color: #000000;\">Oro:<\/span><\/p>\n<ul>\n<li> <span style=\"color: #000000;\"><strong>x <sub>i<\/sub><\/strong> : l&#8217;i <sup>-esimo<\/sup> valore del set di dati<\/span><\/li>\n<li> <span style=\"color: #000000;\"><strong><span style=\"text-decoration: overline;\">x<\/span><\/strong> : Il campione significa<\/span><\/li>\n<li> <span style=\"color: #000000;\"><strong>s<\/strong> : la deviazione standard del campione<\/span><\/li>\n<\/ul>\n<p> <span style=\"color: #000000;\">Il modo pi\u00f9 semplice per standardizzare una variabile in SAS \u00e8 utilizzare l&#8217;istruzione <strong>PROC STDIZE<\/strong> .<\/span><\/p>\n<p> <span style=\"color: #000000;\">L&#8217;esempio seguente mostra come utilizzare questa affermazione nella pratica.<\/span><\/p>\n<h2> <span style=\"color: #000000;\"><strong>Esempio: come utilizzare PROC STDIZE in SAS<\/strong><\/span><\/h2>\n<p> <span style=\"color: #000000;\">Supponiamo di avere il seguente set di dati in SAS che contiene informazioni su vari giocatori di basket:<\/span> <\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <span style=\"color: #000000;\"><strong><span style=\"color: #008000;\">\/*create first dataset*\/ \n<\/span><span style=\"color: #800080;\">data<\/span> my_data;\n    <span style=\"color: #3366ff;\">input<\/span> player $ points assists rebounds;\n    <span style=\"color: #3366ff;\">datalines<\/span> ;\nA 18 3 15\nB 20 3 14\nC 19 4 14\nD 14 5 10\nE 14 4 8\nF 15 7 14\nG 20 8 13\nH 28 7 9\nI 30 6 5\nJ 0 31 9 4\n;\n<span style=\"color: #800080;\">run<\/span> ;\n\n<span style=\"color: #008000;\">\/*view dataset*\/\n<\/span><span style=\"color: #800080;\">proc print<\/span> <span style=\"color: #3366ff;\">data<\/span> =my_data;\n<\/strong><\/span><\/pre>\n<p><img decoding=\"async\" loading=\"lazy\" class=\" wp-image-36046 aligncenter\" src=\"https:\/\/statorials.org\/wp-content\/uploads\/2023\/08\/stdize1.png\" alt=\"\" width=\"327\" height=\"306\" srcset=\"\" sizes=\"\"><\/p>\n<p> <span style=\"color: #000000;\">Possiamo utilizzare l&#8217;istruzione <strong>PROC STDIZE<\/strong> per creare un nuovo set di dati che standardizza ciascuna delle variabili numeriche nel set di dati:<\/span> <\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <span style=\"color: #000000;\"><strong><span style=\"color: #008000;\">\/*standardize all numeric variables in dataset*\/\n<\/span><span style=\"color: #800080;\">proc stdize<\/span> <span style=\"color: #3366ff;\">data<\/span> =my_data <span style=\"color: #3366ff;\">out<\/span> =std_data;\n<span style=\"color: #800080;\">run<\/span> ;\n\n<span style=\"color: #008000;\">\/*view new dataset*\/\n<\/span><span style=\"color: #800080;\">proc print<\/span> <span style=\"color: #3366ff;\">data<\/span> =std_data;<\/strong><\/span> <\/pre>\n<p><img decoding=\"async\" loading=\"lazy\" class=\" wp-image-36047 aligncenter\" src=\"https:\/\/statorials.org\/wp-content\/uploads\/2023\/08\/stdize2.png\" alt=\"\" width=\"340\" height=\"304\" srcset=\"\" sizes=\"\"><\/p>\n<p> <span style=\"color: #000000;\">Ciascuna delle variabili numeriche (punti, assist, rimbalzi) \u00e8 stata standardizzata per avere una media pari a 0 e una deviazione standard pari a 1.<\/span><\/p>\n<p> <span style=\"color: #000000;\">Nota che possiamo anche usare l&#8217;istruzione <strong>VAR<\/strong> per specificare quali variabili normalizzare.<\/span><\/p>\n<p> <span style=\"color: #000000;\">Ad esempio, possiamo utilizzare la seguente istruzione <strong>PROC STDIZE<\/strong> con l&#8217;istruzione <strong>VAR<\/strong> per normalizzare solo la variabile punti:<\/span> <\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <span style=\"color: #000000;\"><strong><span style=\"color: #008000;\">\/*standardize points variable in dataset*\/\n<\/span><span style=\"color: #800080;\">proc stdize<\/span> <span style=\"color: #3366ff;\">data<\/span> =my_data <span style=\"color: #3366ff;\">out<\/span> =std_data;\n    <span style=\"color: #3366ff;\">var<\/span> points;\n<span style=\"color: #800080;\">run<\/span> ;\n\n<span style=\"color: #008000;\">\/*view new dataset*\/\n<\/span><span style=\"color: #800080;\">proc print<\/span> <span style=\"color: #3366ff;\">data<\/span> =std_data;<\/strong><\/span> <\/pre>\n<p><img decoding=\"async\" loading=\"lazy\" class=\" wp-image-36048 aligncenter\" src=\"https:\/\/statorials.org\/wp-content\/uploads\/2023\/08\/stdize3.png\" alt=\"\" width=\"339\" height=\"305\" srcset=\"\" sizes=\"\"><\/p>\n<p> <span style=\"color: #000000;\">I valori nella colonna dei punti sono stati standardizzati mentre tutte le altre colonne sono rimaste intatte.<\/span><\/p>\n<p> <span style=\"color: #000000;\">Possiamo utilizzare l&#8217;istruzione <strong>PROC MEANS<\/strong> per verificare che la variabile points ora abbia un valore medio pari a 0 e una deviazione standard pari a 1:<\/span> <\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <span style=\"color: #008000;\"><strong>\/*view mean and standard deviation of each variable*\/<\/strong><\/span>\n<strong><span style=\"color: #800080;\">proc means<\/span> <span style=\"color: #3366ff;\">data<\/span> =std_data;<\/strong> <\/pre>\n<p><img decoding=\"async\" loading=\"lazy\" class=\" wp-image-36049 aligncenter\" src=\"https:\/\/statorials.org\/wp-content\/uploads\/2023\/08\/stdize4.png\" alt=\"\" width=\"465\" height=\"130\" srcset=\"\" sizes=\"\"><\/p>\n<p> <span style=\"color: #000000;\">Vediamo che la variabile punti ha un valore medio pari a 0 e una deviazione standard pari a 1.<\/span><\/p>\n<h2> <span style=\"color: #000000;\"><strong>Risorse addizionali<\/strong><\/span><\/h2>\n<p> <span style=\"color: #000000;\">I seguenti tutorial spiegano come eseguire altre attivit\u00e0 comuni in SAS:<\/span><\/p>\n<p> <a href=\"https:\/\/statorials.org\/it\/sas-rimuove-le-righe-con-valori-mancanti\/\" target=\"_blank\" rel=\"noopener\">Come eliminare righe con valori mancanti in SAS<\/a><br \/> <a href=\"https:\/\/statorials.org\/it\/senza-deviazione-standard\/\" target=\"_blank\" rel=\"noopener\">Come calcolare la deviazione standard in SAS (3 esempi)<\/a><br \/> <a href=\"https:\/\/statorials.org\/it\/z-punteggio-sas\/\" target=\"_blank\" rel=\"noopener\">Come calcolare i punteggi Z in SAS<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Standardizzare una variabile significa ridimensionare ciascuno dei valori della variabile in modo tale che il valore medio sia 0 e la deviazione standard sia 1. \u00c8 possibile utilizzare la formula seguente per standardizzare una variabile (x i \u2013 x ) \/ s Oro: x i : l&#8217;i -esimo valore del set di dati x : [&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 utilizzare PROC STDIZE in SAS (con esempio) - Statorials<\/title>\n<meta name=\"description\" content=\"Questo tutorial spiega come utilizzare PROC STDIZE in SAS per standardizzare una o pi\u00f9 variabili numeriche in un set di dati in SAS, inclusi esempi.\" \/>\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\/sas-proc-stdize\/\" \/>\n<meta property=\"og:locale\" content=\"it_IT\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Come utilizzare PROC STDIZE in SAS (con esempio) - Statorials\" \/>\n<meta property=\"og:description\" content=\"Questo tutorial spiega come utilizzare PROC STDIZE in SAS per standardizzare una o pi\u00f9 variabili numeriche in un set di dati in SAS, inclusi esempi.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/statorials.org\/it\/sas-proc-stdize\/\" \/>\n<meta property=\"og:site_name\" content=\"Statorials\" \/>\n<meta property=\"article:published_time\" content=\"2023-07-09T14:06:39+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/statorials.org\/wp-content\/uploads\/2023\/08\/stdize1.png\" \/>\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\/sas-proc-stdize\/\",\"url\":\"https:\/\/statorials.org\/it\/sas-proc-stdize\/\",\"name\":\"Come utilizzare PROC STDIZE in SAS (con esempio) - Statorials\",\"isPartOf\":{\"@id\":\"https:\/\/statorials.org\/it\/#website\"},\"datePublished\":\"2023-07-09T14:06:39+00:00\",\"dateModified\":\"2023-07-09T14:06:39+00:00\",\"author\":{\"@id\":\"https:\/\/statorials.org\/it\/#\/schema\/person\/0896f191fb9fb019f2cd8623112cb3ae\"},\"description\":\"Questo tutorial spiega come utilizzare PROC STDIZE in SAS per standardizzare una o pi\u00f9 variabili numeriche in un set di dati in SAS, inclusi esempi.\",\"breadcrumb\":{\"@id\":\"https:\/\/statorials.org\/it\/sas-proc-stdize\/#breadcrumb\"},\"inLanguage\":\"it-IT\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/statorials.org\/it\/sas-proc-stdize\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/statorials.org\/it\/sas-proc-stdize\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Casa\",\"item\":\"https:\/\/statorials.org\/it\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Come utilizzare proc stdize in sas (con esempio)\"}]},{\"@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 utilizzare PROC STDIZE in SAS (con esempio) - Statorials","description":"Questo tutorial spiega come utilizzare PROC STDIZE in SAS per standardizzare una o pi\u00f9 variabili numeriche in un set di dati in SAS, inclusi esempi.","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\/sas-proc-stdize\/","og_locale":"it_IT","og_type":"article","og_title":"Come utilizzare PROC STDIZE in SAS (con esempio) - Statorials","og_description":"Questo tutorial spiega come utilizzare PROC STDIZE in SAS per standardizzare una o pi\u00f9 variabili numeriche in un set di dati in SAS, inclusi esempi.","og_url":"https:\/\/statorials.org\/it\/sas-proc-stdize\/","og_site_name":"Statorials","article_published_time":"2023-07-09T14:06:39+00:00","og_image":[{"url":"https:\/\/statorials.org\/wp-content\/uploads\/2023\/08\/stdize1.png"}],"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\/sas-proc-stdize\/","url":"https:\/\/statorials.org\/it\/sas-proc-stdize\/","name":"Come utilizzare PROC STDIZE in SAS (con esempio) - Statorials","isPartOf":{"@id":"https:\/\/statorials.org\/it\/#website"},"datePublished":"2023-07-09T14:06:39+00:00","dateModified":"2023-07-09T14:06:39+00:00","author":{"@id":"https:\/\/statorials.org\/it\/#\/schema\/person\/0896f191fb9fb019f2cd8623112cb3ae"},"description":"Questo tutorial spiega come utilizzare PROC STDIZE in SAS per standardizzare una o pi\u00f9 variabili numeriche in un set di dati in SAS, inclusi esempi.","breadcrumb":{"@id":"https:\/\/statorials.org\/it\/sas-proc-stdize\/#breadcrumb"},"inLanguage":"it-IT","potentialAction":[{"@type":"ReadAction","target":["https:\/\/statorials.org\/it\/sas-proc-stdize\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/statorials.org\/it\/sas-proc-stdize\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Casa","item":"https:\/\/statorials.org\/it\/"},{"@type":"ListItem","position":2,"name":"Come utilizzare proc stdize in sas (con esempio)"}]},{"@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\/4622"}],"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=4622"}],"version-history":[{"count":0,"href":"https:\/\/statorials.org\/it\/wp-json\/wp\/v2\/posts\/4622\/revisions"}],"wp:attachment":[{"href":"https:\/\/statorials.org\/it\/wp-json\/wp\/v2\/media?parent=4622"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/statorials.org\/it\/wp-json\/wp\/v2\/categories?post=4622"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/statorials.org\/it\/wp-json\/wp\/v2\/tags?post=4622"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}