<?xml version="1.0" encoding="UTF-8"?> <rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:wfw="http://wellformedweb.org/CommentAPI/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
><channel><title>R-statistics blog &#187; R links</title> <atom:link href="http://www.r-statistics.com/category/r-links/feed/" rel="self" type="application/rss+xml" /><link>http://www.r-statistics.com</link> <description>Writing about statistics with R, and open source stuff (software, data, community)</description> <lastBuildDate>Tue, 07 Sep 2010 18:37:16 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.0.1</generator> <item><title>Repeated measures ANOVA with R (functions and tutorials)</title><link>http://www.r-statistics.com/2010/04/repeated-measures-anova-with-r-tutorials/</link> <comments>http://www.r-statistics.com/2010/04/repeated-measures-anova-with-r-tutorials/#comments</comments> <pubDate>Tue, 13 Apr 2010 08:10:51 +0000</pubDate> <dc:creator>Tal Galili</dc:creator> <category><![CDATA[R]]></category> <category><![CDATA[R links]]></category> <category><![CDATA[statistics]]></category> <category><![CDATA[ANOVA]]></category> <category><![CDATA[aov]]></category> <category><![CDATA[car]]></category> <category><![CDATA[ez]]></category> <category><![CDATA[ezANOVA]]></category> <category><![CDATA[friedman]]></category> <category><![CDATA[friedman test]]></category> <category><![CDATA[friedman's test]]></category> <category><![CDATA[repeated measures]]></category> <category><![CDATA[repeated measures anova]]></category> <category><![CDATA[Repeated measuresANOVA]]></category> <category><![CDATA[Repeatedmeasures]]></category> <category><![CDATA[SS]]></category> <category><![CDATA[SS type I]]></category> <category><![CDATA[SS type I error]]></category> <category><![CDATA[SS type III]]></category> <category><![CDATA[SS type III error]]></category> <category><![CDATA[tutorial]]></category> <category><![CDATA[Unbalanced design]]></category><guid
isPermaLink="false">http://www.r-statistics.com/?p=236</guid> <description><![CDATA[Repeated measures ANOVA is a common task for the data analyst. There are (at least) two ways of performing &#8220;repeated measures ANOVA&#8221; using R but none is really trivial, and each way has it&#8217;s own complication/pitfalls (explanation/solution to which I was usually able to find through searching in the R-help mailing list). So for future reference, I am starting this page to document links I find to tutorials, explanations (and troubleshooting) of &#8220;repeated measure ANOVA&#8221; done with R Functions and [...]]]></description> <content:encoded><![CDATA[<p>Repeated measures ANOVA is a common task for the data analyst.</p><p>There are (at least) two ways of performing &#8220;repeated measures ANOVA&#8221; using R but none is really trivial, and each way has it&#8217;s own complication/pitfalls (explanation/solution to which I was usually able to find through searching in the R-help mailing list).</p><p>So for future reference, I am starting this page to document links I find to tutorials, explanations (and troubleshooting) of &#8220;repeated measure ANOVA&#8221; done with R</p><h3>Functions and packages</h3><p>(I suggest using the tutorials supplied bellow for how to use these functions)</p><ul><li>aov {stats} &#8211; offers SS type I repeated measures anova,  by a call to lm for each stratum.  A short example is given in the ?aov help file</li><li>Anova {<a
href="http://cran.r-project.org/web/packages/car/index.html">car</a>} &#8211; Calculates type-II or type-III analysis-of-variance tables for model objects produced by lm, and for various other object.  The ?Anova help file offers an example for how to use this for repeated measures</li><li>ezANOVA {<a
href="http://cran.r-project.org/web/packages/ez/index.html">ez</a>} &#8211; This function provides easy analysis of data from factorial experiments, including purely within-Ss designs (a.k.a. &#8220;repeated measures&#8221;), purely between-Ss designs, and mixed within-and-between-Ss designs, yielding ANOVA results and assumption checks.  It is a wrapper of the Anova {car} function, and is easier to use.  The ez package also offers the functions ezPlot and ezStats to give plot and statistics of the ANOVA analysis.  The ?ezANOVA help file gives a good demonstration for the functions use (My thanks goes to Matthew Finkbe for letting me know about this cool package)</li><li>friedman.test {stats} &#8211; Performs a Friedman rank sum test with unreplicated blocked data.  That is, a non-parametric one-way repeated measures anova.  I also wrote a wrapper function to perform and plot <a
href="http://www.r-statistics.com/2010/02/post-hoc-analysis-for-friedmans-test-r-code/">a post-hoc analysis on the friedman test results</a></li><li>Non parametric multi way repeated measures anova &#8211; I believe such a function could be developed based on the Proportional Odds Model, maybe using the {repolr} or the {ordinal} packages.  But I still didn&#8217;t come across any function that implements these models (if you do &#8211; please let me know in the comments).</li></ul><h3>Good Tutorials</h3><ul><li>A basic tutorial about ANOVA with R (only the last bit holds some example of repeated measures) on <a
href="http://www.personality-project.org/R/r.anova.html">personality-project</a></li><li><a
href="http://www.personality-project.org/R/r.anova.html"></a>A thorough tutorial on <a
href="http://gribblelab.org/2009/03/09/repeated-measures-anova-using-r/">motor control lab</a></li><li><a
href="http://gribblelab.org/2009/03/09/repeated-measures-anova-using-r/"></a>A thorough tutorial on <a
href="http://www.ats.ucla.edu/stat/R/seminars/Repeated_Measures/repeated_measures.htm">UCLA seminar page</a></li><li><a
href="http://www.psych.upenn.edu/~baron/rpsych/rpsych.html#SECTION00079000000000000000">Another good tutorial</a> by<br
/> Jonathan Baron and Yuelin Li (on <a
href="http://www.psych.upenn.edu/~baron/rpsych/rpsych.html">&#8220;Notes on the use of R for psychology experiments and questionnaires&#8221;</a></li></ul><h3>Troubelshooting</h3><p><strong>Unbalanced design</strong><br
/> Unbalanced design doesn&#8217;t work when doing  repeated measures ANOVA with aov, it just doesn&#8217;t.  This situation occurs if there are missing values in the data or that the data is not from a fully balanced design.  The way this will show up in your output is that you will see the between subject section showing withing subject variables.</p><p>A solution for this might be to use the<a
href="http://finzi.psych.upenn.edu/R/library/car/html/Anova.html"> Anova</a> function from library car with parameter type=&#8221;III&#8221;.  But before doing that, first make sure you understand the difference between SS type I, II and III. <a
href="http://prometheus.scp.rochester.edu/zlab/sites/default/files/InteractionsAndTypesOfSS.pdf">Here is a good tutorial</a> for helping you out with that.<br
/> By the way, these links are also useful in case you want to do a simple two way ANOVA for unbalanced design</p><p>I will &#8220;later&#8221; add R-help mailing list discussions that I found helpful on the subject.</p><p>If you come across good resources, please let me know about them in the comments.</p> ]]></content:encoded> <wfw:commentRss>http://www.r-statistics.com/2010/04/repeated-measures-anova-with-r-tutorials/feed/</wfw:commentRss> <slash:comments>7</slash:comments> </item> <item><title>A nice link: &#8220;Some hints for the R beginner&#8221;</title><link>http://www.r-statistics.com/2010/03/nice-link-some-hints-for-the-r-beginner/</link> <comments>http://www.r-statistics.com/2010/03/nice-link-some-hints-for-the-r-beginner/#comments</comments> <pubDate>Sun, 07 Mar 2010 20:47:31 +0000</pubDate> <dc:creator>Tal Galili</dc:creator> <category><![CDATA[R]]></category> <category><![CDATA[R links]]></category> <category><![CDATA[hints]]></category> <category><![CDATA[link]]></category> <category><![CDATA[r help]]></category> <category><![CDATA[r tips]]></category> <category><![CDATA[R tutorial]]></category> <category><![CDATA[tutorial]]></category><guid
isPermaLink="false">http://www.r-statistics.com/?p=189</guid> <description><![CDATA[Patrick Burns just posted to the mailing list the following massage: There is now a document called &#8220;Some hints for the R beginner&#8221; whose purpose is to get people up and running with R as quickly as possible. Direct access to it is: http://www.burns-stat.com/pages/Tutor/hints_R_begin.html JRR Tolkien wrote a story (sans hobbits) called &#8216;Leaf by Niggle&#8217; that has always resonated with me. I offer you an imperfect, incomplete tree (but my roof is intact). Suggestions for improvements are encouraged. And here [...]]]></description> <content:encoded><![CDATA[<p>Patrick Burns just posted to the mailing list the following massage:</p><blockquote><p>There is now a document called &#8220;Some hints for the R beginner&#8221; whose purpose is to get people up and running with R as quickly as possible.</p><p>Direct access to it is:<br
/> <a
href="http://www.burns-stat.com/pages/Tutor/hints_R_begin.html">http://www.burns-stat.com/pages/Tutor/hints_R_begin.html</a></p><p>JRR Tolkien wrote a story (sans hobbits) called &#8216;Leaf by Niggle&#8217; that has always resonated with me.  I offer you an imperfect, incomplete tree (but my roof is intact).</p><p>Suggestions for improvements are encouraged.</p></blockquote><p>And here is the link tree for the document (for your easy reviewing of the offered content) :</p><p><span
id="more-189"></span></p><p><strong>This page has several sections, they can be put into the four categories: General, Objects, Actions, Help.</strong></p><p><strong>General<br
/> <a
href="http://www.burns-stat.com/pages/Tutor/hints_R_begin.html#intro">Introduction </a><br
/> <a
href="http://www.burns-stat.com/pages/Tutor/hints_R_begin.html#blankscreen">Blank screen syndrome </a><br
/> <a
href="http://www.burns-stat.com/pages/Tutor/hints_R_begin.html#langs">Misconceptions because of a previous language </a><br
/> <a
href="http://www.burns-stat.com/pages/Tutor/hints_R_begin.html#compenv">Helpful computer environments </a><br
/> <a
href="http://www.burns-stat.com/pages/Tutor/hints_R_begin.html#jargon">R vocabulary </a><br
/> <a
href="http://www.burns-stat.com/pages/Tutor/hints_R_begin.html#epilogue">Epilogue </a></strong></p><p><strong>Objects<br
/> <a
href="http://www.burns-stat.com/pages/Tutor/hints_R_begin.html#keyobjects">Key objects </a><br
/> <a
href="http://www.burns-stat.com/pages/Tutor/hints_R_begin.html#readingdata">Reading data into R </a><br
/> <a
href="http://www.burns-stat.com/pages/Tutor/hints_R_begin.html#seeingobjects">Seeing objects </a><br
/> <a
href="http://www.burns-stat.com/pages/Tutor/hints_R_begin.html#savingobjects">Saving objects </a><br
/> <a
href="http://www.burns-stat.com/pages/Tutor/hints_R_begin.html#magic">Magic functions, magic objects </a><br
/> <a
href="http://www.burns-stat.com/pages/Tutor/hints_R_begin.html#filetypes">Some file types </a><br
/> <a
href="http://www.burns-stat.com/pages/Tutor/hints_R_begin.html#packages">Packages </a></p><p>Actions<br
/> <a
href="http://www.burns-stat.com/pages/Tutor/hints_R_begin.html#startup">What happens at R startup </a><br
/> <a
href="http://www.burns-stat.com/pages/Tutor/hints_R_begin.html#keyactions">Key actions </a><br
/> <a
href="http://www.burns-stat.com/pages/Tutor/hints_R_begin.html#errors">Errors and such </a><br
/> <a
href="http://www.burns-stat.com/pages/Tutor/hints_R_begin.html#graphics">Graphics </a><br
/> <a
href="http://www.burns-stat.com/pages/Tutor/hints_R_begin.html#vectorize">Vectorization </a><br
/> <a
href="http://www.burns-stat.com/pages/Tutor/hints_R_begin.html#makemistakes">Make mistakes on purpose </a></p><p></strong></p><p><strong>Help<br
/> <a
href="http://www.burns-stat.com/pages/Tutor/hints_R_begin.html#readhelp">How to read a help file </a><br
/> <a
href="http://www.burns-stat.com/pages/Tutor/hints_R_begin.html#search">Searching for functionality </a><br
/> <a
href="http://www.burns-stat.com/pages/Tutor/hints_R_begin.html#documents">Some other documents </a><br
/> <a
href="http://www.burns-stat.com/pages/Tutor/hints_R_begin.html#Rhelp">R-help mailing list </a></strong></p> ]]></content:encoded> <wfw:commentRss>http://www.r-statistics.com/2010/03/nice-link-some-hints-for-the-r-beginner/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk
Page Caching using disk (enhanced)
Database Caching using disk
Object Caching 321/378 objects using disk

Served from: www.r-statistics.com @ 2010-09-07 23:57:10 -->