<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-2589693470451883873</id><updated>2025-09-20T17:28:36.447+02:00</updated><category term="Funzioni di R"/><category term="Regressione"/><category term="Grafici"/><category term="ANOVA"/><category term="Due campioni"/><category term="Analisi delle varianze"/><category term="Campioni appaiati"/><category term="Analisi del trend"/><category term="Campioni indipendenti"/><category term="Confronti multipli"/><category term="Correlazione"/><category term="Distribuzione binomiale"/><category term="Omoschedasticità"/><category term="Regressione logistica"/><category term="T-test"/><category term="Test F di Fisher"/><category term="Trend analysis"/><category term="Bernoulli"/><category term="Matrici"/><category term="OR"/><category term="Più campioni"/><category term="Test del chi-quadro"/><category term="ANOVA a due vie"/><category term="Algebra Lineare"/><category term="Algoritmo di Strassen"/><category term="CA"/><category term="Cluster Analysis"/><category term="Editor"/><category term="For..To..Do"/><category term="Friedman test"/><category term="Immagini"/><category term="Post-hoc tests"/><category term="Probabilità"/><category term="Regressione polinomiale"/><category term="Standardizzazione"/><category term="Tabelle di contingenza"/><category term="Test di Bartlett"/><category term="Test di Cox-Stuart"/><category term="Test di Fligner-Killeen"/><category term="Test di Spearman"/><category term="Test di Wilcoxon"/><category term="Test di verifica di normalità"/><category term="Un campione"/><category term="Verifica di proporzioni"/><category term="Z-test"/><category term="Analisi della sopravvivenza"/><category term="CDC"/><category term="Choropleth map"/><category term="Cochran Q test"/><category term="Cochran-Mantel-Haenszel"/><category term="Curve di Kaplan-Meier"/><category term="Dataframe"/><category term="Diagramma a torta"/><category term="Diamond Chart"/><category term="Distribuzione F-max"/><category term="Excel"/><category term="Google Analytics"/><category term="Google Chart API"/><category term="Growth charts"/><category term="Hierarchical Clustering"/><category term="IEEE-754"/><category term="If..Then..Else"/><category term="InkBlot graph"/><category term="Latin Squares Design"/><category term="Log-rank test"/><category term="McNemar test"/><category term="Modello di Cox"/><category term="Odd-ratio"/><category term="Ortogonale"/><category term="Partitional clustering"/><category term="Quadrati latini"/><category term="Regressione lineare multipla"/><category term="Regressione segmentale"/><category term="Repeated measures ANOVA"/><category term="Residui"/><category term="Stagionalità"/><category term="Suoni"/><category term="Test di Armitage"/><category term="Test di Kendall"/><category term="Test di Kruskal-Wallis"/><category term="Test di Levene"/><category term="Test di Pearson"/><category term="Welch test"/><category term="ggplot2"/><category term="p-value"/><title type='text'>Statistica con R</title><subtitle type='html'>&lt;img src=&quot;http://img130.imageshack.us/img130/4771/sta2u.jpg&quot;&gt;&lt;br&gt;&#xa;Esercizi di statistica descrittiva e di verifica delle ipotesi risolti e commentati con R</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://statisticaconr.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2589693470451883873/posts/default'/><link rel='alternate' type='text/html' href='http://statisticaconr.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/2589693470451883873/posts/default?start-index=26&amp;max-results=25'/><author><name>Todos Logos</name><uri>http://www.blogger.com/profile/09881188152777475558</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh0N7J_gIkhIfPvO9eH7IfkCYVVFeYSTaX1nir77i4dZu82Fe-7DI_Apc1RtjJMkJK2xeqsBe4VF1vtCnv1FEmF70o47AAVe2DgXtUMk54hm9N3o5uI66y6uW2TsjWKmQ/s1600-r/1228321236hmKk20.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>66</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-2589693470451883873.post-7641744371074040670</id><published>2014-02-02T13:07:00.001+01:00</published><updated>2014-02-02T13:08:19.886+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ggplot2"/><category scheme="http://www.blogger.com/atom/ns#" term="Grafici"/><title type='text'>Boxplot con media e deviazione standard</title><summary type="text">Quando si crea un boxplot in R, automaticamente vengono rappresentati graficamente la mediana, il primo e terzo quartile (i due &quot;hinges&quot;, ossia gli estremi del rettangolo) e l&#39;intervallo di confidenza al 95% della mediana (gli estremi dei &quot;notches&quot;, ossia le linee).



Tuttavia possiamo voler rappresentare graficamente la media, la deviazione standard (media + DS, media - DS) e i valori massimo e</summary><link rel='replies' type='application/atom+xml' href='http://statisticaconr.blogspot.com/feeds/7641744371074040670/comments/default' title='Commenti sul post'/><link rel='replies' type='text/html' href='http://statisticaconr.blogspot.com/2014/02/boxplot-con-media-e-deviazione-standard.html#comment-form' title='9 Commenti'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2589693470451883873/posts/default/7641744371074040670'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2589693470451883873/posts/default/7641744371074040670'/><link rel='alternate' type='text/html' href='http://statisticaconr.blogspot.com/2014/02/boxplot-con-media-e-deviazione-standard.html' title='Boxplot con media e deviazione standard'/><author><name>Todos Logos</name><uri>http://www.blogger.com/profile/09881188152777475558</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh0N7J_gIkhIfPvO9eH7IfkCYVVFeYSTaX1nir77i4dZu82Fe-7DI_Apc1RtjJMkJK2xeqsBe4VF1vtCnv1FEmF70o47AAVe2DgXtUMk54hm9N3o5uI66y6uW2TsjWKmQ/s1600-r/1228321236hmKk20.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjvSukeySQuOPoLpDau4RCrNwk9-8VoKKguq-PFBchOg-c-cvYAptl_UOEuWi33_lecfI5yXIM3zAcYX7VNUderdVb0Nv81uDDKWMv_JYp4uB1ZspfKYsGP8tNawq9CprOsgMPB5LS3A6M/s72-c/Immaginet3.jpg" height="72" width="72"/><thr:total>9</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2589693470451883873.post-1119158071067973344</id><published>2011-10-31T10:58:00.007+01:00</published><updated>2011-10-31T11:08:45.677+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Campioni appaiati"/><category scheme="http://www.blogger.com/atom/ns#" term="Cochran Q test"/><category scheme="http://www.blogger.com/atom/ns#" term="Confronti multipli"/><category scheme="http://www.blogger.com/atom/ns#" term="McNemar test"/><category scheme="http://www.blogger.com/atom/ns#" term="Più campioni"/><title type='text'>Cochran Q Test in R (Nonparametric Test for Categorical Data)</title><summary type="text">Il Cochran Q test è un test non parametrico sviluppato per l&#39;analisi di valori nominali. L&#39;ipotesi che si vuole testare è: nel dataset costituito da k (k maggiore o uguale a 2) campioni dipendenti, esistono almeno due campioni che provengono da differenti popolazioni?Il test Q di Cochran rappresenta una estensione del test di McNemar, il quale può essere applicato con analoghi risultati quando k </summary><link rel='replies' type='application/atom+xml' href='http://statisticaconr.blogspot.com/feeds/1119158071067973344/comments/default' title='Commenti sul post'/><link rel='replies' type='text/html' href='http://statisticaconr.blogspot.com/2011/10/cochran-q-test-in-r-nonparametric-test.html#comment-form' title='5 Commenti'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2589693470451883873/posts/default/1119158071067973344'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2589693470451883873/posts/default/1119158071067973344'/><link rel='alternate' type='text/html' href='http://statisticaconr.blogspot.com/2011/10/cochran-q-test-in-r-nonparametric-test.html' title='Cochran Q Test in R (Nonparametric Test for Categorical Data)'/><author><name>Todos Logos</name><uri>http://www.blogger.com/profile/09881188152777475558</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh0N7J_gIkhIfPvO9eH7IfkCYVVFeYSTaX1nir77i4dZu82Fe-7DI_Apc1RtjJMkJK2xeqsBe4VF1vtCnv1FEmF70o47AAVe2DgXtUMk54hm9N3o5uI66y6uW2TsjWKmQ/s1600-r/1228321236hmKk20.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj68u3lw0acx6BVOJE7zHIY7-YYHJ_3xPQopPWWQI8AGX7HQtkKXJ0RxOiQf2PSkYC0LMgr6W5thD9L0IrzGbyr-TuZzvyE2fWctMB5vQR5WBJczL_lfInI8hr8CSmIhPaoHQSPyRSiBBk/s72-c/tab1.JPG" height="72" width="72"/><thr:total>5</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2589693470451883873.post-4090012940736392564</id><published>2011-10-30T10:44:00.012+01:00</published><updated>2011-10-30T12:07:00.003+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ANOVA"/><category scheme="http://www.blogger.com/atom/ns#" term="Campioni appaiati"/><category scheme="http://www.blogger.com/atom/ns#" term="Confronti multipli"/><category scheme="http://www.blogger.com/atom/ns#" term="Friedman test"/><title type='text'>Test di Friedman: confronti multipli non parametrici</title><summary type="text">Il test di Friedman viene usato per comparare tra loro più di due campioni dipendenti, in termini di popolazione. Il confronto che viene fatto si basa sulla mediana della popolazione.La statistica test (Fr) viene calcolata con le seguenti due formule.La prima si applica se non ci sono ripetizioni, mentre la seconda nel caso in cui ci sono ripetizioni nella assegnazione del rango.Nella formula, n </summary><link rel='replies' type='application/atom+xml' href='http://statisticaconr.blogspot.com/feeds/4090012940736392564/comments/default' title='Commenti sul post'/><link rel='replies' type='text/html' href='http://statisticaconr.blogspot.com/2011/10/test-di-friedman-confronti-multipli-non.html#comment-form' title='13 Commenti'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2589693470451883873/posts/default/4090012940736392564'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2589693470451883873/posts/default/4090012940736392564'/><link rel='alternate' type='text/html' href='http://statisticaconr.blogspot.com/2011/10/test-di-friedman-confronti-multipli-non.html' title='Test di Friedman: confronti multipli non parametrici'/><author><name>Todos Logos</name><uri>http://www.blogger.com/profile/09881188152777475558</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh0N7J_gIkhIfPvO9eH7IfkCYVVFeYSTaX1nir77i4dZu82Fe-7DI_Apc1RtjJMkJK2xeqsBe4VF1vtCnv1FEmF70o47AAVe2DgXtUMk54hm9N3o5uI66y6uW2TsjWKmQ/s1600-r/1228321236hmKk20.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg-44IwZSmkAAzJdb_M_Rqox5ifak602RdqEa6FDseU0zqPNiIYGc76c0gEC0ppXjbwtsCEvWIq4VWMLe34uxER15JOyLmh6PCARk4-zD1Y_GTtEYt93xZDoqRa_TK_YJkZC0jjv00oPn4/s72-c/no+ties.gif" height="72" width="72"/><thr:total>13</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2589693470451883873.post-7700663948426583529</id><published>2011-09-17T23:06:00.004+02:00</published><updated>2011-09-17T23:27:08.376+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="CDC"/><category scheme="http://www.blogger.com/atom/ns#" term="Funzioni di R"/><category scheme="http://www.blogger.com/atom/ns#" term="Grafici"/><category scheme="http://www.blogger.com/atom/ns#" term="Growth charts"/><title type='text'>CDC Growth Charts implementate in R</title><summary type="text">Con gran fatica e sudore, sono riuscito a implementare l&#39;intero set di Growth Charts messo a disposizione dalla CDC (Centers for Disease Control and Prevention).Volendo evitare di riscrivere (e cercare nuovamente i links perduti dei vari documenti/codici), rinvio alla lettura del mio post inglese....Implementation of the CDC Growth Charts in RPer qualsiasi commento, proposta, potete scrivere su </summary><link rel='replies' type='application/atom+xml' href='http://statisticaconr.blogspot.com/feeds/7700663948426583529/comments/default' title='Commenti sul post'/><link rel='replies' type='text/html' href='http://statisticaconr.blogspot.com/2011/09/cdc-growth-charts-implementate-in-r.html#comment-form' title='2 Commenti'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2589693470451883873/posts/default/7700663948426583529'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2589693470451883873/posts/default/7700663948426583529'/><link rel='alternate' type='text/html' href='http://statisticaconr.blogspot.com/2011/09/cdc-growth-charts-implementate-in-r.html' title='CDC Growth Charts implementate in R'/><author><name>Todos Logos</name><uri>http://www.blogger.com/profile/09881188152777475558</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh0N7J_gIkhIfPvO9eH7IfkCYVVFeYSTaX1nir77i4dZu82Fe-7DI_Apc1RtjJMkJK2xeqsBe4VF1vtCnv1FEmF70o47AAVe2DgXtUMk54hm9N3o5uI66y6uW2TsjWKmQ/s1600-r/1228321236hmKk20.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2589693470451883873.post-4309982551303667433</id><published>2011-09-07T17:07:00.003+02:00</published><updated>2011-09-07T17:15:10.383+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Funzioni di R"/><category scheme="http://www.blogger.com/atom/ns#" term="Suoni"/><title type='text'>R è anche un ottimo sound editor!</title><summary type="text">Ebbene sì, le capacità di R! Sono sempre più convinto che possa essere un ottimo concorrente del ben più noto MatLab.Per divertimento, ho creato una funzione, che riceve in input una sequenza di numeri, e come output produre la melodia che potreste udire, digitando la stessa sequenza con il vostro telefon di casa! =)Supporta anche le lettere A, B, C, D, e i simboli * e #.Questa funzione richiede </summary><link rel='replies' type='application/atom+xml' href='http://statisticaconr.blogspot.com/feeds/4309982551303667433/comments/default' title='Commenti sul post'/><link rel='replies' type='text/html' href='http://statisticaconr.blogspot.com/2011/09/r-e-anche-un-ottimo-sound-editor.html#comment-form' title='2 Commenti'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2589693470451883873/posts/default/4309982551303667433'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2589693470451883873/posts/default/4309982551303667433'/><link rel='alternate' type='text/html' href='http://statisticaconr.blogspot.com/2011/09/r-e-anche-un-ottimo-sound-editor.html' title='R è anche un ottimo sound editor!'/><author><name>Todos Logos</name><uri>http://www.blogger.com/profile/09881188152777475558</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh0N7J_gIkhIfPvO9eH7IfkCYVVFeYSTaX1nir77i4dZu82Fe-7DI_Apc1RtjJMkJK2xeqsBe4VF1vtCnv1FEmF70o47AAVe2DgXtUMk54hm9N3o5uI66y6uW2TsjWKmQ/s1600-r/1228321236hmKk20.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2589693470451883873.post-8230622628341716600</id><published>2011-08-29T11:20:00.002+02:00</published><updated>2011-08-29T11:25:08.097+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Editor"/><category scheme="http://www.blogger.com/atom/ns#" term="Funzioni di R"/><category scheme="http://www.blogger.com/atom/ns#" term="Immagini"/><title type='text'>R is a cool image editor #2: Dithering algorithms</title><summary type="text">Ho implementato in R alcuni algoritmi per il &quot;dithering&quot; delle immagini (un buon articolo introduttivo è disponibile su WikiPedia):- Floyd-Steinberg dithering- Bill Atkinson dithering- Jarvis-Judice-Ninke dithering- Sierra 2-4a dithering filter- Stucki dithering- Burkes dithering- Sierra2 dithering- Sierra3 ditheringPer ciascun algoritmo, sono presenti due funzioni. La prima consiste </summary><link rel='replies' type='application/atom+xml' href='http://statisticaconr.blogspot.com/feeds/8230622628341716600/comments/default' title='Commenti sul post'/><link rel='replies' type='text/html' href='http://statisticaconr.blogspot.com/2011/08/r-is-cool-image-editor-2-dithering.html#comment-form' title='0 Commenti'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2589693470451883873/posts/default/8230622628341716600'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2589693470451883873/posts/default/8230622628341716600'/><link rel='alternate' type='text/html' href='http://statisticaconr.blogspot.com/2011/08/r-is-cool-image-editor-2-dithering.html' title='R is a cool image editor #2: Dithering algorithms'/><author><name>Todos Logos</name><uri>http://www.blogger.com/profile/09881188152777475558</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh0N7J_gIkhIfPvO9eH7IfkCYVVFeYSTaX1nir77i4dZu82Fe-7DI_Apc1RtjJMkJK2xeqsBe4VF1vtCnv1FEmF70o47AAVe2DgXtUMk54hm9N3o5uI66y6uW2TsjWKmQ/s1600-r/1228321236hmKk20.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2589693470451883873.post-2995736023335460439</id><published>2011-08-26T06:17:00.002+02:00</published><updated>2011-08-26T06:20:04.232+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="For..To..Do"/><category scheme="http://www.blogger.com/atom/ns#" term="Funzioni di R"/><category scheme="http://www.blogger.com/atom/ns#" term="Grafici"/><title type='text'>Legge di Benford, o legge della prima cifra</title><summary type="text">La distribuzione di Benford meglio nota come legge di Benford o legge della prima cifra è una distribuzione di probabilità che descrive la probabilità che un numero presente in molte raccolte di dati reali (p.es. popolazione dei comuni, quotazione delle azioni, costanti fisiche o matematiche, numero di strade esistenti nelle località) cominci con una data cifra, ad esempio &quot;1&quot;, che secondo questa</summary><link rel='replies' type='application/atom+xml' href='http://statisticaconr.blogspot.com/feeds/2995736023335460439/comments/default' title='Commenti sul post'/><link rel='replies' type='text/html' href='http://statisticaconr.blogspot.com/2011/08/legge-di-benford-o-legge-della-prima.html#comment-form' title='0 Commenti'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2589693470451883873/posts/default/2995736023335460439'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2589693470451883873/posts/default/2995736023335460439'/><link rel='alternate' type='text/html' href='http://statisticaconr.blogspot.com/2011/08/legge-di-benford-o-legge-della-prima.html' title='Legge di Benford, o legge della prima cifra'/><author><name>Todos Logos</name><uri>http://www.blogger.com/profile/09881188152777475558</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh0N7J_gIkhIfPvO9eH7IfkCYVVFeYSTaX1nir77i4dZu82Fe-7DI_Apc1RtjJMkJK2xeqsBe4VF1vtCnv1FEmF70o47AAVe2DgXtUMk54hm9N3o5uI66y6uW2TsjWKmQ/s1600-r/1228321236hmKk20.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://img.youtube.com/vi/6KmeGpjeLZ0/default.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2589693470451883873.post-3435330828712900797</id><published>2011-06-16T09:45:00.004+02:00</published><updated>2017-05-27T08:24:20.394+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Grafici"/><category scheme="http://www.blogger.com/atom/ns#" term="Regressione"/><category scheme="http://www.blogger.com/atom/ns#" term="Residui"/><title type='text'>Creare un grafico in R con la retta di regressione e le distanze dei punti</title><summary type="text">x &lt;- c(173, 169, 176, 166, 161, 164, 160, 158, 180, 187)y &lt;- c(80, 68, 72, 75, 70, 65, 62, 60, 85, 92)# plottiamo i punti e la retta di regressionemod1 &lt;- lm(y ~ x)plot(x, y, xlim=c(min(x)-5, max(x)+5), ylim=c(min(y)-10, max(y)+10))abline(mod1, lwd=2)# calcoliamo (e approssimiamo) i residui e i valori predictedres &lt;- signif(residuals(mod1), 5)pre &lt;- predict(mod1)# tracciamo i segmenti di distanza</summary><link rel='replies' type='application/atom+xml' href='http://statisticaconr.blogspot.com/feeds/3435330828712900797/comments/default' title='Commenti sul post'/><link rel='replies' type='text/html' href='http://statisticaconr.blogspot.com/2011/06/creare-un-grafico-in-r-con-la-retta-di.html#comment-form' title='3 Commenti'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2589693470451883873/posts/default/3435330828712900797'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2589693470451883873/posts/default/3435330828712900797'/><link rel='alternate' type='text/html' href='http://statisticaconr.blogspot.com/2011/06/creare-un-grafico-in-r-con-la-retta-di.html' title='Creare un grafico in R con la retta di regressione e le distanze dei punti'/><author><name>Todos Logos</name><uri>http://www.blogger.com/profile/09881188152777475558</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh0N7J_gIkhIfPvO9eH7IfkCYVVFeYSTaX1nir77i4dZu82Fe-7DI_Apc1RtjJMkJK2xeqsBe4VF1vtCnv1FEmF70o47AAVe2DgXtUMk54hm9N3o5uI66y6uW2TsjWKmQ/s1600-r/1228321236hmKk20.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhekztPvABYfJE5c26rSYCbsshz6nykyrvSvIAboMj5Iu4S0sLO_5klEJpanJiIvHlB4ZEYRFE9Owv8fDD4rXzxa88gOWkzmE-CHcv_7WwHfji4rZCp6paT35-T3M1B0iMWT0qko44jeSY/s72-c/plot1.jpeg" height="72" width="72"/><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2589693470451883873.post-2208679067237941195</id><published>2010-11-07T12:26:00.002+01:00</published><updated>2010-11-07T12:27:58.905+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Editor"/><category scheme="http://www.blogger.com/atom/ns#" term="Funzioni di R"/><category scheme="http://www.blogger.com/atom/ns#" term="Immagini"/><title type='text'>R is a cool image editor!</title><summary type="text">Ecco qualche funzione per ricreare alcuni dei più famosi effetti da applicare sulle immagini, disponibili nella gran parte degli editor (Photoshop incluso)Per poter caricare e modificare le immagini, è necessario installare la library rimage.Per caricare una immagina, il codice è il seguente:y &amp;lt;- read.jpeg&amp;#40;&amp;quot;path&amp;quot;&amp;#41;Per plottare l&#39;immagine, usiamo invece:plot&amp;#40;y&amp;#41;Original </summary><link rel='replies' type='application/atom+xml' href='http://statisticaconr.blogspot.com/feeds/2208679067237941195/comments/default' title='Commenti sul post'/><link rel='replies' type='text/html' href='http://statisticaconr.blogspot.com/2010/11/r-is-cool-image-editor.html#comment-form' title='4 Commenti'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2589693470451883873/posts/default/2208679067237941195'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2589693470451883873/posts/default/2208679067237941195'/><link rel='alternate' type='text/html' href='http://statisticaconr.blogspot.com/2010/11/r-is-cool-image-editor.html' title='R is a cool image editor!'/><author><name>Todos Logos</name><uri>http://www.blogger.com/profile/09881188152777475558</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh0N7J_gIkhIfPvO9eH7IfkCYVVFeYSTaX1nir77i4dZu82Fe-7DI_Apc1RtjJMkJK2xeqsBe4VF1vtCnv1FEmF70o47AAVe2DgXtUMk54hm9N3o5uI66y6uW2TsjWKmQ/s1600-r/1228321236hmKk20.jpg'/></author><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2589693470451883873.post-5736817452838737806</id><published>2010-10-19T19:32:00.004+02:00</published><updated>2010-10-19T19:59:57.460+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Algebra Lineare"/><category scheme="http://www.blogger.com/atom/ns#" term="Algoritmo di Strassen"/><category scheme="http://www.blogger.com/atom/ns#" term="Matrici"/><title type='text'>Inversione veloce di matrici: Strassen #2</title><summary type="text">In maniera molto simile a quanto è stato fatto per creare una funzione per eseguire velocemente moltiplicazioni tra grandi matrici con l&#39;algoritmo di Strassen (vedi post precedente), scriviamo adesso funzioni per calcolare velocemente l&#39;inversa di una matrice.Per evitare di scrivere pagine e pagine di commenti e formule, come ho fatto per la moltiplicazione tra matrici, questa volta posto </summary><link rel='replies' type='application/atom+xml' href='http://statisticaconr.blogspot.com/feeds/5736817452838737806/comments/default' title='Commenti sul post'/><link rel='replies' type='text/html' href='http://statisticaconr.blogspot.com/2010/10/inversione-veloce-di-matrici-strassen-2.html#comment-form' title='0 Commenti'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2589693470451883873/posts/default/5736817452838737806'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2589693470451883873/posts/default/5736817452838737806'/><link rel='alternate' type='text/html' href='http://statisticaconr.blogspot.com/2010/10/inversione-veloce-di-matrici-strassen-2.html' title='Inversione veloce di matrici: Strassen #2'/><author><name>Todos Logos</name><uri>http://www.blogger.com/profile/09881188152777475558</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh0N7J_gIkhIfPvO9eH7IfkCYVVFeYSTaX1nir77i4dZu82Fe-7DI_Apc1RtjJMkJK2xeqsBe4VF1vtCnv1FEmF70o47AAVe2DgXtUMk54hm9N3o5uI66y6uW2TsjWKmQ/s1600-r/1228321236hmKk20.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2589693470451883873.post-5999052152708195221</id><published>2010-10-18T08:36:00.005+02:00</published><updated>2010-10-18T22:08:11.447+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Algoritmo di Strassen"/><category scheme="http://www.blogger.com/atom/ns#" term="Funzioni di R"/><category scheme="http://www.blogger.com/atom/ns#" term="Matrici"/><title type='text'>Moltiplicazione veloce tra matrici: algoritmo di Strassen</title><summary type="text">Nel pdf qui sotto ho implementato una prima versione dell&#39;algoritmo di Strassen in R, utile per svolgere rapidamente moltiplicazioni tra matrici.Il codice è sicuramente da rivedere, e perfezionare, però può essere un utile inizio per una implementazione migliore.Vorrei ringraziare l&#39;utente G. Grothendieck per avermi suggerito un modo per creare matrici quadrate più grandi partendo da matrici più </summary><link rel='replies' type='application/atom+xml' href='http://statisticaconr.blogspot.com/feeds/5999052152708195221/comments/default' title='Commenti sul post'/><link rel='replies' type='text/html' href='http://statisticaconr.blogspot.com/2010/10/moltiplicazione-veloce-tra-matrici.html#comment-form' title='0 Commenti'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2589693470451883873/posts/default/5999052152708195221'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2589693470451883873/posts/default/5999052152708195221'/><link rel='alternate' type='text/html' href='http://statisticaconr.blogspot.com/2010/10/moltiplicazione-veloce-tra-matrici.html' title='Moltiplicazione veloce tra matrici: algoritmo di Strassen'/><author><name>Todos Logos</name><uri>http://www.blogger.com/profile/09881188152777475558</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh0N7J_gIkhIfPvO9eH7IfkCYVVFeYSTaX1nir77i4dZu82Fe-7DI_Apc1RtjJMkJK2xeqsBe4VF1vtCnv1FEmF70o47AAVe2DgXtUMk54hm9N3o5uI66y6uW2TsjWKmQ/s1600-r/1228321236hmKk20.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2589693470451883873.post-1374355778805981661</id><published>2010-10-06T12:31:00.005+02:00</published><updated>2011-09-27T08:49:54.922+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Funzioni di R"/><category scheme="http://www.blogger.com/atom/ns#" term="IEEE-754"/><title type='text'>Conversione numeri decimali in IEEE-754-32bit</title><summary type="text">Per un pò di teoria sullo standard IEEE-754 rimando alla pagina di Wikipedia. Qui posto solamente la funzione per effettuare la conversione in R.Innanzitutto scriviamo alcune funzioni per eseguire la conversione dei numeri decimali in numeri binari:decInt_to_8bit &lt;- function(x, precs) {q &lt;- c()r &lt;- c()xx &lt;- c()for(i in 1:precs){xx[1] &lt;- xq[i] &lt;- xx[i] %/% 2r[i] &lt;- xx[i] %% 2xx[i+1] &lt;- q[i]}rr &lt;- </summary><link rel='replies' type='application/atom+xml' href='http://statisticaconr.blogspot.com/feeds/1374355778805981661/comments/default' title='Commenti sul post'/><link rel='replies' type='text/html' href='http://statisticaconr.blogspot.com/2010/10/conversione-numeri-decimali-in-ieee-754.html#comment-form' title='0 Commenti'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2589693470451883873/posts/default/1374355778805981661'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2589693470451883873/posts/default/1374355778805981661'/><link rel='alternate' type='text/html' href='http://statisticaconr.blogspot.com/2010/10/conversione-numeri-decimali-in-ieee-754.html' title='Conversione numeri decimali in IEEE-754-32bit'/><author><name>Todos Logos</name><uri>http://www.blogger.com/profile/09881188152777475558</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh0N7J_gIkhIfPvO9eH7IfkCYVVFeYSTaX1nir77i4dZu82Fe-7DI_Apc1RtjJMkJK2xeqsBe4VF1vtCnv1FEmF70o47AAVe2DgXtUMk54hm9N3o5uI66y6uW2TsjWKmQ/s1600-r/1228321236hmKk20.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2589693470451883873.post-620558529420948005</id><published>2010-10-02T11:27:00.001+02:00</published><updated>2010-10-02T11:28:37.872+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Regressione"/><category scheme="http://www.blogger.com/atom/ns#" term="Regressione polinomiale"/><title type='text'>Regressione polinomiale #2</title><summary type="text">Ho già parlato della regressione polinomiale in un mio post precedente, dove ho focalizzato l&#39;attenzione essenzialmente sui comandi da dare ad R, e sulla rappresentazione grafica dei modelli.Ho deciso di scrivere un secondo post sullo stesso argomento per spiegare il procedimento formale per ottenere il modello, dando un forte rilievo ai calcoli manuali (più volte nel mio blog ho dato questa </summary><link rel='replies' type='application/atom+xml' href='http://statisticaconr.blogspot.com/feeds/620558529420948005/comments/default' title='Commenti sul post'/><link rel='replies' type='text/html' href='http://statisticaconr.blogspot.com/2010/10/regressione-polinomiale-2.html#comment-form' title='0 Commenti'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2589693470451883873/posts/default/620558529420948005'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2589693470451883873/posts/default/620558529420948005'/><link rel='alternate' type='text/html' href='http://statisticaconr.blogspot.com/2010/10/regressione-polinomiale-2.html' title='Regressione polinomiale #2'/><author><name>Todos Logos</name><uri>http://www.blogger.com/profile/09881188152777475558</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh0N7J_gIkhIfPvO9eH7IfkCYVVFeYSTaX1nir77i4dZu82Fe-7DI_Apc1RtjJMkJK2xeqsBe4VF1vtCnv1FEmF70o47AAVe2DgXtUMk54hm9N3o5uI66y6uW2TsjWKmQ/s1600-r/1228321236hmKk20.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2589693470451883873.post-7309532269928879201</id><published>2010-10-01T13:07:00.003+02:00</published><updated>2010-10-01T20:23:12.189+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Algebra Lineare"/><category scheme="http://www.blogger.com/atom/ns#" term="Matrici"/><title type='text'>Decomposizione LU di una matrice</title><summary type="text">Il pane quotidiano della statistica è l&#39;algebra lineare, e in particolare l&#39;algebra delle matrici. Risulta pertanto fondamentale avere delle basi dei metodi utilizzati per poter apprendere a pieno i procedimenti.In questo post voglio condividere un file pdf che ho scritto, per la soluzione di sistemi di equazioni con il metodo della decomposizione LU (o di Doolittle).Ho cercato di descrivere </summary><link rel='replies' type='application/atom+xml' href='http://statisticaconr.blogspot.com/feeds/7309532269928879201/comments/default' title='Commenti sul post'/><link rel='replies' type='text/html' href='http://statisticaconr.blogspot.com/2010/10/decomposizione-lu-di-una-matrice.html#comment-form' title='0 Commenti'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2589693470451883873/posts/default/7309532269928879201'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2589693470451883873/posts/default/7309532269928879201'/><link rel='alternate' type='text/html' href='http://statisticaconr.blogspot.com/2010/10/decomposizione-lu-di-una-matrice.html' title='Decomposizione LU di una matrice'/><author><name>Todos Logos</name><uri>http://www.blogger.com/profile/09881188152777475558</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh0N7J_gIkhIfPvO9eH7IfkCYVVFeYSTaX1nir77i4dZu82Fe-7DI_Apc1RtjJMkJK2xeqsBe4VF1vtCnv1FEmF70o47AAVe2DgXtUMk54hm9N3o5uI66y6uW2TsjWKmQ/s1600-r/1228321236hmKk20.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2589693470451883873.post-355125506650122922</id><published>2010-09-17T16:27:00.004+02:00</published><updated>2010-09-17T22:36:47.678+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Funzioni di R"/><title type='text'>Come visualizzare il codice delle funzioni di R</title><summary type="text">Spesso ho avuto la necessità di esaminare il codice di una funzione di R, per studiare come essa funziona.In genere è sufficiente digitare il nome della funzione, senza parentesi o altri parametri per visualizzarlo sulla console di R, ma non sempre questo è sufficiente.Consideriamo ad esempio la funzione shapiro.test. Per ottenere il codice con cui viene eseguito questo test è sufficiente </summary><link rel='replies' type='application/atom+xml' href='http://statisticaconr.blogspot.com/feeds/355125506650122922/comments/default' title='Commenti sul post'/><link rel='replies' type='text/html' href='http://statisticaconr.blogspot.com/2010/09/come-visualizzare-il-codice-delle.html#comment-form' title='2 Commenti'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2589693470451883873/posts/default/355125506650122922'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2589693470451883873/posts/default/355125506650122922'/><link rel='alternate' type='text/html' href='http://statisticaconr.blogspot.com/2010/09/come-visualizzare-il-codice-delle.html' title='Come visualizzare il codice delle funzioni di R'/><author><name>Todos Logos</name><uri>http://www.blogger.com/profile/09881188152777475558</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh0N7J_gIkhIfPvO9eH7IfkCYVVFeYSTaX1nir77i4dZu82Fe-7DI_Apc1RtjJMkJK2xeqsBe4VF1vtCnv1FEmF70o47AAVe2DgXtUMk54hm9N3o5uI66y6uW2TsjWKmQ/s1600-r/1228321236hmKk20.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2589693470451883873.post-7264943001927337720</id><published>2010-07-02T08:27:00.009+02:00</published><updated>2011-09-27T10:34:13.903+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="CA"/><category scheme="http://www.blogger.com/atom/ns#" term="Cluster Analysis"/><category scheme="http://www.blogger.com/atom/ns#" term="Partitional clustering"/><title type='text'>Cluster Analysis in R #2: Partitional Clustering</title><summary type="text">Questo è il secondo post sull&#39;argomento della cluster analysis in R, scritto con la preziosa collaborazione di Mirko Modenese (www.eurac.edu). Nel primo è stata presentata la tecnica del hierarchical clustering, mentre qui verrà discussa la tecnica del Partitional Clustering, con particolare attenzione all&#39;algoritmo Kmeans.Introduzione alla Cluster Analysis             \        Hierarchical </summary><link rel='replies' type='application/atom+xml' href='http://statisticaconr.blogspot.com/feeds/7264943001927337720/comments/default' title='Commenti sul post'/><link rel='replies' type='text/html' href='http://statisticaconr.blogspot.com/2010/07/cluster-analysis-in-r-2-partitional.html#comment-form' title='11 Commenti'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2589693470451883873/posts/default/7264943001927337720'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2589693470451883873/posts/default/7264943001927337720'/><link rel='alternate' type='text/html' href='http://statisticaconr.blogspot.com/2010/07/cluster-analysis-in-r-2-partitional.html' title='Cluster Analysis in R #2: Partitional Clustering'/><author><name>Todos Logos</name><uri>http://www.blogger.com/profile/09881188152777475558</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh0N7J_gIkhIfPvO9eH7IfkCYVVFeYSTaX1nir77i4dZu82Fe-7DI_Apc1RtjJMkJK2xeqsBe4VF1vtCnv1FEmF70o47AAVe2DgXtUMk54hm9N3o5uI66y6uW2TsjWKmQ/s1600-r/1228321236hmKk20.jpg'/></author><thr:total>11</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2589693470451883873.post-5448046969911184531</id><published>2010-06-30T18:56:00.011+02:00</published><updated>2011-09-27T10:15:02.371+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="CA"/><category scheme="http://www.blogger.com/atom/ns#" term="Cluster Analysis"/><category scheme="http://www.blogger.com/atom/ns#" term="Hierarchical Clustering"/><title type='text'>Cluster Analysis in R #1: Hierarchical Clustering</title><summary type="text">Dietro suggerimento e con il prezioso aiuto di Mirko Modenese, statistico presso l’European Academy of Research (www.eurac.edu) e docente di R presso l&#39;Università Ca&#39;Foscari di Venezia (Facoltà di Economia), che qui ringrazio per la sua disponibilità, ho deciso di sviluppare in due posts il tema della Cluster Analysis in R.Questo è l&#39;indice degli argomenti svolti:Introduzione alla Cluster </summary><link rel='replies' type='application/atom+xml' href='http://statisticaconr.blogspot.com/feeds/5448046969911184531/comments/default' title='Commenti sul post'/><link rel='replies' type='text/html' href='http://statisticaconr.blogspot.com/2010/06/cluster-analysis-in-r-1-hierarchical.html#comment-form' title='12 Commenti'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2589693470451883873/posts/default/5448046969911184531'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2589693470451883873/posts/default/5448046969911184531'/><link rel='alternate' type='text/html' href='http://statisticaconr.blogspot.com/2010/06/cluster-analysis-in-r-1-hierarchical.html' title='Cluster Analysis in R #1: Hierarchical Clustering'/><author><name>Todos Logos</name><uri>http://www.blogger.com/profile/09881188152777475558</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh0N7J_gIkhIfPvO9eH7IfkCYVVFeYSTaX1nir77i4dZu82Fe-7DI_Apc1RtjJMkJK2xeqsBe4VF1vtCnv1FEmF70o47AAVe2DgXtUMk54hm9N3o5uI66y6uW2TsjWKmQ/s1600-r/1228321236hmKk20.jpg'/></author><thr:total>12</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2589693470451883873.post-2907420702508921671</id><published>2010-04-06T09:43:00.006+02:00</published><updated>2011-09-27T09:25:18.740+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ANOVA"/><category scheme="http://www.blogger.com/atom/ns#" term="ANOVA a due vie"/><category scheme="http://www.blogger.com/atom/ns#" term="Campioni appaiati"/><category scheme="http://www.blogger.com/atom/ns#" term="Repeated measures ANOVA"/><title type='text'>Repeated measures ANOVA: confronto tra gruppi di misure ripetute</title><summary type="text">Supponiamo di voler analizzare una certa variabile in n individui, e che questa variabile venga misurata più di 2 volte per ogni soggetto (ad esempio la pressione arteriosa prima del trattamento, durante il trattamento e al termine del trattamento farmacologico). E&#39; intuitivo che i valori misurati siano tra loro appaiati, essendo stati misurati sugli stessi soggetti. Se avessimo effettuato solo 2</summary><link rel='replies' type='application/atom+xml' href='http://statisticaconr.blogspot.com/feeds/2907420702508921671/comments/default' title='Commenti sul post'/><link rel='replies' type='text/html' href='http://statisticaconr.blogspot.com/2010/04/repeated-measures-anova-confronto-tra.html#comment-form' title='6 Commenti'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2589693470451883873/posts/default/2907420702508921671'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2589693470451883873/posts/default/2907420702508921671'/><link rel='alternate' type='text/html' href='http://statisticaconr.blogspot.com/2010/04/repeated-measures-anova-confronto-tra.html' title='Repeated measures ANOVA: confronto tra gruppi di misure ripetute'/><author><name>Todos Logos</name><uri>http://www.blogger.com/profile/09881188152777475558</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh0N7J_gIkhIfPvO9eH7IfkCYVVFeYSTaX1nir77i4dZu82Fe-7DI_Apc1RtjJMkJK2xeqsBe4VF1vtCnv1FEmF70o47AAVe2DgXtUMk54hm9N3o5uI66y6uW2TsjWKmQ/s1600-r/1228321236hmKk20.jpg'/></author><thr:total>6</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2589693470451883873.post-20819498513385483</id><published>2010-02-27T11:59:00.000+01:00</published><updated>2010-02-27T12:01:35.367+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Grafici"/><category scheme="http://www.blogger.com/atom/ns#" term="InkBlot graph"/><title type='text'>Come creare un InkBlot graph con R</title><summary type="text">Questo post è dedicato alla creazione con R di un InkBlot chart, anche chiamato Kaleidoscope Chart, di cui potete vedere un esempio a questo link.Ciò di cui necessitiamo è la library ggplot2, che è il gold standard della grafica con R. E ovviamente dobbiamo procurarci i giusti dati da analizzare!I dati che utilizzerò sono presi dal sito ISTAT; in particolare userò alcune tabelle con le previsioni</summary><link rel='replies' type='application/atom+xml' href='http://statisticaconr.blogspot.com/feeds/20819498513385483/comments/default' title='Commenti sul post'/><link rel='replies' type='text/html' href='http://statisticaconr.blogspot.com/2010/02/come-creare-un-inkblot-graph-con-r.html#comment-form' title='0 Commenti'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2589693470451883873/posts/default/20819498513385483'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2589693470451883873/posts/default/20819498513385483'/><link rel='alternate' type='text/html' href='http://statisticaconr.blogspot.com/2010/02/come-creare-un-inkblot-graph-con-r.html' title='Come creare un InkBlot graph con R'/><author><name>Todos Logos</name><uri>http://www.blogger.com/profile/09881188152777475558</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh0N7J_gIkhIfPvO9eH7IfkCYVVFeYSTaX1nir77i4dZu82Fe-7DI_Apc1RtjJMkJK2xeqsBe4VF1vtCnv1FEmF70o47AAVe2DgXtUMk54hm9N3o5uI66y6uW2TsjWKmQ/s1600-r/1228321236hmKk20.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2589693470451883873.post-5512466010453704544</id><published>2010-02-26T11:44:00.003+01:00</published><updated>2014-06-07T12:29:57.198+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ANOVA"/><category scheme="http://www.blogger.com/atom/ns#" term="Friedman test"/><category scheme="http://www.blogger.com/atom/ns#" term="Omoschedasticità"/><category scheme="http://www.blogger.com/atom/ns#" term="Test di verifica di normalità"/><category scheme="http://www.blogger.com/atom/ns#" term="Welch test"/><title type='text'>Quando le assunzioni dell&#39;ANOVA sono violate: tests e post-hoc tests</title><summary type="text">Il capitolo dei confronti multipli è uno dei più vasti nella letteratura statistica. Cominciamo con un riepilogo. Le due principali assunzioni della ANOVA sono:
1. tutti i gruppi seguono una distribuzione normale
2. le varianze sono omogenee (omoschedasticità)

Queste due assunzioni vengono verificate rispettivamente con i test di normalità, e con i test di omogeneità della varianza.
Se queste </summary><link rel='replies' type='application/atom+xml' href='http://statisticaconr.blogspot.com/feeds/5512466010453704544/comments/default' title='Commenti sul post'/><link rel='replies' type='text/html' href='http://statisticaconr.blogspot.com/2010/02/quando-le-assunzioni-dellanova-sono.html#comment-form' title='13 Commenti'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2589693470451883873/posts/default/5512466010453704544'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2589693470451883873/posts/default/5512466010453704544'/><link rel='alternate' type='text/html' href='http://statisticaconr.blogspot.com/2010/02/quando-le-assunzioni-dellanova-sono.html' title='Quando le assunzioni dell&#39;ANOVA sono violate: tests e post-hoc tests'/><author><name>Todos Logos</name><uri>http://www.blogger.com/profile/09881188152777475558</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh0N7J_gIkhIfPvO9eH7IfkCYVVFeYSTaX1nir77i4dZu82Fe-7DI_Apc1RtjJMkJK2xeqsBe4VF1vtCnv1FEmF70o47AAVe2DgXtUMk54hm9N3o5uI66y6uW2TsjWKmQ/s1600-r/1228321236hmKk20.jpg'/></author><thr:total>13</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2589693470451883873.post-5650332131313331975</id><published>2010-01-02T16:30:00.002+01:00</published><updated>2010-01-02T16:35:21.595+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ANOVA"/><category scheme="http://www.blogger.com/atom/ns#" term="Latin Squares Design"/><category scheme="http://www.blogger.com/atom/ns#" term="Quadrati latini"/><title type='text'>Latin squares design in R</title><summary type="text">Il disegno a quadrati latini (latin square design) permette di analizzare 3 fattori contemporaneamente, così come si farebbe con una ANOVA a 3 fattori.Questo metodo è stato creato inizialmente in ambito agrario, per avere un metodo di analisi della produttività di un terreno, coltivato in maniera differente. Pertanto userò un esempio prettamente agrario, ma questa analisi può essere applicata </summary><link rel='replies' type='application/atom+xml' href='http://statisticaconr.blogspot.com/feeds/5650332131313331975/comments/default' title='Commenti sul post'/><link rel='replies' type='text/html' href='http://statisticaconr.blogspot.com/2010/01/latin-squares-design-in-r.html#comment-form' title='0 Commenti'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2589693470451883873/posts/default/5650332131313331975'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2589693470451883873/posts/default/5650332131313331975'/><link rel='alternate' type='text/html' href='http://statisticaconr.blogspot.com/2010/01/latin-squares-design-in-r.html' title='Latin squares design in R'/><author><name>Todos Logos</name><uri>http://www.blogger.com/profile/09881188152777475558</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh0N7J_gIkhIfPvO9eH7IfkCYVVFeYSTaX1nir77i4dZu82Fe-7DI_Apc1RtjJMkJK2xeqsBe4VF1vtCnv1FEmF70o47AAVe2DgXtUMk54hm9N3o5uI66y6uW2TsjWKmQ/s1600-r/1228321236hmKk20.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2589693470451883873.post-4941969051051201310</id><published>2009-12-30T23:19:00.009+01:00</published><updated>2010-01-25T23:34:02.702+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Dataframe"/><category scheme="http://www.blogger.com/atom/ns#" term="For..To..Do"/><category scheme="http://www.blogger.com/atom/ns#" term="Funzioni di R"/><category scheme="http://www.blogger.com/atom/ns#" term="Google Chart API"/><category scheme="http://www.blogger.com/atom/ns#" term="Grafici"/><category scheme="http://www.blogger.com/atom/ns#" term="If..Then..Else"/><category scheme="http://www.blogger.com/atom/ns#" term="Standardizzazione"/><title type='text'>Mappa dei Social Networks per nazione in R</title><summary type="text">Come ultimo post dell&#39;anno 2009, ho deciso di presentare alcune funzioni di R che finora non avevo mai trattato, e per fare pratica con i dataframe in R. L&#39;argomento che ho scelto come esempio da analizzare è la popolarità dei Social Network, idea che mi è venuta leggendo questo articolo. Non voglio certo soffermarmi in pensieri e riflessioni su questo genere di siti, essendo l&#39;obiettivo di </summary><link rel='replies' type='application/atom+xml' href='http://statisticaconr.blogspot.com/feeds/4941969051051201310/comments/default' title='Commenti sul post'/><link rel='replies' type='text/html' href='http://statisticaconr.blogspot.com/2009/12/mappa-dei-social-networks-per-nazione.html#comment-form' title='8 Commenti'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2589693470451883873/posts/default/4941969051051201310'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2589693470451883873/posts/default/4941969051051201310'/><link rel='alternate' type='text/html' href='http://statisticaconr.blogspot.com/2009/12/mappa-dei-social-networks-per-nazione.html' title='Mappa dei Social Networks per nazione in R'/><author><name>Todos Logos</name><uri>http://www.blogger.com/profile/09881188152777475558</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh0N7J_gIkhIfPvO9eH7IfkCYVVFeYSTaX1nir77i4dZu82Fe-7DI_Apc1RtjJMkJK2xeqsBe4VF1vtCnv1FEmF70o47AAVe2DgXtUMk54hm9N3o5uI66y6uW2TsjWKmQ/s1600-r/1228321236hmKk20.jpg'/></author><thr:total>8</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2589693470451883873.post-2091445894443765811</id><published>2009-12-23T10:56:00.002+01:00</published><updated>2009-12-23T13:40:07.322+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Diamond Chart"/><category scheme="http://www.blogger.com/atom/ns#" term="Grafici"/><category scheme="http://www.blogger.com/atom/ns#" term="Standardizzazione"/><title type='text'>Standardizzazione e diamond chart</title><summary type="text">In questo post vediamo come creare un diamond plot, o diamond chart, o spider chart, o diagramma di Kiviat, ossia uno dei tanti metodi grafici per confrontare diversi parametri tra vari oggetti in studio. Per questo esempio, ho scelto di confrontare tra loro 3 diversi modelli di auto, ottenendo i dati dal sito gaadi.com. I 3 modelli che ho scelto sono:- Fiat Grande Punto 1.4 Emotion Pack- </summary><link rel='replies' type='application/atom+xml' href='http://statisticaconr.blogspot.com/feeds/2091445894443765811/comments/default' title='Commenti sul post'/><link rel='replies' type='text/html' href='http://statisticaconr.blogspot.com/2009/12/standardizzazione-e-diamond-chart.html#comment-form' title='1 Commenti'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2589693470451883873/posts/default/2091445894443765811'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2589693470451883873/posts/default/2091445894443765811'/><link rel='alternate' type='text/html' href='http://statisticaconr.blogspot.com/2009/12/standardizzazione-e-diamond-chart.html' title='Standardizzazione e diamond chart'/><author><name>Todos Logos</name><uri>http://www.blogger.com/profile/09881188152777475558</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh0N7J_gIkhIfPvO9eH7IfkCYVVFeYSTaX1nir77i4dZu82Fe-7DI_Apc1RtjJMkJK2xeqsBe4VF1vtCnv1FEmF70o47AAVe2DgXtUMk54hm9N3o5uI66y6uW2TsjWKmQ/s1600-r/1228321236hmKk20.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2589693470451883873.post-4001601806266754317</id><published>2009-12-21T10:14:00.003+01:00</published><updated>2009-12-21T10:23:03.534+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Choropleth map"/><category scheme="http://www.blogger.com/atom/ns#" term="Grafici"/><title type='text'>Choropleth map in R: coloriamo le mappe geografiche</title><summary type="text">Dopo una lunga pausa, finalmente torno ad occuparmi del mio blog!In questo post vedremo come creare una choropleth map, ossia una mappa geografica con le diverse regioni colorate in base ad un certo valore numerico.Per far questo, ecco ciò di cui abbiamo bisogno:** libreria sp** libreria Hmisc** la mappa bianca: su questo sito è possibile ottenere le mappe in un formato leggibile da R** i dati da</summary><link rel='replies' type='application/atom+xml' href='http://statisticaconr.blogspot.com/feeds/4001601806266754317/comments/default' title='Commenti sul post'/><link rel='replies' type='text/html' href='http://statisticaconr.blogspot.com/2009/12/choropleth-map-in-r-coloriamo-le-mappe.html#comment-form' title='25 Commenti'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2589693470451883873/posts/default/4001601806266754317'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2589693470451883873/posts/default/4001601806266754317'/><link rel='alternate' type='text/html' href='http://statisticaconr.blogspot.com/2009/12/choropleth-map-in-r-coloriamo-le-mappe.html' title='Choropleth map in R: coloriamo le mappe geografiche'/><author><name>Todos Logos</name><uri>http://www.blogger.com/profile/09881188152777475558</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh0N7J_gIkhIfPvO9eH7IfkCYVVFeYSTaX1nir77i4dZu82Fe-7DI_Apc1RtjJMkJK2xeqsBe4VF1vtCnv1FEmF70o47AAVe2DgXtUMk54hm9N3o5uI66y6uW2TsjWKmQ/s1600-r/1228321236hmKk20.jpg'/></author><thr:total>25</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2589693470451883873.post-2900498092075838953</id><published>2009-09-03T18:31:00.006+02:00</published><updated>2011-09-27T09:56:30.900+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Analisi della sopravvivenza"/><category scheme="http://www.blogger.com/atom/ns#" term="Curve di Kaplan-Meier"/><category scheme="http://www.blogger.com/atom/ns#" term="Log-rank test"/><category scheme="http://www.blogger.com/atom/ns#" term="Modello di Cox"/><category scheme="http://www.blogger.com/atom/ns#" term="Regressione"/><title type='text'>Analisi della sopravvivenza: curve di Kaplan-Meier e modello di Cox</title><summary type="text">Le funzioni di sopravvivenza possono essere studiate con due metodi: il metodo attuariale e il metodo di Kaplan-Meier. Quest&#39;ultimo viene utilizzato quando:- si conosce il tempo esatto in cui avviene l&#39;evento considerato (e non l&#39;intervallo, come nel metodo atturiale)- i persi al follow-up (truncated o censored, in inglese) partecipano alla determinazione della funzione di sopravvivenza fino al </summary><link rel='replies' type='application/atom+xml' href='http://statisticaconr.blogspot.com/feeds/2900498092075838953/comments/default' title='Commenti sul post'/><link rel='replies' type='text/html' href='http://statisticaconr.blogspot.com/2009/09/analisi-della-sopravvivenza-curve-di.html#comment-form' title='13 Commenti'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2589693470451883873/posts/default/2900498092075838953'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2589693470451883873/posts/default/2900498092075838953'/><link rel='alternate' type='text/html' href='http://statisticaconr.blogspot.com/2009/09/analisi-della-sopravvivenza-curve-di.html' title='Analisi della sopravvivenza: curve di Kaplan-Meier e modello di Cox'/><author><name>Todos Logos</name><uri>http://www.blogger.com/profile/09881188152777475558</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh0N7J_gIkhIfPvO9eH7IfkCYVVFeYSTaX1nir77i4dZu82Fe-7DI_Apc1RtjJMkJK2xeqsBe4VF1vtCnv1FEmF70o47AAVe2DgXtUMk54hm9N3o5uI66y6uW2TsjWKmQ/s1600-r/1228321236hmKk20.jpg'/></author><thr:total>13</thr:total></entry></feed>