<?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-33859018</id><updated>2020-02-29T02:02:37.119-05:00</updated><category term="Assignments"/><category term="JMP"/><category term="schedule"/><category term="projects"/><category term="notes"/><category term="R"/><category term="graphs"/><category term="lectures"/><category term="Quiz"/><title type='text'>vital statistics</title><subtitle type='html'>statistics for biologists</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://vstats.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/33859018/posts/default'/><link rel='alternate' type='text/html' href='http://vstats.blogspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/33859018/posts/default?start-index=26&amp;max-results=25'/><author><name>Bob Montgomerie</name><uri>http://www.blogger.com/profile/13895677746615571939</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>73</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-33859018.post-4729479184960161135</id><published>2014-01-01T16:42:00.001-05:00</published><updated>2014-01-01T16:42:19.768-05:00</updated><title type='text'>Final Marks</title><content type='html'>&lt;table cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;float: right; margin-left: 1em; text-align: right;&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;http://1.bp.blogspot.com/-cdiEJBp9RBg/UsSLIyy8syI/AAAAAAAAEhw/-CbGDeh0-zU/s1600/IMG_4455lowres.jpeg&quot; imageanchor=&quot;1&quot; style=&quot;clear: right; margin-bottom: 1em; margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;http://1.bp.blogspot.com/-cdiEJBp9RBg/UsSLIyy8syI/AAAAAAAAEhw/-CbGDeh0-zU/s320/IMG_4455lowres.jpeg&quot; width=&quot;230&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;&lt;b&gt;Anna&#39;s Hummingbird&lt;/b&gt; &amp;nbsp;&lt;i&gt;PHOTO by Bruce Lyon&lt;/i&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;A few people have written to me about final marks. Relax. They will be posted on Solus sometime next week. Our secretaries have been away for the holidays and the deadline for submission to the registrar is not until tomorrow.&lt;br /&gt;&lt;br /&gt;I hope you all had a good holiday and I am looking forward to seeing you either in courses, or just around campus in the coming year.&lt;br /&gt;&lt;br /&gt;I have spent much of my time studying the hummingbird shown to the right. Not just that species but that very bird, who is just now sitting in a tree outside my window, while he waits for me to fill up the feeder. These birds are abundant here in Santa Cruz during the wintertime.&lt;br /&gt;&lt;br /&gt;All the best for the New Year.&lt;br /&gt;&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://vstats.blogspot.com/feeds/4729479184960161135/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=33859018&amp;postID=4729479184960161135&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/33859018/posts/default/4729479184960161135'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/33859018/posts/default/4729479184960161135'/><link rel='alternate' type='text/html' href='http://vstats.blogspot.com/2014/01/final-marks.html' title='Final Marks'/><author><name>Bob Montgomerie</name><uri>http://www.blogger.com/profile/13895677746615571939</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://1.bp.blogspot.com/-cdiEJBp9RBg/UsSLIyy8syI/AAAAAAAAEhw/-CbGDeh0-zU/s72-c/IMG_4455lowres.jpeg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-33859018.post-5108354958361903898</id><published>2013-12-05T22:52:00.000-05:00</published><updated>2013-12-05T22:52:05.071-05:00</updated><title type='text'>Project B due at noon tomorrow</title><content type='html'>As I hope you are well aware, Project B is due before noon tomorrow, Friday 6 Dec. When marking this project we will give approximately equal weight to the following five elements of your report.&lt;br /&gt;&lt;br /&gt;&lt;ol&gt;&lt;li&gt;Abstract, Intro, Methods&lt;/li&gt;&lt;li&gt;Results (statistical analyses and reporting)&lt;/li&gt;&lt;li&gt;Discussion (some thoughtful discussion of what you found, what it means and any potential sources of error)&lt;/li&gt;&lt;li&gt;Figures and Tables (captions, axis labels, units, clarity, informative)&lt;/li&gt;&lt;li&gt;Style and dataset (organization, clarity, conciseness, presentation of material, quality of writing, avoidance of extraneous material, overall length not more than needed—there is no length requirement but your paper should not include too much extraneous material that is not needed)&lt;/li&gt;&lt;/ol&gt;&lt;div&gt;Results and Discussion can be combined into one section, of course. I trust that there are no surprises here as these are all the elements of any good report.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Have a good holiday. I hope to see you again in the new year.&lt;/div&gt;&lt;div&gt;Bob Montgomerie&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vstats.blogspot.com/feeds/5108354958361903898/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=33859018&amp;postID=5108354958361903898&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/33859018/posts/default/5108354958361903898'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/33859018/posts/default/5108354958361903898'/><link rel='alternate' type='text/html' href='http://vstats.blogspot.com/2013/12/project-b-due-at-noon-tomorrow.html' title='Project B due at noon tomorrow'/><author><name>Bob Montgomerie</name><uri>http://www.blogger.com/profile/13895677746615571939</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-33859018.post-4814210909269059606</id><published>2013-11-28T21:21:00.000-05:00</published><updated>2013-11-28T21:21:14.045-05:00</updated><title type='text'>It&#39;s a Concept</title><content type='html'>In class on Wednesday we talked about the important concepts that you should have learned and learned about in BIOL-243. If you take nothing more from this course, a clear understanding of these concepts will be very useful in the rest of your undergraduate career, and life!&lt;br /&gt;&lt;br /&gt;They are, in no particular order except that I feel the the first one is most important:&lt;br /&gt;&lt;br /&gt;&lt;ol&gt;&lt;li&gt;Plot your data before you do any analysis&lt;/li&gt;&lt;li&gt;Think about your plotted data and what it shows&lt;/li&gt;&lt;li&gt;statistical significance&lt;/li&gt;&lt;li&gt;statistical vs biological significance&lt;/li&gt;&lt;li&gt;random sampling&lt;/li&gt;&lt;li&gt;sample vs population&lt;/li&gt;&lt;li&gt;normality&lt;/li&gt;&lt;li&gt;pseudoreplication&lt;/li&gt;&lt;li&gt;reporting the results of statistical analyses&lt;/li&gt;&lt;li&gt;hypothesis testing&lt;/li&gt;&lt;li&gt;sampling methods&lt;/li&gt;&lt;li&gt;independence&lt;/li&gt;&lt;li&gt;different kinds of test&lt;/li&gt;&lt;li&gt;parametric vs nonparametric analyses&lt;/li&gt;&lt;/ol&gt;</content><link rel='replies' type='application/atom+xml' href='http://vstats.blogspot.com/feeds/4814210909269059606/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=33859018&amp;postID=4814210909269059606&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/33859018/posts/default/4814210909269059606'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/33859018/posts/default/4814210909269059606'/><link rel='alternate' type='text/html' href='http://vstats.blogspot.com/2013/11/its-concept.html' title='It&#39;s a Concept'/><author><name>Bob Montgomerie</name><uri>http://www.blogger.com/profile/13895677746615571939</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-33859018.post-2561273466271211697</id><published>2013-11-28T21:13:00.001-05:00</published><updated>2013-11-28T21:13:04.196-05:00</updated><title type='text'>Project Thoughts</title><content type='html'>Several students have asked me more or less the same set of questions about Project B, so I thought it might be useful if I just address all of those questions here:&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;while there is no specific page length requirement. it seems to me that it should be easy to fit this project into 4 single-spaced pages, including graphs&lt;/li&gt;&lt;ul&gt;&lt;li&gt;single spaced&lt;/li&gt;&lt;li&gt;no need to make the graphs very big (7 cm x 5 cm is big enough and smaller could be good too&lt;/li&gt;&lt;li&gt;do not just screen capture ALL of the output from JMP, R or whatever stats program you are using; include only the info that is relevant to answering the questions and telling your story. If you don&#39;t refer to something in the text, then leave it out unless I specifically asked for it.&lt;/li&gt;&lt;/ul&gt;&lt;li&gt;please include your dataset as a separate .csv file&lt;/li&gt;&lt;li&gt;the methods may not need to be longer than 3 sentences: 1. where you got the data, 2. how you sampled the data (or not), 3. what program you used to analyze the data The reader should be able to duplicate your study. No need to provide picky details about how you did analyses&lt;/li&gt;&lt;li&gt;Figures and tables need captions&lt;/li&gt;&lt;li&gt;we will be looking particularly for a clear demonstration that you understand the various concepts we outlined in class on Wednesday (see next post) and can express yourself and your analyses clearly and concisely&lt;/li&gt;&lt;li&gt;references are NOT required but I could see include a couple to support your conclusions, or point the reader to related studies&lt;/li&gt;&lt;li&gt;use whatever reference style you like. If in doubt pick a style used in any scientific journal&lt;/li&gt;&lt;li&gt;number the pages&lt;/li&gt;&lt;li&gt;do not over-report the results of your analyses, it is usually only necessary to say what test you used, the test statistic, the p-value, and the sample size&lt;/li&gt;&lt;li&gt;do not report more than 2 decimal places unless absolutely necessary (as in 0.00004)&lt;/li&gt;&lt;/ul&gt;</content><link rel='replies' type='application/atom+xml' href='http://vstats.blogspot.com/feeds/2561273466271211697/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=33859018&amp;postID=2561273466271211697&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/33859018/posts/default/2561273466271211697'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/33859018/posts/default/2561273466271211697'/><link rel='alternate' type='text/html' href='http://vstats.blogspot.com/2013/11/project-thoughts.html' title='Project Thoughts'/><author><name>Bob Montgomerie</name><uri>http://www.blogger.com/profile/13895677746615571939</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-33859018.post-1307641368443532652</id><published>2013-11-28T21:02:00.000-05:00</published><updated>2013-11-28T21:02:14.820-05:00</updated><title type='text'>Checking residuals</title><content type='html'>When doing a regression analysis it&#39;s useful to check the residuals after you have done the regression. Two plots are useful, to help you verify that assumptions have been met.&lt;br /&gt;&lt;br /&gt;First, check the plot of residuals against the predictor (X), like this one for the regression of Horsepower (Y) on Displacement (X) that I showed in class:&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://4.bp.blogspot.com/-G7bhzvbSgsU/UpfzYvAWjWI/AAAAAAAAEhU/gdK0MviNZ1E/s1600/resids.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;160&quot; src=&quot;http://4.bp.blogspot.com/-G7bhzvbSgsU/UpfzYvAWjWI/AAAAAAAAEhU/gdK0MviNZ1E/s320/resids.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;You want to check this graph to make sure that the distribution of residuals around the dotted line (zero) is not increasing or decreasing as you go from left to right. In the graph above the residuals look to be increasing but not too bad. You also want to make sure that they are uniformly scattered about the zero line and not curvilinear etc.&lt;br /&gt;&lt;br /&gt;Nest it&#39;s useful to do a quantile-quantile plot of the residuals to test for normality. This is NOT the Residual Normal Quantile Plot that you get in JMP and is best plotted by saving the residuals (under the red triangle beside Line of Fit in JMP) as a new coloumn in the dataset, and then choosing Analyze&amp;gt;Distribution in JMP to get this:&lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://3.bp.blogspot.com/-aiP8DmKUabw/Upf1e4OUw_I/AAAAAAAAEhg/kIUAO8iD15U/s1600/ResidsQuantil.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;http://3.bp.blogspot.com/-aiP8DmKUabw/Upf1e4OUw_I/AAAAAAAAEhg/kIUAO8iD15U/s320/ResidsQuantil.png&quot; width=&quot;236&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;As you can see the residuals are close to normal with maybe one outlier at the top of the graph.&lt;/div&gt;&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://vstats.blogspot.com/feeds/1307641368443532652/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=33859018&amp;postID=1307641368443532652&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/33859018/posts/default/1307641368443532652'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/33859018/posts/default/1307641368443532652'/><link rel='alternate' type='text/html' href='http://vstats.blogspot.com/2013/11/checking-residuals.html' title='Checking residuals'/><author><name>Bob Montgomerie</name><uri>http://www.blogger.com/profile/13895677746615571939</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://4.bp.blogspot.com/-G7bhzvbSgsU/UpfzYvAWjWI/AAAAAAAAEhU/gdK0MviNZ1E/s72-c/resids.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-33859018.post-4008550630919168059</id><published>2013-11-25T17:00:00.001-05:00</published><updated>2013-11-25T17:00:58.356-05:00</updated><title type='text'>Final Quiz</title><content type='html'>The final quiz is available on Moodle and is due before 5 pm Tuesday. One student has reported not being able to see the whole set of graphs in question 1, so I have now made them smaller. DO not hesitate to contact me if there is anything like that that is preventing you from seeing the whole quiz. I do check the quizzes on my computer but my screen is probably bigger than yours.</content><link rel='replies' type='application/atom+xml' href='http://vstats.blogspot.com/feeds/4008550630919168059/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=33859018&amp;postID=4008550630919168059&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/33859018/posts/default/4008550630919168059'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/33859018/posts/default/4008550630919168059'/><link rel='alternate' type='text/html' href='http://vstats.blogspot.com/2013/11/final-quiz.html' title='Final Quiz'/><author><name>Bob Montgomerie</name><uri>http://www.blogger.com/profile/13895677746615571939</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-33859018.post-3809513715812178143</id><published>2013-11-24T13:52:00.001-05:00</published><updated>2013-11-24T13:54:13.043-05:00</updated><title type='text'>Infographics</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;Here is a selection of the infographics that I really liked from Project A. Several of them used the online info graphics maker &lt;a href=&quot;http://piktochart.com/&quot; target=&quot;_blank&quot;&gt;&lt;b&gt;Piktochart&lt;/b&gt;&lt;/a&gt; but not everyone who used Piktochart made a great info graphic. There were a few others that I liked so don&#39;t be too disappointed if yours is not here. These ones all seemed to me to be creative, informative and attractive. I have not identified the authors of these infographics as I think some of these people might prefer to be anonymous.&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://3.bp.blogspot.com/-NjtE7l6V-vg/UpJCMxVZTpI/AAAAAAAAEg0/NHV95xCKx_M/s1600/ashley_chisholm_29249_assignsubmission_file_stefan10006670pa__2_.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;http://3.bp.blogspot.com/-NjtE7l6V-vg/UpJCMxVZTpI/AAAAAAAAEg0/NHV95xCKx_M/s320/ashley_chisholm_29249_assignsubmission_file_stefan10006670pa__2_.png&quot; width=&quot;160&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://1.bp.blogspot.com/-je02VqPqCBc/UpJBt1oNxtI/AAAAAAAAEbo/KgXoR0wjCOI/s1600/CapturFiles.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;http://1.bp.blogspot.com/-je02VqPqCBc/UpJBt1oNxtI/AAAAAAAAEbo/KgXoR0wjCOI/s320/CapturFiles.png&quot; width=&quot;243&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;/div&gt;&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&amp;nbsp;&lt;a href=&quot;http://3.bp.blogspot.com/-ecFfEDURoQ8/UpJBrEfzLmI/AAAAAAAAEbE/2Ud-0I1siHw/s1600/CapturFiles_1.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em; text-align: center;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;http://3.bp.blogspot.com/-ecFfEDURoQ8/UpJBrEfzLmI/AAAAAAAAEbE/2Ud-0I1siHw/s320/CapturFiles_1.png&quot; width=&quot;246&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://4.bp.blogspot.com/--_pf6Z8NpVg/UpJByg25duI/AAAAAAAAEcU/KvLVmV8sgM4/s1600/CapturFiles_2.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;http://4.bp.blogspot.com/--_pf6Z8NpVg/UpJByg25duI/AAAAAAAAEcU/KvLVmV8sgM4/s320/CapturFiles_2.png&quot; width=&quot;249&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://2.bp.blogspot.com/-FU0KMXaD460/UpJB65WopaI/AAAAAAAAEds/QXuIeHcoTWY/s1600/CapturFiles_3.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;http://2.bp.blogspot.com/-FU0KMXaD460/UpJB65WopaI/AAAAAAAAEds/QXuIeHcoTWY/s320/CapturFiles_3.png&quot; width=&quot;229&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://2.bp.blogspot.com/-aWZ9iqB76L4/UpJCCvE43eI/AAAAAAAAEfM/N8YKfNwSOB0/s1600/CapturFiles_4.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;http://2.bp.blogspot.com/-aWZ9iqB76L4/UpJCCvE43eI/AAAAAAAAEfM/N8YKfNwSOB0/s320/CapturFiles_4.png&quot; width=&quot;229&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://3.bp.blogspot.com/-J9g4ClBoHRc/UpJCI2DgaQI/AAAAAAAAEgA/pnWlNLHUm6c/s1600/CapturFiles_5.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;315&quot; src=&quot;http://3.bp.blogspot.com/-J9g4ClBoHRc/UpJCI2DgaQI/AAAAAAAAEgA/pnWlNLHUm6c/s320/CapturFiles_5.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://4.bp.blogspot.com/-sWOTRhgPRm8/UpJCMLhD2jI/AAAAAAAAEgs/yMWoaA3Q62I/s1600/CapturFiles_6.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;http://4.bp.blogspot.com/-sWOTRhgPRm8/UpJCMLhD2jI/AAAAAAAAEgs/yMWoaA3Q62I/s320/CapturFiles_6.png&quot; width=&quot;214&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://3.bp.blogspot.com/-iDKjaVQzX1Q/UpJCJxOpJmI/AAAAAAAAEgc/cJS97LvO_Z0/s1600/CapturFiles_7.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;http://3.bp.blogspot.com/-iDKjaVQzX1Q/UpJCJxOpJmI/AAAAAAAAEgc/cJS97LvO_Z0/s320/CapturFiles_7.png&quot; width=&quot;244&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://3.bp.blogspot.com/-J4POXSL2I10/UpJCKIlM43I/AAAAAAAAEgU/WRHJxEpT3EQ/s1600/CapturFiles_8.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;http://3.bp.blogspot.com/-J4POXSL2I10/UpJCKIlM43I/AAAAAAAAEgU/WRHJxEpT3EQ/s320/CapturFiles_8.png&quot; width=&quot;144&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://4.bp.blogspot.com/-Ui8v8qoo8sk/UpJCLAg17II/AAAAAAAAEgk/7FsOKMLg87o/s1600/CapturFiles_9.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;http://4.bp.blogspot.com/-Ui8v8qoo8sk/UpJCLAg17II/AAAAAAAAEgk/7FsOKMLg87o/s320/CapturFiles_9.png&quot; width=&quot;227&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://3.bp.blogspot.com/-y2z6NGwEAx0/UpJBrSPIUwI/AAAAAAAAEbI/KKeWeN7mJxo/s1600/CapturFiles_10.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;234&quot; src=&quot;http://3.bp.blogspot.com/-y2z6NGwEAx0/UpJBrSPIUwI/AAAAAAAAEbI/KKeWeN7mJxo/s320/CapturFiles_10.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://1.bp.blogspot.com/-I2ScLJZBGKg/UpJBr3IA3WI/AAAAAAAAEbM/qtkvUDoapr4/s1600/CapturFiles_11.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;270&quot; src=&quot;http://1.bp.blogspot.com/-I2ScLJZBGKg/UpJBr3IA3WI/AAAAAAAAEbM/qtkvUDoapr4/s320/CapturFiles_11.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://1.bp.blogspot.com/-UXMgJn-PG1M/UpJBu7rbFKI/AAAAAAAAEb4/M5Qi5yzQYo0/s1600/CapturFiles_12.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;http://1.bp.blogspot.com/-UXMgJn-PG1M/UpJBu7rbFKI/AAAAAAAAEb4/M5Qi5yzQYo0/s320/CapturFiles_12.png&quot; width=&quot;247&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://3.bp.blogspot.com/-dCzpQ_DBKGk/UpJBstYWq0I/AAAAAAAAEbY/phH95KV1KsM/s1600/CapturFiles_13.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;http://3.bp.blogspot.com/-dCzpQ_DBKGk/UpJBstYWq0I/AAAAAAAAEbY/phH95KV1KsM/s320/CapturFiles_13.png&quot; width=&quot;253&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://4.bp.blogspot.com/-w29ZLMQQIb4/UpJBt0VgF-I/AAAAAAAAEbg/dQCcaVWzAqw/s1600/CapturFiles_14.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;http://4.bp.blogspot.com/-w29ZLMQQIb4/UpJBt0VgF-I/AAAAAAAAEbg/dQCcaVWzAqw/s320/CapturFiles_14.png&quot; width=&quot;246&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://1.bp.blogspot.com/-3lfxul4BHSc/UpJBx3rWVaI/AAAAAAAAEcI/Pesf4G3lbkE/s1600/CapturFiles_15.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;http://1.bp.blogspot.com/-3lfxul4BHSc/UpJBx3rWVaI/AAAAAAAAEcI/Pesf4G3lbkE/s320/CapturFiles_15.png&quot; width=&quot;246&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://2.bp.blogspot.com/-NTcU5r87SoY/UpJBvgeW_2I/AAAAAAAAEbw/prBwlAx01Vk/s1600/CapturFiles_16.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;http://2.bp.blogspot.com/-NTcU5r87SoY/UpJBvgeW_2I/AAAAAAAAEbw/prBwlAx01Vk/s320/CapturFiles_16.png&quot; width=&quot;227&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://1.bp.blogspot.com/-mW59Wuj3NOk/UpJBz6SkUiI/AAAAAAAAEcY/4tVi3U4SvIc/s1600/CapturFiles_17.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;http://1.bp.blogspot.com/-mW59Wuj3NOk/UpJBz6SkUiI/AAAAAAAAEcY/4tVi3U4SvIc/s320/CapturFiles_17.png&quot; width=&quot;227&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://1.bp.blogspot.com/-wm6fPeC1R7o/UpJBw-lVn4I/AAAAAAAAEcE/XtCRdcP1Pdg/s1600/CapturFiles_18.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;http://1.bp.blogspot.com/-wm6fPeC1R7o/UpJBw-lVn4I/AAAAAAAAEcE/XtCRdcP1Pdg/s320/CapturFiles_18.png&quot; width=&quot;265&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://1.bp.blogspot.com/-sa24mIryF90/UpJB1PlKAAI/AAAAAAAAEco/7n_Ba4lvAik/s1600/CapturFiles_19.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;http://1.bp.blogspot.com/-sa24mIryF90/UpJB1PlKAAI/AAAAAAAAEco/7n_Ba4lvAik/s320/CapturFiles_19.png&quot; width=&quot;227&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://1.bp.blogspot.com/-EgUpsmg9yw4/UpJB0e-9-JI/AAAAAAAAEcg/jqjBMobIHNM/s1600/CapturFiles_20.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;http://1.bp.blogspot.com/-EgUpsmg9yw4/UpJB0e-9-JI/AAAAAAAAEcg/jqjBMobIHNM/s320/CapturFiles_20.png&quot; width=&quot;252&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://2.bp.blogspot.com/-0UhcTk_b-sg/UpJB36kITRI/AAAAAAAAEdQ/0IDCJM-X5Y0/s1600/CapturFiles_21.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;http://2.bp.blogspot.com/-0UhcTk_b-sg/UpJB36kITRI/AAAAAAAAEdQ/0IDCJM-X5Y0/s320/CapturFiles_21.png&quot; width=&quot;198&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://4.bp.blogspot.com/-k9bZ3W6b-qY/UpJB1h-oj4I/AAAAAAAAEcw/JJkZRY7PO8A/s1600/CapturFiles_22.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;http://4.bp.blogspot.com/-k9bZ3W6b-qY/UpJB1h-oj4I/AAAAAAAAEcw/JJkZRY7PO8A/s320/CapturFiles_22.png&quot; width=&quot;231&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://4.bp.blogspot.com/-9sst0mjzMTw/UpJB2U_914I/AAAAAAAAEc4/6mIbTnZQHiw/s1600/CapturFiles_23.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;http://4.bp.blogspot.com/-9sst0mjzMTw/UpJB2U_914I/AAAAAAAAEc4/6mIbTnZQHiw/s320/CapturFiles_23.png&quot; width=&quot;271&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://1.bp.blogspot.com/-NGdfy5dqHak/UpJB7-MOu3I/AAAAAAAAEdw/0A6Ghj_QII4/s1600/CapturFiles_24.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;http://1.bp.blogspot.com/-NGdfy5dqHak/UpJB7-MOu3I/AAAAAAAAEdw/0A6Ghj_QII4/s320/CapturFiles_24.png&quot; width=&quot;249&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://4.bp.blogspot.com/-DjzpmHJv07o/UpJB3cc4JLI/AAAAAAAAEdA/jiw-4dN4ZZo/s1600/CapturFiles_25.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;http://4.bp.blogspot.com/-DjzpmHJv07o/UpJB3cc4JLI/AAAAAAAAEdA/jiw-4dN4ZZo/s320/CapturFiles_25.png&quot; width=&quot;262&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://4.bp.blogspot.com/-4S5ZE31opII/UpJB4YboJmI/AAAAAAAAEdM/PLib433XW-o/s1600/CapturFiles_26.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;http://4.bp.blogspot.com/-4S5ZE31opII/UpJB4YboJmI/AAAAAAAAEdM/PLib433XW-o/s320/CapturFiles_26.png&quot; width=&quot;228&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://3.bp.blogspot.com/-UE2LPla0qwo/UpJB5iY5JoI/AAAAAAAAEdU/29gD7orUcT4/s1600/CapturFiles_27.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;http://3.bp.blogspot.com/-UE2LPla0qwo/UpJB5iY5JoI/AAAAAAAAEdU/29gD7orUcT4/s320/CapturFiles_27.png&quot; width=&quot;170&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://3.bp.blogspot.com/-uYlLcedMYBs/UpJB58-hpdI/AAAAAAAAEdY/UG5zC6bXRGQ/s1600/CapturFiles_28.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;http://3.bp.blogspot.com/-uYlLcedMYBs/UpJB58-hpdI/AAAAAAAAEdY/UG5zC6bXRGQ/s320/CapturFiles_28.png&quot; width=&quot;228&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://4.bp.blogspot.com/-CYry67-r4xk/UpJB9QSR2fI/AAAAAAAAEeE/QQPERAIVOvs/s1600/CapturFiles_29.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;235&quot; src=&quot;http://4.bp.blogspot.com/-CYry67-r4xk/UpJB9QSR2fI/AAAAAAAAEeE/QQPERAIVOvs/s320/CapturFiles_29.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://4.bp.blogspot.com/-owtwsieAD18/UpJB8pk4xYI/AAAAAAAAEeA/2GAha1e9oE8/s1600/CapturFiles_30.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;http://4.bp.blogspot.com/-owtwsieAD18/UpJB8pk4xYI/AAAAAAAAEeA/2GAha1e9oE8/s320/CapturFiles_30.png&quot; width=&quot;264&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://2.bp.blogspot.com/-6CQye4s9MMM/UpJB8yTxjdI/AAAAAAAAEd8/MWAIYMvc7i4/s1600/CapturFiles_31.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;231&quot; src=&quot;http://2.bp.blogspot.com/-6CQye4s9MMM/UpJB8yTxjdI/AAAAAAAAEd8/MWAIYMvc7i4/s320/CapturFiles_31.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://3.bp.blogspot.com/-e0aOLuNvo2E/UpJCASMD8II/AAAAAAAAEe8/c8kFKURk76Y/s1600/CapturFiles_32.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;http://3.bp.blogspot.com/-e0aOLuNvo2E/UpJCASMD8II/AAAAAAAAEe8/c8kFKURk76Y/s320/CapturFiles_32.png&quot; width=&quot;244&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://2.bp.blogspot.com/-7dmmrV5lmIA/UpJB-D73ykI/AAAAAAAAEeU/zMzro1rAL1E/s1600/CapturFiles_33.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;http://2.bp.blogspot.com/-7dmmrV5lmIA/UpJB-D73ykI/AAAAAAAAEeU/zMzro1rAL1E/s320/CapturFiles_33.png&quot; width=&quot;247&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://2.bp.blogspot.com/-tgxrBawaNho/UpJB-uZqUkI/AAAAAAAAEec/bM-UsC8iYlU/s1600/CapturFiles_34.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;http://2.bp.blogspot.com/-tgxrBawaNho/UpJB-uZqUkI/AAAAAAAAEec/bM-UsC8iYlU/s320/CapturFiles_34.png&quot; width=&quot;247&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://1.bp.blogspot.com/-gIpGF1uYON4/UpJB_dzb6nI/AAAAAAAAEeg/_1tAwwcViJQ/s1600/CapturFiles_35.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;http://1.bp.blogspot.com/-gIpGF1uYON4/UpJB_dzb6nI/AAAAAAAAEeg/_1tAwwcViJQ/s320/CapturFiles_35.png&quot; width=&quot;243&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://4.bp.blogspot.com/-EYuywzrU8Bs/UpJB_6Q07sI/AAAAAAAAEeo/2B-4fUazYL0/s1600/CapturFiles_36.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;http://4.bp.blogspot.com/-EYuywzrU8Bs/UpJB_6Q07sI/AAAAAAAAEeo/2B-4fUazYL0/s320/CapturFiles_36.png&quot; width=&quot;259&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://3.bp.blogspot.com/-vkvrvmcvXZQ/UpJCDBFuy4I/AAAAAAAAEfI/m1Sw1OLvuU8/s1600/CapturFiles_37.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;http://3.bp.blogspot.com/-vkvrvmcvXZQ/UpJCDBFuy4I/AAAAAAAAEfI/m1Sw1OLvuU8/s320/CapturFiles_37.png&quot; width=&quot;173&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://3.bp.blogspot.com/-pLn_PZ6avEk/UpJCBOs3qxI/AAAAAAAAEe0/cppLCXsO6uU/s1600/CapturFiles_38.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;http://3.bp.blogspot.com/-pLn_PZ6avEk/UpJCBOs3qxI/AAAAAAAAEe0/cppLCXsO6uU/s320/CapturFiles_38.png&quot; width=&quot;305&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://1.bp.blogspot.com/-CLdyPC7kGuw/UpJCFKu8YEI/AAAAAAAAEfc/AkBG5sXNXlo/s1600/CapturFiles_39.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;http://1.bp.blogspot.com/-CLdyPC7kGuw/UpJCFKu8YEI/AAAAAAAAEfc/AkBG5sXNXlo/s320/CapturFiles_39.png&quot; width=&quot;225&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://4.bp.blogspot.com/-KaMatce2P4U/UpJCEDvegVI/AAAAAAAAEfU/xoLF321mdnk/s1600/CapturFiles_40.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;http://4.bp.blogspot.com/-KaMatce2P4U/UpJCEDvegVI/AAAAAAAAEfU/xoLF321mdnk/s320/CapturFiles_40.png&quot; width=&quot;244&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://3.bp.blogspot.com/-CRixvh921AE/UpJCHkztaNI/AAAAAAAAEf8/jL18ZRtBhWw/s1600/CapturFiles_41.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;http://3.bp.blogspot.com/-CRixvh921AE/UpJCHkztaNI/AAAAAAAAEf8/jL18ZRtBhWw/s320/CapturFiles_41.png&quot; width=&quot;245&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://2.bp.blogspot.com/-0UtB5DxCBRw/UpJCFjLX26I/AAAAAAAAEfk/ytKRCAjcuf4/s1600/CapturFiles_42.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;http://2.bp.blogspot.com/-0UtB5DxCBRw/UpJCFjLX26I/AAAAAAAAEfk/ytKRCAjcuf4/s320/CapturFiles_42.png&quot; width=&quot;239&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://3.bp.blogspot.com/-dfRZa8qJ1fE/UpJCJFAyYNI/AAAAAAAAEgE/2hupdPheT8U/s1600/CapturFiles_43.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;http://3.bp.blogspot.com/-dfRZa8qJ1fE/UpJCJFAyYNI/AAAAAAAAEgE/2hupdPheT8U/s320/CapturFiles_43.png&quot; width=&quot;263&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://1.bp.blogspot.com/-WWdR4w60DTs/UpJCG0S5h_I/AAAAAAAAEfs/LehZrAZpL1M/s1600/CapturFiles_44.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;http://1.bp.blogspot.com/-WWdR4w60DTs/UpJCG0S5h_I/AAAAAAAAEfs/LehZrAZpL1M/s320/CapturFiles_44.png&quot; width=&quot;227&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://4.bp.blogspot.com/-v2txgK5rM-4/UpJCHyNSP4I/AAAAAAAAEf4/VkNfA3cOz_w/s1600/CapturFiles_45.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;http://4.bp.blogspot.com/-v2txgK5rM-4/UpJCHyNSP4I/AAAAAAAAEf4/VkNfA3cOz_w/s320/CapturFiles_45.png&quot; width=&quot;231&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://1.bp.blogspot.com/-eEXfy_201QQ/UpJCMN552ZI/AAAAAAAAEg8/a1rEDBHp6j8/s1600/Untitled.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;212&quot; src=&quot;http://1.bp.blogspot.com/-eEXfy_201QQ/UpJCMN552ZI/AAAAAAAAEg8/a1rEDBHp6j8/s320/Untitled.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://vstats.blogspot.com/feeds/3809513715812178143/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=33859018&amp;postID=3809513715812178143&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/33859018/posts/default/3809513715812178143'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/33859018/posts/default/3809513715812178143'/><link rel='alternate' type='text/html' href='http://vstats.blogspot.com/2013/11/infographics.html' title='Infographics'/><author><name>Bob Montgomerie</name><uri>http://www.blogger.com/profile/13895677746615571939</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://3.bp.blogspot.com/-NjtE7l6V-vg/UpJCMxVZTpI/AAAAAAAAEg0/NHV95xCKx_M/s72-c/ashley_chisholm_29249_assignsubmission_file_stefan10006670pa__2_.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-33859018.post-804280901461261505</id><published>2013-11-23T15:34:00.000-05:00</published><updated>2013-11-23T16:54:18.911-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Assignments"/><category scheme="http://www.blogger.com/atom/ns#" term="JMP"/><category scheme="http://www.blogger.com/atom/ns#" term="projects"/><category scheme="http://www.blogger.com/atom/ns#" term="R"/><title type='text'>Prediction and prediction limits</title><content type='html'>This information will give you a head start on Assignment 11 and part of Project B, for those of you trying to get finished early.&lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://3.bp.blogspot.com/-7yBA71btHsU/UpELQhBj3gI/AAAAAAAAEaQ/TVJAipnSzhM/s1600/CapturFiles-201311327_1511.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;http://3.bp.blogspot.com/-7yBA71btHsU/UpELQhBj3gI/AAAAAAAAEaQ/TVJAipnSzhM/s320/CapturFiles-201311327_1511.png&quot; width=&quot;226&quot; /&gt;&lt;/a&gt;&lt;/div&gt;When you run a linear regression analysis you get a linear equation in the form Y = a + bX, where Y is the response, X is the predictor, a is the intercept (Y when X = 0) and b is the slope of the line. Here (to the right) is the result of a regression analysis I ran (in JMP) on some data on paternity in chinook salmon, collected by my collaborator and postdoc Patrice Rosengrave. In this study y = proportion of clutch sired by a male when he is competing with another male, and x is the proportion of the clutch he sires when there is no competitor. For convenience I will ref to these mostly as x and y here.&lt;br /&gt;&lt;br /&gt;The equation for the linear regression line (in red) is y = 0.32 + 0.51x, and both the intercept and the slope are significantly different from zero, as you can see, although we are usually only interested ion testing the slope. In this sample the median of x = 0.45 and when x = 0.45, the regression equation predicts that y = 0.32 + 0.51 * 0.45 = 0.55. There is nothing special about the median here and you can obviously calculate the predicted value of Y for any X, for example when X= 0, the Y = 0.32 (the intercept) etc.&lt;br /&gt;&lt;br /&gt;&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;For any predicted value of Y there two two different prediction limits (confidence limits of the prediction). These can be calculated using the formulas in the text book or using R, but are difficult to calculate in JMP. If we are using JMP we will just estimate the prediction limits by eye.&lt;br /&gt;&lt;br /&gt;One prediction limit is referred to as the prediction limits for the mean of Y and we can calculated 95%CL or 99%CL or whatever. So the 95%CL for the predicted mean of Y is the plausible range of values for the mean of the Y-values at a given X.&lt;br /&gt;&lt;br /&gt;The other prediction limit is referred to as the prediction limits for a predicted value of Y. &amp;nbsp;So the 95%CL for the predicted value of Y is the plausible range of values for the actual Y value predicted at a given X. This prediction limit is always larger than the prediction limits for the mean of Y.&lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://4.bp.blogspot.com/-HUDZdq8u7-c/UpEP60rKhfI/AAAAAAAAEaY/BFXfcvdngMs/s1600/CapturFiles-201311327_1511_1.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://4.bp.blogspot.com/-HUDZdq8u7-c/UpEP60rKhfI/AAAAAAAAEaY/BFXfcvdngMs/s1600/CapturFiles-201311327_1511_1.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;To estimate these prediction limits in JMP, simply click on the red triangle beside &lt;b&gt;Linear Fit &lt;/b&gt;and choose &lt;b&gt;Confid Curves Fit&lt;/b&gt; (for the prediction limits of mean Y) and &lt;b&gt;Confid Curves Indiv&lt;/b&gt; (for the prediction limits of the value of Y predicted by the regression line). I do not care which one you use, but be careful to be absolutely clear. Here they both are on the graph to the right, with the curved lines being the prediction limits of mean Y. By using the cross hair tool and zooming in on the graph I can make a pretty good estimate of the lower and upper prediction limits, as shown below for determining the lower limit (–0.0211) at X = 0.4475.&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://1.bp.blogspot.com/-m7EgEc8OEt4/UpERDlnw-pI/AAAAAAAAEak/ZanFxg16bpU/s1600/crosshairs.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://1.bp.blogspot.com/-m7EgEc8OEt4/UpERDlnw-pI/AAAAAAAAEak/ZanFxg16bpU/s1600/crosshairs.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The whole thing is much easier in R (where input is green and output is blue, and the dataset is first loaded into R then made equal to &lt;b&gt;dat&lt;/b&gt; just to simplify the coding) :&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;&amp;gt; dat=SalmonPaternity&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;&amp;gt; mod1=lm(y~x, data = dat) #create the regression model&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;&amp;gt; summary(mod1) #display the stats for the regression&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: #cfe2f3; font-family: Trebuchet MS, sans-serif; font-size: x-small;&quot;&gt;Call:&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: #cfe2f3; font-family: Trebuchet MS, sans-serif; font-size: x-small;&quot;&gt;lm(formula = y ~ x, data = dat)&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: #cfe2f3; font-family: Trebuchet MS, sans-serif; font-size: x-small;&quot;&gt;Residuals:&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: #cfe2f3; font-family: Trebuchet MS, sans-serif; font-size: x-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Min &amp;nbsp; &amp;nbsp; &amp;nbsp; 1Q &amp;nbsp; Median &amp;nbsp; &amp;nbsp; &amp;nbsp; 3Q &amp;nbsp; &amp;nbsp; &amp;nbsp;Max&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: #cfe2f3; font-family: Trebuchet MS, sans-serif; font-size: x-small;&quot;&gt;-0.52650 -0.23547 &amp;nbsp;0.02081 &amp;nbsp;0.18170 &amp;nbsp;0.68347&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: #cfe2f3; font-family: Trebuchet MS, sans-serif; font-size: x-small;&quot;&gt;Coefficients:&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: #cfe2f3; font-family: Trebuchet MS, sans-serif; font-size: x-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Estimate Std. Error t value Pr(&amp;gt;|t|) &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: #cfe2f3; font-family: Trebuchet MS, sans-serif; font-size: x-small;&quot;&gt;(Intercept) &amp;nbsp;0.31696 &amp;nbsp; &amp;nbsp;0.07917 &amp;nbsp; 4.003 0.000231 ***&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: #cfe2f3; font-family: Trebuchet MS, sans-serif; font-size: x-small;&quot;&gt;x &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0.51338 &amp;nbsp; &amp;nbsp;0.14949 &amp;nbsp; 3.434 0.001287 **&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: #cfe2f3; font-family: Trebuchet MS, sans-serif; font-size: x-small;&quot;&gt;---&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: #cfe2f3; font-family: Trebuchet MS, sans-serif; font-size: x-small;&quot;&gt;Signif. codes: &amp;nbsp;0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: #cfe2f3; font-family: Trebuchet MS, sans-serif; font-size: x-small;&quot;&gt;Residual standard error: 0.2857 on 45 degrees of freedom&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: #cfe2f3; font-family: Trebuchet MS, sans-serif; font-size: x-small;&quot;&gt;Multiple R-squared: &amp;nbsp;0.2077, &amp;nbsp;Adjusted R-squared: &amp;nbsp;0.1901&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: #cfe2f3; font-family: Trebuchet MS, sans-serif; font-size: x-small;&quot;&gt;F-statistic: 11.79 on 1 and 45 DF, &amp;nbsp;p-value: 0.001287&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;&amp;gt; plot(y~x, data = dat) #plot the scatterplot&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;&amp;gt; abline(mod1) #add the regression line&lt;/span&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://4.bp.blogspot.com/-eUZ5A5wkw9c/UpEiWfsjvzI/AAAAAAAAEa0/ZNn5NYAB8SE/s1600/salmonplot.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;237&quot; src=&quot;http://4.bp.blogspot.com/-eUZ5A5wkw9c/UpEiWfsjvzI/AAAAAAAAEa0/ZNn5NYAB8SE/s320/salmonplot.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;&amp;gt; predy=data.frame(x=0.45)&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;&amp;gt; predict(mod1, predy, interval=&quot;predict&quot;)&lt;/span&gt;&amp;nbsp;#this gives the prediction limits for a predicted value of Y for the given X&lt;br /&gt;&lt;span style=&quot;background-color: #cfe2f3; font-family: Trebuchet MS, sans-serif; font-size: x-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; fit &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; lwr &amp;nbsp; &amp;nbsp; &amp;nbsp;upr&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: #cfe2f3; font-family: Trebuchet MS, sans-serif; font-size: x-small;&quot;&gt;1 0.5479805 -0.03348593 1.129447&lt;/span&gt;&lt;br /&gt;&amp;gt;&lt;br /&gt;&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;&amp;gt; predict(mod1, predy, interval=&quot;confidence&quot;)&amp;nbsp;&lt;/span&gt;#this gives the prediction limits for a predicted mean of Y values for the given X&lt;br /&gt;&lt;span style=&quot;background-color: #cfe2f3; font-family: Trebuchet MS, sans-serif; font-size: x-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; fit &amp;nbsp; &amp;nbsp; &amp;nbsp;lwr &amp;nbsp; &amp;nbsp; &amp;nbsp; upr&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: #cfe2f3; font-family: Trebuchet MS, sans-serif; font-size: x-small;&quot;&gt;1 0.5479805 0.464053 0.6319081&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://vstats.blogspot.com/feeds/804280901461261505/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=33859018&amp;postID=804280901461261505&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/33859018/posts/default/804280901461261505'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/33859018/posts/default/804280901461261505'/><link rel='alternate' type='text/html' href='http://vstats.blogspot.com/2013/11/prediction-and-prediction-limits.html' title='Prediction and prediction limits'/><author><name>Bob Montgomerie</name><uri>http://www.blogger.com/profile/13895677746615571939</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://3.bp.blogspot.com/-7yBA71btHsU/UpELQhBj3gI/AAAAAAAAEaQ/TVJAipnSzhM/s72-c/CapturFiles-201311327_1511.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-33859018.post-2716689486257620559</id><published>2013-11-23T11:08:00.001-05:00</published><updated>2013-11-23T11:08:28.967-05:00</updated><title type='text'>Week 12: Regression</title><content type='html'>&lt;div class=&quot;p1&quot; style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;&lt;span style=&quot;color: #444444; font-size: x-small;&quot;&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;Regression and correlation are married, or at least thinking about it. Correlation analysis is out on its own, without regression, but regression almost never goes out with correlation. Tortured&amp;nbsp;analogies aside, you will see how these two forms of analysis provide different but related information about the relations between two variables&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;p2&quot; style=&quot;background-color: white; color: #444444; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;&quot;&gt;&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;p1&quot; style=&quot;background-color: white; color: #444444; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;&quot;&gt;&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;b&gt;QUIZ&lt;/b&gt;: on-line, available at 3 pm on Monday and due (that means submitted by) 5 pm Tuesday. All of the questions are multiple choice and will be marked on-line. This week the quiz will be based mainly on chapter 16 in the textbook (on Correlation), but I reserve the right to ask questions about anything we have covered to date. I will try to remember to include a final comment box on the quiz this week.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;p3&quot; style=&quot;background-color: white; color: #444444; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;&quot;&gt;&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;p1&quot; style=&quot;background-color: white; color: #444444; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;&quot;&gt;&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;b&gt;HOMEWORK&lt;/b&gt;: &amp;nbsp;This week&#39;s focus for study, practice, and assignment is Chapter 17 in the textbook on Regression.&amp;nbsp;You should also read and think about the INTERLEAFs immediately before and after this chapter on Publication Bias, and Using Species as Data Points. This is the last chapter that we will cover in this course but you might find it interesting and informative to read the final few chapters as well, especially if you are thinking of going on in biology.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;p2&quot; style=&quot;background-color: white; color: #444444; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;p1&quot; style=&quot;background-color: white; color: #444444; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;&quot;&gt;&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;b&gt;PRACTICE EXERCISES&lt;/b&gt;: chapter 17 problems 3, 9, and 11 (below the fold).&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;p1&quot; style=&quot;background-color: white; color: #444444; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;&quot;&gt;&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;p1&quot; style=&quot;background-color: white; color: #444444; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;&quot;&gt;&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;b&gt;ASSIGNMENT&lt;/b&gt;:&amp;nbsp;&lt;span style=&quot;color: red; text-align: center;&quot;&gt;&lt;b&gt;DUE before 11:30 on Friday 29 November, uploaded as PDF to Moodle and with the filename in the usual format&lt;/b&gt;&lt;/span&gt;&lt;b style=&quot;color: red; text-align: center;&quot;&gt;.&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;p1&quot; style=&quot;background-color: white; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;&quot;&gt;&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;b style=&quot;text-align: center;&quot;&gt;&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;p1&quot; style=&quot;background-color: white; color: #444444; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: center;&quot;&gt;&lt;b&gt;PRACTICE EXERCISES&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://2.bp.blogspot.com/-wlAuXbuTvgM/UpDStzsKPEI/AAAAAAAAEZU/IG8qFVA-Kyo/s1600/ch17q3a.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;135&quot; src=&quot;http://2.bp.blogspot.com/-wlAuXbuTvgM/UpDStzsKPEI/AAAAAAAAEZU/IG8qFVA-Kyo/s320/ch17q3a.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://1.bp.blogspot.com/-xIwjSuedKEM/UpDSxen2P_I/AAAAAAAAEZ0/N9_tTgbokpQ/s1600/ch17q3b.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;http://1.bp.blogspot.com/-xIwjSuedKEM/UpDSxen2P_I/AAAAAAAAEZ0/N9_tTgbokpQ/s320/ch17q3b.png&quot; width=&quot;169&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://3.bp.blogspot.com/-gpHQr4bSv5U/UpDSyFLFNkI/AAAAAAAAEZ4/jgPT-HFlV7o/s1600/ch17q9a.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;http://3.bp.blogspot.com/-gpHQr4bSv5U/UpDSyFLFNkI/AAAAAAAAEZ4/jgPT-HFlV7o/s320/ch17q9a.png&quot; width=&quot;129&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://2.bp.blogspot.com/-mWevJOtxjK0/UpDSvahemlI/AAAAAAAAEZs/FqXAtTTR6GY/s1600/ch17q9b.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;164&quot; src=&quot;http://2.bp.blogspot.com/-mWevJOtxjK0/UpDSvahemlI/AAAAAAAAEZs/FqXAtTTR6GY/s320/ch17q9b.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://1.bp.blogspot.com/-knxTGExcEas/UpDSuO2eKOI/AAAAAAAAEZY/B9Rw3PyAlxU/s1600/ch17q11a.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;http://1.bp.blogspot.com/-knxTGExcEas/UpDSuO2eKOI/AAAAAAAAEZY/B9Rw3PyAlxU/s320/ch17q11a.png&quot; width=&quot;248&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://2.bp.blogspot.com/-ONjHTqAbxSk/UpDSt8DZaII/AAAAAAAAEZc/8M5M-vuOVDY/s1600/ch17q11b.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;http://2.bp.blogspot.com/-ONjHTqAbxSk/UpDSt8DZaII/AAAAAAAAEZc/8M5M-vuOVDY/s320/ch17q11b.png&quot; width=&quot;303&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;p1&quot; style=&quot;background-color: white; color: #444444; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: center;&quot;&gt;&lt;b&gt;ASSIGNMENT&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;p1&quot; style=&quot;background-color: white; color: #444444; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: left;&quot;&gt;I am well aware that you all have a lot of work to do at the end of term, so I have tried to keep this assignment as straightforward as possible. I do, however, want to give you experience with, and information on, the various regression analyses that I asked you for on Project B. Thus there are many questions here but do try to answer them as briefly and succinctly as you can. Once you have done this assignment, that part of Project B will be easy (well, easier).&lt;/div&gt;&lt;div class=&quot;p1&quot; style=&quot;background-color: white; color: #444444; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;p1&quot; style=&quot;background-color: white; color: #444444; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: left;&quot;&gt;Using the Sleep dataset that we have been using for several assignments, analyse the relation between Non-dreaming and Dreaming portions of the sleep cycle, and answer the following questions, assuming that Dreaming is the response:&lt;/div&gt;&lt;div class=&quot;p1&quot; style=&quot;background-color: white; color: #444444; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;p1&quot; style=&quot;background-color: white; color: #444444; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: left;&quot;&gt;a. what is the equation that predicts the time spent in the Dreaming part of the sleep cycle from the time spent in the Non-dreaming part? What is the correlation between these two variables?&lt;/div&gt;&lt;div class=&quot;p1&quot; style=&quot;background-color: white; color: #444444; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;p1&quot; style=&quot;background-color: white; color: #444444; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: left;&quot;&gt;b. what is the median time spent Non-dreaming? For that median time, what is the predicted mean amount of time spent Dreaming, and what are the 95% confidence limits on that prediction [note that this calculation is easy in R, and nearly impossible in JMP; if you are using JMP plot the prediction interval on the graph and just estimate the confidence limits at the median value of X]&lt;/div&gt;&lt;div class=&quot;p1&quot; style=&quot;background-color: white; color: #444444; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;p1&quot; style=&quot;background-color: white; color: #444444; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: left;&quot;&gt;c. using the 95%CL of the slope and intercept of this relation, estimate whether the slope and intercept of the regression line are significantly different from zero? Interpret those results biologically (keep it simple).&lt;/div&gt;&lt;div class=&quot;p1&quot; style=&quot;background-color: white; color: #444444; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;p1&quot; style=&quot;background-color: white; color: #444444; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: left;&quot;&gt;d. is the relation between Dreaming and Non-dreaming time statistically significant? [report the test statistics, p-value etc.&lt;/div&gt;&lt;div class=&quot;p1&quot; style=&quot;background-color: white; color: #444444; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;p1&quot; style=&quot;background-color: white; color: #444444; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: left;&quot;&gt;e. plot the (Dreaming) residuals of this regression against the Non-dreaming time, as well as the normal quantile plot for those residuals, and assess whether you think the assumptions of this regression analysis have been met, and why you think that.&lt;/div&gt;&lt;div class=&quot;p1&quot; style=&quot;background-color: white; color: #444444; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;p1&quot; style=&quot;background-color: white; color: #444444; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vstats.blogspot.com/feeds/2716689486257620559/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=33859018&amp;postID=2716689486257620559&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/33859018/posts/default/2716689486257620559'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/33859018/posts/default/2716689486257620559'/><link rel='alternate' type='text/html' href='http://vstats.blogspot.com/2013/11/week-12-regression.html' title='Week 12: Regression'/><author><name>Bob Montgomerie</name><uri>http://www.blogger.com/profile/13895677746615571939</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://2.bp.blogspot.com/-wlAuXbuTvgM/UpDStzsKPEI/AAAAAAAAEZU/IG8qFVA-Kyo/s72-c/ch17q3a.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-33859018.post-1421359202039122215</id><published>2013-11-20T21:08:00.003-05:00</published><updated>2013-11-21T19:21:58.487-05:00</updated><title type='text'>Correlation analysis</title><content type='html'>Here are some basic procedures for correlation analysis in JMP and R, using the Candy Bar dataset I showed in class.&lt;br /&gt;&lt;br /&gt;&lt;h3&gt;USING JMP&lt;/h3&gt;Step 1. Load up the dataset from Help&amp;gt;Sample Data &amp;gt;Food and Nutrition&lt;br /&gt;&lt;br /&gt;Step 2. Choose &lt;b&gt;Analyze&amp;gt;Multivariate Methods&amp;gt;Multivariate&lt;/b&gt;, and put all the variables you want to analyze into &lt;b&gt;Y, Columns &lt;/b&gt;and click on&lt;b&gt; OK&lt;/b&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://2.bp.blogspot.com/-OGqq6FFYZ08/Uo1TWh0adlI/AAAAAAAAEXg/XdqfYEJgB7E/s1600/CapturFiles-201311324_1911.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;178&quot; src=&quot;http://2.bp.blogspot.com/-OGqq6FFYZ08/Uo1TWh0adlI/AAAAAAAAEXg/XdqfYEJgB7E/s320/CapturFiles-201311324_1911.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;Step 3. If not visible, choose from under the red triangle: &lt;b&gt;Correlations Multivariate&lt;/b&gt;, &lt;b&gt;Pairwise Correlations&lt;/b&gt;, &lt;b&gt;Nonparametric Correlations&amp;gt;Spearman&#39;s&lt;/b&gt;, and &lt;b&gt;Scatterplot Matrix:&amp;nbsp;&lt;/b&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://3.bp.blogspot.com/-gLUYohzH3t8/Uo1UYewDVII/AAAAAAAAEXo/NKVRAVwMnB4/s1600/step3.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;295&quot; src=&quot;http://3.bp.blogspot.com/-gLUYohzH3t8/Uo1UYewDVII/AAAAAAAAEXo/NKVRAVwMnB4/s320/step3.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;and get&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://4.bp.blogspot.com/-quVqNbFDw8I/Uo1VpG9zYII/AAAAAAAAEX4/NW7fRiMGzT8/s1600/step3a.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;297&quot; src=&quot;http://4.bp.blogspot.com/-quVqNbFDw8I/Uo1VpG9zYII/AAAAAAAAEX4/NW7fRiMGzT8/s400/step3a.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;IMPORTANT NOTE&lt;/span&gt;&lt;/b&gt;: if there are missing data, the correlation coefficients in the default correlation matrix (&lt;b&gt;Correlations&lt;/b&gt;, above) will not match those under &lt;b&gt;Pairwise Correlations&lt;/b&gt;, as shown below in the &lt;span style=&quot;color: #6aa84f;&quot;&gt;green&lt;/span&gt; boxes where the correlations between Cholesterol and Saturated Fat are different. That&#39;s because JMP uses a special algorithm to calculate correlations for this default correlation matrix when there are missing data, as indicated by the statement outlined in the&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;RED&lt;/span&gt;&amp;nbsp;rectangle below. DO NOT USE THIS METHOD as it is not in general use, and is unnecessarily confusing. &amp;nbsp;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://2.bp.blogspot.com/-5yQgVgZXRzY/Uo1gWAXevUI/AAAAAAAAEYU/qBbTAYPgCCk/s1600/step3b.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;261&quot; src=&quot;http://2.bp.blogspot.com/-5yQgVgZXRzY/Uo1gWAXevUI/AAAAAAAAEYU/qBbTAYPgCCk/s320/step3b.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;Instead, change the default method for the correlation matrix by choosing JMP&amp;gt;Preferences&amp;gt;Platform&amp;gt;Multivariate&amp;gt;Estimation Method&amp;gt;Pairwise as shown below, then close the preferences and rerun the correlation analysis as above.&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://4.bp.blogspot.com/-kI76PKwSQl8/Uo1hPmjNkiI/AAAAAAAAEYc/cCq8mCjCipE/s1600/step3c.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;211&quot; src=&quot;http://4.bp.blogspot.com/-kI76PKwSQl8/Uo1hPmjNkiI/AAAAAAAAEYc/cCq8mCjCipE/s400/step3c.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;The resulting correlation matrix (&lt;b&gt;Correlations&lt;/b&gt;) will now have the same values as under &lt;b&gt;Pairwise Correlations&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://3.bp.blogspot.com/-YGA3kanGxLg/Uo1h7mzl_9I/AAAAAAAAEYk/d0EBLp8VZNs/s1600/CapturFiles-201311324_2011_1.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;259&quot; src=&quot;http://3.bp.blogspot.com/-YGA3kanGxLg/Uo1h7mzl_9I/AAAAAAAAEYk/d0EBLp8VZNs/s320/CapturFiles-201311324_2011_1.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;span id=&quot;goog_287384203&quot;&gt;&lt;/span&gt;&lt;span id=&quot;goog_287384204&quot;&gt;&lt;/span&gt;Note that in the correlation matrix above, the positive correlations are shown in blue, negative in red, and significant correlations in bold font. The matrix itself can be turned into a data table in JMP by control-(right-) clicking on the matrix and choosing &lt;b&gt;Make into Data Table&lt;/b&gt;, then that can be &lt;b&gt;Export&lt;/b&gt;ed as a text file and imported into your word processor.&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;h3&gt;&lt;b&gt;USING R&lt;/b&gt;&lt;/h3&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;Below I have put your input in green and R&#39;s output in blue&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;Step 1. Load the dataset into an object named &lt;b&gt;dat&lt;/b&gt; (or whatever name you like)&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;dat=read.csv(file.choose())&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;Step 2. get the names of the variables&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;names (dat)&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;background-color: #cfe2f3;&quot;&gt;&amp;nbsp;[1] &quot;Brand&quot; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;Name&quot; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&quot;Serving.pkg&quot; &amp;nbsp; &amp;nbsp; &quot;Oz.pkg&quot; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&quot;Calories&quot; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&quot;Total.fat.g&quot; &amp;nbsp; &amp;nbsp; &quot;Saturated.fat.g&quot;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;background-color: #cfe2f3;&quot;&gt;&amp;nbsp;[8] &quot;Cholesterol.g&quot; &amp;nbsp; &quot;Sodium.mg&quot; &amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;Carbohydrate.g&quot; &amp;nbsp;&quot;Dietary.fiber.g&quot; &quot;Sugars.g&quot; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&quot;Protein.g&quot; &amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;Vitamin.A..RDI&quot;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;background-color: #cfe2f3;&quot;&gt;[15] &quot;Vitamin.C..RDI&quot; &amp;nbsp;&quot;Calcium..RDI&quot; &amp;nbsp; &amp;nbsp;&quot;Iron..RDI&quot; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background-color: #b6d7a8;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;Step 3. get the correlation matrix for the parametric correlations&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;with(dat, cor(cbind(Saturated.fat.g, Cholesterol.g, Sodium.mg, Carbohydrate.g, Dietary.fiber.g, Sugars.g, Protein.g), use=&quot;complete.obs&quot;, method=&quot;pearson&quot;))&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;background-color: #cfe2f3;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;font-size: x-small;&quot;&gt;Saturated.fat.g Cholesterol.g &amp;nbsp; Sodium.mg Carbohydrate.g Dietary.fiber.g &amp;nbsp; &amp;nbsp;Sugars.g &amp;nbsp;Protein.g&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;background-color: #cfe2f3; font-size: x-small;&quot;&gt;Saturated.fat.g &amp;nbsp; &amp;nbsp; &amp;nbsp;1.00000000 &amp;nbsp; &amp;nbsp;0.40645869 -0.21226005 &amp;nbsp; &amp;nbsp;-0.02771014 &amp;nbsp; &amp;nbsp; &amp;nbsp;0.45134428 &amp;nbsp;0.12982705 &amp;nbsp;0.3043595&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;background-color: #cfe2f3; font-size: x-small;&quot;&gt;Cholesterol.g &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0.40645869 &amp;nbsp; &amp;nbsp;1.00000000 -0.09194795 &amp;nbsp; &amp;nbsp;-0.23675820 &amp;nbsp; &amp;nbsp; &amp;nbsp;0.02222046 &amp;nbsp;0.01909605 &amp;nbsp;0.1500029&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;background-color: #cfe2f3; font-size: x-small;&quot;&gt;Sodium.mg &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -0.21226005 &amp;nbsp; -0.09194795 &amp;nbsp;1.00000000 &amp;nbsp; &amp;nbsp; 0.05647324 &amp;nbsp; &amp;nbsp; -0.11342131 -0.18108132 &amp;nbsp;0.2098704&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;background-color: #cfe2f3; font-size: x-small;&quot;&gt;Carbohydrate.g &amp;nbsp; &amp;nbsp; &amp;nbsp;-0.02771014 &amp;nbsp; -0.23675820 &amp;nbsp;0.05647324 &amp;nbsp; &amp;nbsp; 1.00000000 &amp;nbsp; &amp;nbsp; -0.01275351 &amp;nbsp;0.82616981 -0.2610758&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;background-color: #cfe2f3; font-size: x-small;&quot;&gt;Dietary.fiber.g &amp;nbsp; &amp;nbsp; &amp;nbsp;0.45134428 &amp;nbsp; &amp;nbsp;0.02222046 -0.11342131 &amp;nbsp; &amp;nbsp;-0.01275351 &amp;nbsp; &amp;nbsp; &amp;nbsp;1.00000000 -0.06920530 &amp;nbsp;0.4397747&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;background-color: #cfe2f3; font-size: x-small;&quot;&gt;Sugars.g &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0.12982705 &amp;nbsp; &amp;nbsp;0.01909605 -0.18108132 &amp;nbsp; &amp;nbsp; 0.82616981 &amp;nbsp; &amp;nbsp; -0.06920530 &amp;nbsp;1.00000000 -0.2951497&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;background-color: #cfe2f3; font-size: x-small;&quot;&gt;Protein.g &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0.30435945 &amp;nbsp; &amp;nbsp;0.15000292 &amp;nbsp;0.20987037 &amp;nbsp; &amp;nbsp;-0.26107578 &amp;nbsp; &amp;nbsp; &amp;nbsp;0.43977471 -0.29514966 &amp;nbsp;1.0000000&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;and for the nonparametric Spearman&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;with(dat, cor(cbind(Saturated.fat.g, Cholesterol.g, Sodium.mg, Carbohydrate.g, Dietary.fiber.g, Sugars.g, Protein.g), use=&quot;na.or.complete&quot;, method=&quot;spearman&quot;))&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&amp;nbsp;&lt;span style=&quot;background-color: #cfe2f3;&quot;&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;font-size: x-small;&quot;&gt;Saturated.fat.g Cholesterol.g &amp;nbsp; Sodium.mg Carbohydrate.g Dietary.fiber.g &amp;nbsp; &amp;nbsp;Sugars.g &amp;nbsp;Protein.g&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;background-color: #cfe2f3; font-size: x-small;&quot;&gt;Saturated.fat.g &amp;nbsp; &amp;nbsp; 1.000000000 &amp;nbsp; &amp;nbsp;0.44764285 -0.20551659 &amp;nbsp; &amp;nbsp;0.003443224 &amp;nbsp; &amp;nbsp; &amp;nbsp;0.33965640 &amp;nbsp;0.17981837 &amp;nbsp;0.2815151&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;background-color: #cfe2f3; font-size: x-small;&quot;&gt;Cholesterol.g &amp;nbsp; &amp;nbsp; &amp;nbsp; 0.447642847 &amp;nbsp; &amp;nbsp;1.00000000 -0.17185060 &amp;nbsp; -0.211089179 &amp;nbsp; &amp;nbsp; &amp;nbsp;0.09015895 &amp;nbsp;0.04897635 &amp;nbsp;0.1493562&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;background-color: #cfe2f3; font-size: x-small;&quot;&gt;Sodium.mg &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;-0.205516590 &amp;nbsp; -0.17185060 &amp;nbsp;1.00000000 &amp;nbsp; &amp;nbsp;0.125961611 &amp;nbsp; &amp;nbsp; -0.04079726 -0.13156231 &amp;nbsp;0.2273913&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;background-color: #cfe2f3; font-size: x-small;&quot;&gt;Carbohydrate.g &amp;nbsp; &amp;nbsp; &amp;nbsp;0.003443224 &amp;nbsp; -0.21108918 &amp;nbsp;0.12596161 &amp;nbsp; &amp;nbsp;1.000000000 &amp;nbsp; &amp;nbsp; -0.03642410 &amp;nbsp;0.84364321 -0.3303399&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;background-color: #cfe2f3; font-size: x-small;&quot;&gt;Dietary.fiber.g &amp;nbsp; &amp;nbsp; 0.339656404 &amp;nbsp; &amp;nbsp;0.09015895 -0.04079726 &amp;nbsp; -0.036424097 &amp;nbsp; &amp;nbsp; &amp;nbsp;1.00000000 -0.09835628 &amp;nbsp;0.4555465&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;background-color: #cfe2f3; font-size: x-small;&quot;&gt;Sugars.g &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0.179818371 &amp;nbsp; &amp;nbsp;0.04897635 -0.13156231 &amp;nbsp; &amp;nbsp;0.843643207 &amp;nbsp; &amp;nbsp; -0.09835628 &amp;nbsp;1.00000000 -0.3285223&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;background-color: #cfe2f3; font-size: x-small;&quot;&gt;Protein.g &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0.281515132 &amp;nbsp; &amp;nbsp;0.14935620 &amp;nbsp;0.22739135 &amp;nbsp; -0.330339948 &amp;nbsp; &amp;nbsp; &amp;nbsp;0.45554649 -0.32852233 &amp;nbsp;1.0000000&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;NOTE that in both cases the term&amp;nbsp;&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;use=&quot;na.or.complete&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp;says that you might have missing values and to go ahead anyway.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;Step 4. To make a scatterplot matrix you will need to load the lattice package. The plot below shows the default version, but you can always change the colours and size etc if you know what you are doing. R does not plot the confidence ellipses as shown on the JMP plot (above)&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;library(lattice)&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;with(dat, splom(cbind(Saturated.fat.g, Cholesterol.g, Sodium.mg, Carbohydrate.g, Dietary.fiber.g, Sugars.g, Protein.g)))&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://4.bp.blogspot.com/-U3FojgvBXnw/Uo1oo0bYOhI/AAAAAAAAEY0/Fr8WjuoeP04/s1600/splot.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;376&quot; src=&quot;http://4.bp.blogspot.com/-U3FojgvBXnw/Uo1oo0bYOhI/AAAAAAAAEY0/Fr8WjuoeP04/s640/splot.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;Step 5. There is no easy way to get P-values with R so you have to install and load the &lt;i&gt;Hmisc&lt;/i&gt; package first, then you can get both the correlation coefficients and the sample sizes and the P-values each in a separate matrix&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;library(Hmisc)&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;with(dat, rcorr(cbind(Saturated.fat.g, Cholesterol.g, Sodium.mg, Carbohydrate.g, Dietary.fiber.g, Sugars.g, Protein.g), type=&quot;pearson&quot;))&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp;&lt;span style=&quot;background-color: #cfe2f3;&quot;&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Saturated.fat.g Cholesterol.g Sodium.mg Carbohydrate.g Dietary.fiber.g Sugars.g Protein.g&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;background-color: #cfe2f3; font-size: x-small;&quot;&gt;Saturated.fat.g &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1.00 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0.41 &amp;nbsp; &amp;nbsp; -0.21 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;-0.03 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0.45 &amp;nbsp; &amp;nbsp; 0.13 &amp;nbsp; &amp;nbsp; &amp;nbsp;0.30&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;background-color: #cfe2f3; font-size: x-small;&quot;&gt;Cholesterol.g &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0.41 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1.00 &amp;nbsp; &amp;nbsp; -0.04 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;-0.28 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -0.08 &amp;nbsp; &amp;nbsp; 0.05 &amp;nbsp; &amp;nbsp; &amp;nbsp;0.01&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;background-color: #cfe2f3; font-size: x-small;&quot;&gt;Sodium.mg &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -0.21 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -0.04 &amp;nbsp; &amp;nbsp; &amp;nbsp;1.00 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0.07 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -0.14 &amp;nbsp; &amp;nbsp;-0.08 &amp;nbsp; &amp;nbsp; &amp;nbsp;0.28&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;background-color: #cfe2f3; font-size: x-small;&quot;&gt;Carbohydrate.g &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;-0.03 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -0.28 &amp;nbsp; &amp;nbsp; &amp;nbsp;0.07 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1.00 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -0.06 &amp;nbsp; &amp;nbsp; 0.75 &amp;nbsp; &amp;nbsp; -0.23&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;background-color: #cfe2f3; font-size: x-small;&quot;&gt;Dietary.fiber.g &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0.45 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -0.08 &amp;nbsp; &amp;nbsp; -0.14 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;-0.06 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1.00 &amp;nbsp; &amp;nbsp;-0.07 &amp;nbsp; &amp;nbsp; &amp;nbsp;0.49&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;background-color: #cfe2f3; font-size: x-small;&quot;&gt;Sugars.g &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0.13 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0.05 &amp;nbsp; &amp;nbsp; -0.08 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0.75 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -0.07 &amp;nbsp; &amp;nbsp; 1.00 &amp;nbsp; &amp;nbsp; -0.24&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;background-color: #cfe2f3; font-size: x-small;&quot;&gt;Protein.g &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0.30 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0.01 &amp;nbsp; &amp;nbsp; &amp;nbsp;0.28 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;-0.23 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0.49 &amp;nbsp; &amp;nbsp;-0.24 &amp;nbsp; &amp;nbsp; &amp;nbsp;1.00&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;background-color: #cfe2f3; font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;background-color: #cfe2f3; font-size: x-small;&quot;&gt;n&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;background-color: #cfe2f3; font-size: x-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Saturated.fat.g Cholesterol.g Sodium.mg Carbohydrate.g Dietary.fiber.g Sugars.g Protein.g&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;background-color: #cfe2f3; font-size: x-small;&quot;&gt;Saturated.fat.g &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;75 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;57 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;57 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 57 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;57 &amp;nbsp; &amp;nbsp; &amp;nbsp; 57 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;57&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;background-color: #cfe2f3; font-size: x-small;&quot;&gt;Cholesterol.g &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;57 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;75 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;75 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 75 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;75 &amp;nbsp; &amp;nbsp; &amp;nbsp; 75 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;75&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;background-color: #cfe2f3; font-size: x-small;&quot;&gt;Sodium.mg &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;57 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;75 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;75 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 75 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;75 &amp;nbsp; &amp;nbsp; &amp;nbsp; 75 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;75&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;background-color: #cfe2f3; font-size: x-small;&quot;&gt;Carbohydrate.g &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 57 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;75 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;75 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 75 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;75 &amp;nbsp; &amp;nbsp; &amp;nbsp; 75 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;75&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;background-color: #cfe2f3; font-size: x-small;&quot;&gt;Dietary.fiber.g &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;57 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;75 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;75 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 75 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;75 &amp;nbsp; &amp;nbsp; &amp;nbsp; 75 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;75&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;background-color: #cfe2f3; font-size: x-small;&quot;&gt;Sugars.g &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 57 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;75 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;75 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 75 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;75 &amp;nbsp; &amp;nbsp; &amp;nbsp; 75 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;75&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;background-color: #cfe2f3; font-size: x-small;&quot;&gt;Protein.g &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;57 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;75 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;75 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 75 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;75 &amp;nbsp; &amp;nbsp; &amp;nbsp; 75 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;75&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;background-color: #cfe2f3; font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;background-color: #cfe2f3; font-size: x-small;&quot;&gt;P&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;background-color: #cfe2f3; font-size: x-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Saturated.fat.g Cholesterol.g Sodium.mg Carbohydrate.g Dietary.fiber.g Sugars.g Protein.g&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;background-color: #cfe2f3; font-size: x-small;&quot;&gt;Saturated.fat.g &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0.0017 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0.1129 &amp;nbsp; &amp;nbsp;0.8379 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0.0004 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0.3358 &amp;nbsp; 0.0213 &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;background-color: #cfe2f3; font-size: x-small;&quot;&gt;Cholesterol.g &amp;nbsp; 0.0017 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0.7370 &amp;nbsp; &amp;nbsp;0.0150 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0.4980 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0.7014 &amp;nbsp; 0.8994 &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;background-color: #cfe2f3; font-size: x-small;&quot;&gt;Sodium.mg &amp;nbsp; &amp;nbsp; &amp;nbsp; 0.1129 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0.7370 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0.5355 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0.2187 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0.5152 &amp;nbsp; 0.0150 &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;background-color: #cfe2f3; font-size: x-small;&quot;&gt;Carbohydrate.g &amp;nbsp;0.8379 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0.0150 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0.5355 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0.5834 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0.0000 &amp;nbsp; 0.0470 &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;background-color: #cfe2f3; font-size: x-small;&quot;&gt;Dietary.fiber.g 0.0004 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0.4980 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0.2187 &amp;nbsp; &amp;nbsp;0.5834 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0.5500 &amp;nbsp; 0.0000 &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;background-color: #cfe2f3; font-size: x-small;&quot;&gt;Sugars.g &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0.3358 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0.7014 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0.5152 &amp;nbsp; &amp;nbsp;0.0000 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0.5500 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0.0374 &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;Protein.g &amp;nbsp; &amp;nbsp; &amp;nbsp; 0.0213 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0.8994 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0.0150 &amp;nbsp; &amp;nbsp;0.0470 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0.0000 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0.0374 &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;and the same for the Spearman&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;with(dat, rcorr(cbind(Saturated.fat.g, Cholesterol.g, Sodium.mg, Carbohydrate.g, Dietary.fiber.g, Sugars.g, Protein.g), type=&quot;spearman&quot;))&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;background-color: #cfe2f3; font-size: x-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Saturated.fat.g Cholesterol.g Sodium.mg Carbohydrate.g Dietary.fiber.g Sugars.g Protein.g&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;background-color: #cfe2f3; font-size: x-small;&quot;&gt;Saturated.fat.g &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1.00 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0.45 &amp;nbsp; &amp;nbsp; -0.21 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0.00 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0.34 &amp;nbsp; &amp;nbsp; 0.18 &amp;nbsp; &amp;nbsp; &amp;nbsp;0.28&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;background-color: #cfe2f3; font-size: x-small;&quot;&gt;Cholesterol.g &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0.45 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1.00 &amp;nbsp; &amp;nbsp; -0.11 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;-0.28 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0.00 &amp;nbsp; &amp;nbsp; 0.08 &amp;nbsp; &amp;nbsp; &amp;nbsp;0.06&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;background-color: #cfe2f3; font-size: x-small;&quot;&gt;Sodium.mg &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -0.21 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -0.11 &amp;nbsp; &amp;nbsp; &amp;nbsp;1.00 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0.14 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -0.13 &amp;nbsp; &amp;nbsp;-0.08 &amp;nbsp; &amp;nbsp; &amp;nbsp;0.22&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;background-color: #cfe2f3; font-size: x-small;&quot;&gt;Carbohydrate.g &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0.00 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -0.28 &amp;nbsp; &amp;nbsp; &amp;nbsp;0.14 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1.00 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -0.08 &amp;nbsp; &amp;nbsp; 0.79 &amp;nbsp; &amp;nbsp; -0.28&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;background-color: #cfe2f3; font-size: x-small;&quot;&gt;Dietary.fiber.g &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0.34 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0.00 &amp;nbsp; &amp;nbsp; -0.13 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;-0.08 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1.00 &amp;nbsp; &amp;nbsp;-0.09 &amp;nbsp; &amp;nbsp; &amp;nbsp;0.52&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;background-color: #cfe2f3; font-size: x-small;&quot;&gt;Sugars.g &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0.18 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0.08 &amp;nbsp; &amp;nbsp; -0.08 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0.79 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -0.09 &amp;nbsp; &amp;nbsp; 1.00 &amp;nbsp; &amp;nbsp; -0.30&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;background-color: #cfe2f3; font-size: x-small;&quot;&gt;Protein.g &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0.28 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0.06 &amp;nbsp; &amp;nbsp; &amp;nbsp;0.22 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;-0.28 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0.52 &amp;nbsp; &amp;nbsp;-0.30 &amp;nbsp; &amp;nbsp; &amp;nbsp;1.00&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;background-color: #cfe2f3; font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;background-color: #cfe2f3; font-size: x-small;&quot;&gt;n&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;background-color: #cfe2f3; font-size: x-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Saturated.fat.g Cholesterol.g Sodium.mg Carbohydrate.g Dietary.fiber.g Sugars.g Protein.g&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;background-color: #cfe2f3; font-size: x-small;&quot;&gt;Saturated.fat.g &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;75 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;57 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;57 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 57 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;57 &amp;nbsp; &amp;nbsp; &amp;nbsp; 57 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;57&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;background-color: #cfe2f3; font-size: x-small;&quot;&gt;Cholesterol.g &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;57 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;75 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;75 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 75 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;75 &amp;nbsp; &amp;nbsp; &amp;nbsp; 75 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;75&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;background-color: #cfe2f3; font-size: x-small;&quot;&gt;Sodium.mg &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;57 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;75 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;75 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 75 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;75 &amp;nbsp; &amp;nbsp; &amp;nbsp; 75 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;75&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;background-color: #cfe2f3; font-size: x-small;&quot;&gt;Carbohydrate.g &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 57 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;75 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;75 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 75 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;75 &amp;nbsp; &amp;nbsp; &amp;nbsp; 75 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;75&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;background-color: #cfe2f3; font-size: x-small;&quot;&gt;Dietary.fiber.g &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;57 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;75 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;75 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 75 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;75 &amp;nbsp; &amp;nbsp; &amp;nbsp; 75 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;75&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;background-color: #cfe2f3; font-size: x-small;&quot;&gt;Sugars.g &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 57 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;75 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;75 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 75 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;75 &amp;nbsp; &amp;nbsp; &amp;nbsp; 75 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;75&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;background-color: #cfe2f3; font-size: x-small;&quot;&gt;Protein.g &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;57 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;75 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;75 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 75 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;75 &amp;nbsp; &amp;nbsp; &amp;nbsp; 75 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;75&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;background-color: #cfe2f3; font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;background-color: #cfe2f3; font-size: x-small;&quot;&gt;P&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;background-color: #cfe2f3; font-size: x-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Saturated.fat.g Cholesterol.g Sodium.mg Carbohydrate.g Dietary.fiber.g Sugars.g Protein.g&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;background-color: #cfe2f3; font-size: x-small;&quot;&gt;Saturated.fat.g &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0.0005 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0.1251 &amp;nbsp; &amp;nbsp;0.9797 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0.0097 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0.1807 &amp;nbsp; 0.0339 &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;background-color: #cfe2f3; font-size: x-small;&quot;&gt;Cholesterol.g &amp;nbsp; 0.0005 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0.3315 &amp;nbsp; &amp;nbsp;0.0165 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0.9678 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0.4920 &amp;nbsp; 0.6071 &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;background-color: #cfe2f3; font-size: x-small;&quot;&gt;Sodium.mg &amp;nbsp; &amp;nbsp; &amp;nbsp; 0.1251 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0.3315 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0.2451 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0.2692 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0.5037 &amp;nbsp; 0.0587 &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;background-color: #cfe2f3; font-size: x-small;&quot;&gt;Carbohydrate.g &amp;nbsp;0.9797 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0.0165 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0.2451 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0.5114 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0.0000 &amp;nbsp; 0.0140 &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;background-color: #cfe2f3; font-size: x-small;&quot;&gt;Dietary.fiber.g 0.0097 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0.9678 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0.2692 &amp;nbsp; &amp;nbsp;0.5114 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0.4202 &amp;nbsp; 0.0000 &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;background-color: #cfe2f3; font-size: x-small;&quot;&gt;Sugars.g &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0.1807 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0.4920 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0.5037 &amp;nbsp; &amp;nbsp;0.0000 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0.4202 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0.0101 &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;background-color: #cfe2f3; font-size: x-small;&quot;&gt;Protein.g &amp;nbsp; &amp;nbsp; &amp;nbsp; 0.0339 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0.6071 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0.0587 &amp;nbsp; &amp;nbsp;0.0140 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0.0000 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0.0101 &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;NOTE that even though using the &lt;i&gt;Hmisc&lt;/i&gt; package requires a bit of extra preparation, the results are very easy to get all at once and can be copied and pasted right into your word processor&lt;/span&gt;&lt;/b&gt;</content><link rel='replies' type='application/atom+xml' href='http://vstats.blogspot.com/feeds/1421359202039122215/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=33859018&amp;postID=1421359202039122215&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/33859018/posts/default/1421359202039122215'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/33859018/posts/default/1421359202039122215'/><link rel='alternate' type='text/html' href='http://vstats.blogspot.com/2013/11/correlation-analysis.html' title='Correlation analysis'/><author><name>Bob Montgomerie</name><uri>http://www.blogger.com/profile/13895677746615571939</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://2.bp.blogspot.com/-OGqq6FFYZ08/Uo1TWh0adlI/AAAAAAAAEXg/XdqfYEJgB7E/s72-c/CapturFiles-201311324_1911.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-33859018.post-8683545133570414477</id><published>2013-11-18T21:56:00.002-05:00</published><updated>2013-11-18T22:07:08.540-05:00</updated><title type='text'>Repeatability</title><content type='html'>On page 415 in the textbook the formula for Repeatability is given as:&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://1.bp.blogspot.com/-LzmtpEzIdS8/UorMK-_c1vI/AAAAAAAAEW8/2XVPFfUpNn0/s1600/repeatability.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://1.bp.blogspot.com/-LzmtpEzIdS8/UorMK-_c1vI/AAAAAAAAEW8/2XVPFfUpNn0/s1600/repeatability.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;where&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://2.bp.blogspot.com/-LcZqwO8-6m4/UorMK5TR_8I/AAAAAAAAEXI/f8Pfvj9Ha1Q/s1600/sa2.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://2.bp.blogspot.com/-LcZqwO8-6m4/UorMK5TR_8I/AAAAAAAAEXI/f8Pfvj9Ha1Q/s1600/sa2.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;These values can be taken from a typical ANOVA table of results:&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://4.bp.blogspot.com/-2c7GIf2RADU/UorNTWso1tI/AAAAAAAAEXQ/Y3eY4WSN9TA/s1600/anovaTable.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;106&quot; src=&quot;http://4.bp.blogspot.com/-2c7GIf2RADU/UorNTWso1tI/AAAAAAAAEXQ/Y3eY4WSN9TA/s400/anovaTable.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;as calculated from X=specimen identification (a letter, name or number to identify each individual that was measured more than once&lt;br /&gt;and Y = the measurement&lt;br /&gt;&lt;br /&gt;In the ANOVA table: &lt;b&gt;Mean Square&lt;/b&gt; for &lt;b&gt;specimen&lt;/b&gt; is MS&lt;span style=&quot;font-size: x-small;&quot;&gt;groups &lt;/span&gt;and &lt;b&gt;Mean Square&lt;/b&gt; for &lt;b&gt;Error&lt;/b&gt; is MS&lt;span style=&quot;font-size: x-small;&quot;&gt;error&lt;/span&gt;. The number of measurements for each specimen (individual) is &lt;b&gt;n&lt;/b&gt;.&lt;br /&gt;&lt;br /&gt;THIS FORMULA IS CORRECT and the one I presented in lecture last week was not. I have now corrected that on the pdf I posted of those lecture slides. My apologies for this error, and thanks to the student who pointed this out to me in class today.&lt;br /&gt;&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://vstats.blogspot.com/feeds/8683545133570414477/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=33859018&amp;postID=8683545133570414477&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/33859018/posts/default/8683545133570414477'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/33859018/posts/default/8683545133570414477'/><link rel='alternate' type='text/html' href='http://vstats.blogspot.com/2013/11/repeatability.html' title='Repeatability'/><author><name>Bob Montgomerie</name><uri>http://www.blogger.com/profile/13895677746615571939</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://1.bp.blogspot.com/-LzmtpEzIdS8/UorMK-_c1vI/AAAAAAAAEW8/2XVPFfUpNn0/s72-c/repeatability.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-33859018.post-8552945119961481274</id><published>2013-11-18T21:05:00.000-05:00</published><updated>2013-11-18T21:05:29.146-05:00</updated><title type='text'>Quiz Week 10</title><content type='html'>Posted on Moodle. Must be answered on-line before 5 pm Tuesday 18 November.&lt;br /&gt;&lt;br /&gt;This quiz is all about ANOVA and there are 10 questions spread over 2 different pages on-line. There are no datasets or calculations to be made. Just questions about some aspects of ASNOVA and interpreting the output from analyses.&lt;br /&gt;&lt;br /&gt;There will be one last quiz next Monday, focussing on correlation but with at least half the questions from the rest of the course material.</content><link rel='replies' type='application/atom+xml' href='http://vstats.blogspot.com/feeds/8552945119961481274/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=33859018&amp;postID=8552945119961481274&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/33859018/posts/default/8552945119961481274'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/33859018/posts/default/8552945119961481274'/><link rel='alternate' type='text/html' href='http://vstats.blogspot.com/2013/11/quiz-week-10.html' title='Quiz Week 10'/><author><name>Bob Montgomerie</name><uri>http://www.blogger.com/profile/13895677746615571939</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-33859018.post-997878893006021754</id><published>2013-11-16T17:05:00.000-05:00</published><updated>2013-11-16T17:06:54.063-05:00</updated><title type='text'>Week 11: Correlation</title><content type='html'>&lt;div class=&quot;p1&quot;&gt;&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;Correlation is an interesting topic as it looks at the relation between two continuous variables, one of which is usually designated as the predictor and one as the response, though sometimes it is hard (or impossible to tell which causes which. Remember, too, that correlation is not necessarily causation.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;p1&quot;&gt;&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;p1&quot;&gt;&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;Despite my claims and best efforts, last week&#39;s assignment was hard, and a ton of work. I will try to compensate this week and next with much more straightforward assignments. &amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;p2&quot;&gt;&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;p1&quot;&gt;&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;&lt;b&gt;QUIZ&lt;/b&gt;: on-line, available at 3 pm on Monday and due (that means submitted by) 5 pm Tuesday. All of the questions are multiple choice and will be marked on-line. This week the quiz will be based mainly on chapter 15 in the textbook (on Analysis of Variance), but I reserve the right to ask questions about anything we have covered to date.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;p3&quot;&gt;&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;p1&quot;&gt;&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;&lt;b&gt;HOMEWORK&lt;/b&gt;: &amp;nbsp;This week&#39;s focus for study, practice, and assignment is Chapter 16 in the textbook on Correlation.&amp;nbsp;You should also read and think about the INTERLEAF on pages 429-430 about the sources of error in experimental design and statistical analysis—we have talked about this in class. Notice that we also talked &amp;nbsp;about the 2D:4D ratios in their example 16.1.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;p2&quot;&gt;&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;p1&quot;&gt;&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;&lt;b&gt;PRACTICE EXERCISES&lt;/b&gt;: chapter 16 problems 1, 3, 8, and 11 (below the fold). I will almost certainly ask a version of question 1 on next week&#39;s quiz.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;p1&quot;&gt;&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;p1&quot;&gt;&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;&lt;span style=&quot;color: #444444; line-height: 18px;&quot;&gt;&lt;b&gt;ASSIGNMENT&lt;/b&gt;:&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: red; line-height: 18px; text-align: center;&quot;&gt;&lt;b&gt;DUE before 11:30 on Friday 22 November, uploaded as PDF to Moodle and with the filename in the usual format&lt;/b&gt;&lt;/span&gt;&lt;b style=&quot;color: red; line-height: 18px; text-align: center;&quot;&gt;.&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;p1&quot;&gt;&lt;b style=&quot;font-family: Verdana, sans-serif; font-size: 13px; line-height: 18px; text-align: center;&quot;&gt;&lt;/b&gt;&lt;/div&gt;&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;&lt;b&gt;PRACTICE EXERCISES (chapter 16)&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://4.bp.blogspot.com/-Uh8cI9jqbNY/UoenmCnk3jI/AAAAAAAAEWk/wqqmHA73Juc/s1600/ch16q1and3.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;http://4.bp.blogspot.com/-Uh8cI9jqbNY/UoenmCnk3jI/AAAAAAAAEWk/wqqmHA73Juc/s320/ch16q1and3.png&quot; width=&quot;241&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://1.bp.blogspot.com/-moRLCg-qO7M/UoenmJtGBDI/AAAAAAAAEWc/cbGmybb7a24/s1600/ch16q3and8.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;http://1.bp.blogspot.com/-moRLCg-qO7M/UoenmJtGBDI/AAAAAAAAEWc/cbGmybb7a24/s320/ch16q3and8.png&quot; width=&quot;249&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://2.bp.blogspot.com/-VOFQBU3BaE8/UoenmL0Y2wI/AAAAAAAAEWg/iGf1puZWhJ0/s1600/ch16q11.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;http://2.bp.blogspot.com/-VOFQBU3BaE8/UoenmL0Y2wI/AAAAAAAAEWg/iGf1puZWhJ0/s320/ch16q11.png&quot; width=&quot;234&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;p1&quot; style=&quot;text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;p1&quot; style=&quot;text-align: center;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;ASSIGNMENT&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;p1&quot; style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;I. Using the by-now familiar—and maybe even boring—dataset on the sleeping of mammals (Sleep dataset on Moodle for the week of 30 September), answer the following questions. In each case assume that I am a client who has come to you for statistical advice. I have collected these data and have hired you to analyze those data and to interpret my findings for me. I am interested in all of the relations between a couple of morphological variables (brain mass and body mass) and three estimates of time spent sleeping in different states&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;on average per day&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;(dreaming, non-dreaming, and total amount of sleep).&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;p1&quot; style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;p1&quot; style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;a. I looked at the correlations between all pairs of these variables in a correlation matrix and I see that for the parametric analyses all but two of the correlations are significant, but in the nonparametric analysis they are all significant. Why the difference? Provide me with a correlation matrix showing all possible correlations of these 5 variables, with parametric correlation coefficients above the diagonal and nonparametric below the diagonal, and all significant correlations (P&amp;lt;0.05) highlighted in &lt;b&gt;bold&lt;/b&gt; font.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;p1&quot; style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;p1&quot; style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;b. For one of the significant parametric correlations between a sleep variable and a morphological variable, do a thorough correlation analysis (plotting the data, assessing whether the assumptions have been met, checking for outliers and other anomalies, calculating the approximate 95%CL of the correlation coefficient, and assessing the significance of the correlation) and provide an interpretation of both the statistics and the biology.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;p1&quot; style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;p1&quot; style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;c. I see that the correlation between Total Sleep and Body mass is negative. What does that mean?&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vstats.blogspot.com/feeds/997878893006021754/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=33859018&amp;postID=997878893006021754&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/33859018/posts/default/997878893006021754'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/33859018/posts/default/997878893006021754'/><link rel='alternate' type='text/html' href='http://vstats.blogspot.com/2013/11/week-11-correlation.html' title='Week 11: Correlation'/><author><name>Bob Montgomerie</name><uri>http://www.blogger.com/profile/13895677746615571939</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://4.bp.blogspot.com/-Uh8cI9jqbNY/UoenmCnk3jI/AAAAAAAAEWk/wqqmHA73Juc/s72-c/ch16q1and3.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-33859018.post-8503471389364145216</id><published>2013-11-15T14:04:00.001-05:00</published><updated>2013-11-15T14:04:14.997-05:00</updated><title type='text'>Lecture slides and df</title><content type='html'>I have posted my lectures slides from Wednesday and Friday as pdfs on Moodle.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;DF&lt;/b&gt;&lt;br /&gt;These slides show the correct calculation of df, unlike what I said in class on Friday.&lt;br /&gt;&lt;br /&gt;Thus for ANOVA, df = (number of groups - 1), (total sample size - number of groups)</content><link rel='replies' type='application/atom+xml' href='http://vstats.blogspot.com/feeds/8503471389364145216/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=33859018&amp;postID=8503471389364145216&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/33859018/posts/default/8503471389364145216'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/33859018/posts/default/8503471389364145216'/><link rel='alternate' type='text/html' href='http://vstats.blogspot.com/2013/11/lecture-slides-and-df.html' title='Lecture slides and df'/><author><name>Bob Montgomerie</name><uri>http://www.blogger.com/profile/13895677746615571939</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-33859018.post-1053611490907121431</id><published>2013-11-13T21:24:00.004-05:00</published><updated>2013-11-13T21:24:56.930-05:00</updated><title type='text'>ANOVA in JMP and R</title><content type='html'>Here are some tips on doing one factor (one way, single factor) ANOVA using either JMP or R. For these examples I am using the &lt;b&gt;cholesterol.jmp&lt;/b&gt; dataset that is in the Sample Data in JMP (Help menu).&lt;br /&gt;&lt;br /&gt;This dataset has two drug treatments, a placebo and a control and we will analyse the cholesterol levels for June PM (the final column of data.&lt;br /&gt;&lt;br /&gt;USING JMP&lt;br /&gt;Step 1. Make sure that the treatments (levels) for the predictor are all listed in one column and that column is a categorical variable (blue arrow below).&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://1.bp.blogspot.com/-l7dlv3BZKnY/UoQpLkyqnRI/AAAAAAAAEVg/BzTiSeVplFs/s1600/step1.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;146&quot; src=&quot;http://1.bp.blogspot.com/-l7dlv3BZKnY/UoQpLkyqnRI/AAAAAAAAEVg/BzTiSeVplFs/s320/step1.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;/div&gt;&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;Step 2. Choose &lt;b&gt;Analyze&amp;gt;Fit Y by X&lt;/b&gt;, and put the predictor (treatments) into &lt;b&gt;X, Factor&lt;/b&gt; and the response into &lt;b&gt;Y, Response&lt;/b&gt;, and get:&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://1.bp.blogspot.com/-quH931jqfVE/UoQqWPEuWtI/AAAAAAAAEVs/SiJZ7FfhG4c/s1600/step3.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;400&quot; src=&quot;http://1.bp.blogspot.com/-quH931jqfVE/UoQqWPEuWtI/AAAAAAAAEVs/SiJZ7FfhG4c/s400/step3.png&quot; width=&quot;273&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;The blue box indicates the F-statistic and the P-value, the green box indicates the relevant df and the red box indicates the means for each level of the predictor (factor).&lt;br /&gt;&lt;br /&gt;Report &quot;There is significant variation in cholesterol levels among the 4 treatments (ANOVA, F= 222.6, df = 3,16, P &amp;lt;0.0001)&quot;&lt;br /&gt;&lt;br /&gt;You can see from the graph that A and B are similar and the Control and Placebo are similar, and you might estimate that they are not significantly different because the 95%CLs overlap&lt;br /&gt;&lt;br /&gt;Step 3. Because the ANOVA is significant, you can now run a post hoc test to find out which pairs are sig diff. To do that choose &lt;b&gt;Compare Means&amp;gt;All pairs, Tukey HSD&lt;/b&gt; from under the red triangle and get:&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://3.bp.blogspot.com/-Bk2ODxMxvqk/UoQsaua9f1I/AAAAAAAAEV4/1SnDo0EI1fU/s1600/step3a.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;290&quot; src=&quot;http://3.bp.blogspot.com/-Bk2ODxMxvqk/UoQsaua9f1I/AAAAAAAAEV4/1SnDo0EI1fU/s320/step3a.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;The green box indicates the relevant info. To make a graph like I showed in class you will have to add the letters by hand.&lt;br /&gt;&lt;br /&gt;Step 4. You might want to check assumptions by doing quantile plots of each level to check for normality. You can also check for equal variances by choosing Unequal Variances from the menu under the red triangle and get:&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://3.bp.blogspot.com/-paLMo6SMUuM/UoQtgHituhI/AAAAAAAAEWA/LjsKqH3D-QY/s1600/step4.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;http://3.bp.blogspot.com/-paLMo6SMUuM/UoQtgHituhI/AAAAAAAAEWA/LjsKqH3D-QY/s320/step4.png&quot; width=&quot;252&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;The green arrows show that three of the test are significant, suggesting that the null hypothesis (equal variances) should be rejected. Also the rule of thumb that the largest SD should be no more than twice as big as the smallest is violated (green box). Because the variances are unequal, JMP does a Welch&#39;s ANOVA to correct for that (and the P-value is the same).&lt;br /&gt;&lt;br /&gt;Step 5. Because the variances are so different and the sample size is very small you might also want to run a nonparametric ANOVA, by choosing &lt;b&gt;Nonparametric&amp;gt;Wilcoxon&lt;/b&gt; &lt;b&gt;test&lt;/b&gt; under the red triangle and get:&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://3.bp.blogspot.com/-XRlxZ_x4Xgc/UoQu0TsvXyI/AAAAAAAAEWM/uxU8qh3gwgQ/s1600/step5.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;165&quot; src=&quot;http://3.bp.blogspot.com/-XRlxZ_x4Xgc/UoQu0TsvXyI/AAAAAAAAEWM/uxU8qh3gwgQ/s320/step5.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;Where the red box indicates the appropriate test statistic and P-value. The results are the same, significant difference among mean cholesterols. To find out which pairs are sig diff, choose &lt;b&gt;Nonparametric&amp;gt; Nonparametric multiple Comparisons&amp;gt;Wilcoxon Each Pair&lt;/b&gt; under the red triangle. I&#39;ll leave that for you to interpret on your own.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;USING R&lt;/b&gt;&lt;br /&gt;Same dataset and analyses as above. Here&#39;s the relevant script:&lt;br /&gt;&lt;br /&gt;&lt;div style=&quot;overflow: auto;&quot;&gt;&lt;div class=&quot;geshifilter&quot;&gt;&lt;pre class=&quot;r geshifilter-R&quot; style=&quot;font-family: monospace;&quot;&gt;dat=&lt;a href=&quot;http://inside-r.org/r-doc/utils/read.csv&quot;&gt;&lt;span style=&quot;color: #003399; font-weight: bold;&quot;&gt;read.csv&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color: #009900;&quot;&gt;(&lt;/span&gt;&lt;a href=&quot;http://inside-r.org/r-doc/base/file.choose&quot;&gt;&lt;span style=&quot;color: #003399; font-weight: bold;&quot;&gt;file.choose&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color: #009900;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt;#read in the csv file and store in dat&lt;/span&gt;&lt;br /&gt;&amp;nbsp;&lt;br /&gt;&lt;a href=&quot;http://inside-r.org/r-doc/graphics/boxplot&quot;&gt;&lt;span style=&quot;color: #003399; font-weight: bold;&quot;&gt;boxplot&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color: #009900;&quot;&gt;(&lt;/span&gt;dat$June.PM~dat$treatment&lt;span style=&quot;color: #009900;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt;#plot the data&lt;/span&gt;&lt;br /&gt;&amp;nbsp;&lt;br /&gt;mod1=&lt;a href=&quot;http://inside-r.org/r-doc/stats/aov&quot;&gt;&lt;span style=&quot;color: #003399; font-weight: bold;&quot;&gt;aov&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color: #009900;&quot;&gt;(&lt;/span&gt;June.PM~treatment&lt;span style=&quot;color: #339933;&quot;&gt;,&lt;/span&gt; &lt;a href=&quot;http://inside-r.org/r-doc/utils/data&quot;&gt;&lt;span style=&quot;color: #003399; font-weight: bold;&quot;&gt;data&lt;/span&gt;&lt;/a&gt;=dat&lt;span style=&quot;color: #009900;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt;#one factor anova model&lt;/span&gt;&lt;br /&gt;&lt;a href=&quot;http://inside-r.org/r-doc/base/summary&quot;&gt;&lt;span style=&quot;color: #003399; font-weight: bold;&quot;&gt;summary&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color: #009900;&quot;&gt;(&lt;/span&gt;mod1&lt;span style=&quot;color: #009900;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt;#show the anova table&lt;/span&gt;&lt;br /&gt;&amp;nbsp;&lt;br /&gt;&lt;a href=&quot;http://inside-r.org/r-doc/graphics/plot&quot;&gt;&lt;span style=&quot;color: #003399; font-weight: bold;&quot;&gt;plot&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color: #009900;&quot;&gt;(&lt;/span&gt;mod1&lt;span style=&quot;color: #009900;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt;#some diagnostic plots (complicated)&lt;/span&gt;&lt;br /&gt;&amp;nbsp;&lt;br /&gt;&lt;a href=&quot;http://inside-r.org/r-doc/stats/TukeyHSD&quot;&gt;&lt;span style=&quot;color: #003399; font-weight: bold;&quot;&gt;TukeyHSD&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color: #009900;&quot;&gt;(&lt;/span&gt;mod1&lt;span style=&quot;color: #009900;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt;#Tukey posthoc test&lt;/span&gt;&lt;br /&gt;&amp;nbsp;&lt;br /&gt;&lt;a href=&quot;http://inside-r.org/r-doc/stats/kruskal.test&quot;&gt;&lt;span style=&quot;color: #003399; font-weight: bold;&quot;&gt;kruskal.test&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color: #009900;&quot;&gt;(&lt;/span&gt;June.PM~treatment&lt;span style=&quot;color: #339933;&quot;&gt;,&lt;/span&gt; &lt;a href=&quot;http://inside-r.org/r-doc/utils/data&quot;&gt;&lt;span style=&quot;color: #003399; font-weight: bold;&quot;&gt;data&lt;/span&gt;&lt;/a&gt;=dat&lt;span style=&quot;color: #009900;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt;#nonparametric test&lt;/span&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;I will post again tomorrow on this R code and what it all means, as well as how rot interpret the results.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://vstats.blogspot.com/feeds/1053611490907121431/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=33859018&amp;postID=1053611490907121431&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/33859018/posts/default/1053611490907121431'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/33859018/posts/default/1053611490907121431'/><link rel='alternate' type='text/html' href='http://vstats.blogspot.com/2013/11/anova-in-jmp-and-r.html' title='ANOVA in JMP and R'/><author><name>Bob Montgomerie</name><uri>http://www.blogger.com/profile/13895677746615571939</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://1.bp.blogspot.com/-l7dlv3BZKnY/UoQpLkyqnRI/AAAAAAAAEVg/BzTiSeVplFs/s72-c/step1.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-33859018.post-5147983280737067161</id><published>2013-11-09T11:27:00.002-05:00</published><updated>2013-11-11T16:30:12.336-05:00</updated><title type='text'>Week 10: ANOVA</title><content type='html'>&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;ANOVA (analysis of variance) is a vast topic so we are going to just barely scratch the surface in this course. If it interests you, BIOL-343,&amp;nbsp;which will be offered for the first time in the fall of 2014, will focus entirely on ANOVA, or as it is more generally called, the General Linear Model.&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: #444444;&quot;&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;In&amp;nbsp;port because this past week covered so much and had a big assignment, this week&#39;s assignment is easy-peasy, and I will provide both JMP instructions and R code after the Wednesday lecture&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: #444444;&quot;&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; line-height: 18px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;background-color: white; color: #444444; line-height: 18px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; line-height: 18px;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; line-height: 18px;&quot;&gt;&lt;b&gt;QUIZ&lt;/b&gt;: on-line, available right after class on Monday and due (that means submitted by) 5 pm Tuesday. All of the questions are multiple choice and will be marked on-line. More details in a later post. This week the quiz will be based mainly on chapters 10-11 in the textbook, but I reserve the right to ask questions about anything we have covered to date.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;post-body entry-content&quot; id=&quot;post-body-3251890376316646984&quot; itemprop=&quot;description articleBody&quot; style=&quot;background-color: white; position: relative; width: 586px;&quot;&gt;&lt;span style=&quot;color: #444444; font-family: Verdana, sans-serif; line-height: 18px;&quot;&gt;&lt;b&gt;HOMEWORK&lt;/b&gt;: &amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #444444; font-family: Verdana, sans-serif; line-height: 18px;&quot;&gt;This week&#39;s focus for study, practice, and assignment are chapters Chapter 14 and 15 in the textbook.&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #444444; font-family: Verdana, sans-serif; line-height: 18px;&quot;&gt;You should also read and think about the INTERLEAF on pages 390-392. &lt;/span&gt;&lt;span style=&quot;color: #444444; font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;Chapter 14 is about the principles of experimental design—these are principles that are important to ensure that you can properly&amp;nbsp;analyse the results of an experiment with the best&amp;nbsp;statistical tools available. Chapter 15 is about ANOVA, a&amp;nbsp;method for comparing more than two means, and is the basis for the analysis of most experimental results&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;post-body entry-content&quot; id=&quot;post-body-3251890376316646984&quot; itemprop=&quot;description articleBody&quot; style=&quot;background-color: white; color: #444444; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: 18px; position: relative; width: 586px;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;post-body entry-content&quot; id=&quot;post-body-3251890376316646984&quot; itemprop=&quot;description articleBody&quot; style=&quot;background-color: white; color: #444444; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: 18px; position: relative; width: 586px;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;b&gt;PRACTICE EXERCISES&lt;/b&gt;: chapter 14 problems 8, 9 and 11, PLUS chapter 15 problems 1, 2, 3 and 5. See below the fold.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;post-body entry-content&quot; id=&quot;post-body-3251890376316646984&quot; itemprop=&quot;description articleBody&quot; style=&quot;background-color: white; color: #444444; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: 18px; position: relative; width: 586px;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;ASSIGNMENT:&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Verdana, sans-serif; text-align: center;&quot;&gt;&lt;b&gt;DUE before 11:30 on Friday 15 November, uploaded as PDF to Moodle and with the filename in the usual format&lt;/b&gt;&lt;/span&gt;&lt;b style=&quot;color: red; font-family: Verdana, sans-serif; text-align: center;&quot;&gt;.&amp;nbsp;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;post-body entry-content&quot; id=&quot;post-body-3251890376316646984&quot; itemprop=&quot;description articleBody&quot; style=&quot;background-color: white; color: #444444; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; position: relative; width: 586px;&quot;&gt;&lt;b style=&quot;color: red; font-family: Verdana, sans-serif; text-align: center;&quot;&gt;&lt;/b&gt;&lt;br /&gt;&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 13px; font-weight: bold; line-height: 18px;&quot;&gt;PRACTICE EXERCISES&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 13px; font-weight: bold; line-height: 18px;&quot;&gt;Chapter 14&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://1.bp.blogspot.com/-X_83yfee0Oo/Un5R1FWktCI/AAAAAAAAEVQ/n1XUNvudvcU/s1600/ch14q8.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;http://1.bp.blogspot.com/-X_83yfee0Oo/Un5R1FWktCI/AAAAAAAAEVQ/n1XUNvudvcU/s320/ch14q8.png&quot; width=&quot;237&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://3.bp.blogspot.com/-ja8iKNirlT8/Un5R0_86CMI/AAAAAAAAEU0/DcXr_T0FPZ4/s1600/ch14q11.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;265&quot; src=&quot;http://3.bp.blogspot.com/-ja8iKNirlT8/Un5R0_86CMI/AAAAAAAAEU0/DcXr_T0FPZ4/s320/ch14q11.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;&lt;b&gt;Chapter 15&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://4.bp.blogspot.com/-x-HeSx7AG2k/Un5R09qlnnI/AAAAAAAAEUw/K-A_9t6hb3Q/s1600/ch15q1.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;125&quot; src=&quot;http://4.bp.blogspot.com/-x-HeSx7AG2k/Un5R09qlnnI/AAAAAAAAEUw/K-A_9t6hb3Q/s320/ch15q1.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://4.bp.blogspot.com/-kqZGa2JEc5I/Un5R1RM9ydI/AAAAAAAAEU8/fj8kJm_uFyg/s1600/ch15q2.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;http://4.bp.blogspot.com/-kqZGa2JEc5I/Un5R1RM9ydI/AAAAAAAAEU8/fj8kJm_uFyg/s320/ch15q2.png&quot; width=&quot;237&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://3.bp.blogspot.com/-GR3uTe9_4rI/Un5R1YUcgJI/AAAAAAAAEVA/bojwfeyiUTM/s1600/ch15q5.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;http://3.bp.blogspot.com/-GR3uTe9_4rI/Un5R1YUcgJI/AAAAAAAAEVA/bojwfeyiUTM/s320/ch15q5.png&quot; width=&quot;303&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 13px; font-weight: bold; line-height: 18px;&quot;&gt;ASSIGNMENT&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;1. Using the &lt;b&gt;Sleep dataset&lt;/b&gt; from the week of 30 September, available on Moodle, answer the questions posed below.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;&amp;nbsp;In this dataset the researchers have scored &lt;b&gt;predation&lt;/b&gt;, &lt;b&gt;exposure&lt;/b&gt; and&lt;/span&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;&amp;nbsp;&lt;b&gt;danger&lt;/b&gt; e&lt;/span&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;ach on a 1-5 scale where 1 is low and 5 is high. Thus predation refers to how much &lt;i&gt;predation&lt;/i&gt; occurs on this species in nature,&amp;nbsp;&lt;i&gt;exposure&lt;/i&gt; refers to how exposed they are when they sleep (5 sleeps in the open, 1 in well-protected shelter), and &lt;i&gt;danger&lt;/i&gt; refers to how much danger they are in over all when they are sleeping, so a species with lots of predation pressure, but sleeping in a well protected place might have a low danger level.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;The researchers have hired you&amp;nbsp;because of your prowess with statistics and want to know whether &lt;/span&gt;&lt;i style=&quot;line-height: 18px;&quot;&gt;danger&lt;/i&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt; has any effect on the average number of hours spent sleeping per day (&lt;b&gt;TotalSleep&lt;/b&gt;), the lifespan (&lt;b&gt;LifeSpan&lt;/b&gt;, measured in years), and the&amp;nbsp;gestation period (&lt;b&gt;Gestation&lt;/b&gt;, measured in days) They have come to you for&amp;nbsp;help with the analysis and interpretation of results.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;a. Using &lt;b&gt;parametric&lt;/b&gt; methods to answer the question: determine whether the assumptions of this method are satisfied; based on these methods, provide the researchers with an answer to their question, including an assessment of the validity of your answer (and the accompanying stats) and an analysis to&amp;nbsp;compare each pair of&amp;nbsp;danger levels (e.g. is the total sleep of&amp;nbsp;mammals at danger level 1 different from that at danger level 5, etc.).&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;b.&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;Using &lt;b&gt;nonparametric&lt;/b&gt; methods to answer the question: provide the researchers with an answer to their question, including an assessment of the validity of your answer&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;(and the accompanying stats)&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;and an analysis to&amp;nbsp;compare each pair of&amp;nbsp;danger levels (e.g. is the total sleep of&amp;nbsp;mammals at danger level 1 different from that at danger level 5, etc.)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;c. Explain whether you would actually report your answer from a or b to your clients.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;NOTE: some of you have asked whether a graph is necessary when you answer questions like this, because no graph was explicitly asked for. In my opinion, a graph almost always helps the reader to understand your work, by presenting the raw data and some summary stats where possible. Thus it&#39;s hard for me to imagine a situation where a graph would not be very useful. In&amp;nbsp;that sense I guess you could say that a graph is always &lt;i&gt;required&lt;/i&gt;.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vstats.blogspot.com/feeds/5147983280737067161/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=33859018&amp;postID=5147983280737067161&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/33859018/posts/default/5147983280737067161'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/33859018/posts/default/5147983280737067161'/><link rel='alternate' type='text/html' href='http://vstats.blogspot.com/2013/11/week-10-anova.html' title='Week 10: ANOVA'/><author><name>Bob Montgomerie</name><uri>http://www.blogger.com/profile/13895677746615571939</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://1.bp.blogspot.com/-X_83yfee0Oo/Un5R1FWktCI/AAAAAAAAEVQ/n1XUNvudvcU/s72-c/ch14q8.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-33859018.post-3395945957970936389</id><published>2013-11-08T22:29:00.001-05:00</published><updated>2013-11-08T22:31:43.392-05:00</updated><title type='text'>Infographic of the week</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;See below the fold&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;/div&gt;&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://www.smbc-comics.com/comics/20131106.gif&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://www.smbc-comics.com/comics/20131106.gif&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://vstats.blogspot.com/feeds/3395945957970936389/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=33859018&amp;postID=3395945957970936389&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/33859018/posts/default/3395945957970936389'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/33859018/posts/default/3395945957970936389'/><link rel='alternate' type='text/html' href='http://vstats.blogspot.com/2013/11/infographic-of-week.html' title='Infographic of the week'/><author><name>Bob Montgomerie</name><uri>http://www.blogger.com/profile/13895677746615571939</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-33859018.post-2667323991039159152</id><published>2013-11-07T21:16:00.002-05:00</published><updated>2013-11-09T20:27:10.945-05:00</updated><title type='text'>R example</title><content type='html'>&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;Here is a full R example using the Fitness dataset, exported from JMP as a .csv file, to compare the pulse rates measured at maximum levels and when running for a bunch of people. I will type the code &lt;span style=&quot;color: orange;&quot;&gt;in orange&lt;/span&gt; text and the output is in blue except where include pictures of the output so I can annotate and explain what things mean.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;Step 1. Get the data into R (I always store the data in an object called dat, as this makes for efficiency in re-using code—you can use any name you want except data):&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: orange; font-family: Trebuchet MS, sans-serif;&quot;&gt;dat=read.csv(file.choose())&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: orange; font-family: Trebuchet MS, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;then I look at the&amp;nbsp;column names just to make sure I am using the right&amp;nbsp;names later:&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: orange; font-family: Trebuchet MS, sans-serif;&quot;&gt;names(dat)&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #3d85c6; font-family: Trebuchet MS, sans-serif;&quot;&gt;[1] &quot;Name&quot; &amp;nbsp; &amp;nbsp; &quot;Sex&quot; &amp;nbsp; &amp;nbsp; &amp;nbsp;&quot;Age&quot; &amp;nbsp; &amp;nbsp; &amp;nbsp;&quot;Weight&quot; &amp;nbsp; &quot;Oxy&quot; &amp;nbsp; &amp;nbsp; &amp;nbsp;&quot;Runtime&quot; &amp;nbsp;&quot;RunPulse&quot; &quot;RstPulse&quot; &quot;MaxPulse&quot;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;Step 2. label the variables of interest to make running the code simpler&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: orange; font-family: Trebuchet MS, sans-serif;&quot;&gt;y1 = dat$MaxPulse&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: orange; font-family: Trebuchet MS, sans-serif;&quot;&gt;y2 = dat$RunPulse&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;Step 3. Plot the data to look for anomalies and see what&#39;s what:&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: orange; font-family: Trebuchet MS, sans-serif;&quot;&gt;boxplot(y1, y2, notch=TRUE)&lt;/span&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://1.bp.blogspot.com/-ekqZMGoG8Ls/Unv8Dq2k_zI/AAAAAAAAEUQ/hx4TBkXVaEY/s1600/boxes.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;317&quot; src=&quot;http://1.bp.blogspot.com/-ekqZMGoG8Ls/Unv8Dq2k_zI/AAAAAAAAEUQ/hx4TBkXVaEY/s400/boxes.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;These are notched box plots that also show the 95%CL of the median as the notch. It looks like the data are OK, and that MaxPulse &amp;gt; RunPulse when comparing the means&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;Step 4. Run the tests from yesterday&#39;s post that&amp;nbsp;allow you to have the data in separate columns as they are here:&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;color: orange; font-family: Trebuchet MS, sans-serif;&quot;&gt;# independent 2-group t-test&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;color: orange; font-family: Trebuchet MS, sans-serif;&quot;&gt;t.test(y1,y2) # where y1 and y2 are numeric&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;color: orange; font-family: Trebuchet MS, sans-serif;&quot;&gt;# paired t-test&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;color: orange; font-family: Trebuchet MS, sans-serif;&quot;&gt;t.test(y1,y2,paired=TRUE) # where y1 &amp;amp; y2 are numeric&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;color: orange; font-family: Trebuchet MS, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;color: orange; font-family: Trebuchet MS, sans-serif;&quot;&gt;# independent 2-group Mann-Whitney U Test&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;color: orange; font-family: Trebuchet MS, sans-serif;&quot;&gt;wilcox.test(y1,y2) # where y and x are numeric&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;color: orange; font-family: Trebuchet MS, sans-serif;&quot;&gt;# dependent 2-group Wilcoxon Signed Rank Test&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;color: orange; font-family: Trebuchet MS, sans-serif;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;color: orange; font-family: Trebuchet MS, sans-serif;&quot;&gt;wilcox.test(y1,y2,paired=TRUE) # where y1 and y2 are numeric&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;Note that I didn&#39;t need all those comments (lines starting with #) but it was easiest just to copy the whole thing and paste it into R&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;and I got:&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;for the unpaired t-test&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;color: orange; font-family: Trebuchet MS, sans-serif;&quot;&gt;t.test(y1,y2) # where y1 and y2 are numeric&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #3d85c6;&quot;&gt;Welch Two Sample t-test&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;color: #3d85c6; font-family: Trebuchet MS, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;color: #3d85c6; font-family: Trebuchet MS, sans-serif;&quot;&gt;data: &amp;nbsp;y1 and y2&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;color: #3d85c6; font-family: Trebuchet MS, sans-serif;&quot;&gt;t = 1.6719, df = 59.26, p-value = 0.09982&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;color: #3d85c6; font-family: Trebuchet MS, sans-serif;&quot;&gt;alternative hypothesis: true difference in means is not equal to 0&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;color: #3d85c6; font-family: Trebuchet MS, sans-serif;&quot;&gt;95 percent confidence interval:&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;color: #3d85c6; font-family: Trebuchet MS, sans-serif;&quot;&gt;&amp;nbsp;-0.8123965 &amp;nbsp;9.0704610&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;color: #3d85c6; font-family: Trebuchet MS, sans-serif;&quot;&gt;sample estimates:&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;color: #3d85c6; font-family: Trebuchet MS, sans-serif;&quot;&gt;mean of x mean of y&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;color: #3d85c6; font-family: Trebuchet MS, sans-serif;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;color: #3d85c6; font-family: Trebuchet MS, sans-serif;&quot;&gt;&amp;nbsp;173.7742 &amp;nbsp;169.6452&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;for the paired t-test:&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;color: orange; font-family: Trebuchet MS, sans-serif;&quot;&gt;t.test(y1,y2,paired=TRUE) # where y1 &amp;amp; y2 are numeric&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #3d85c6;&quot;&gt;Paired t-test&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;color: #3d85c6; font-family: Trebuchet MS, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;color: #3d85c6; font-family: Trebuchet MS, sans-serif;&quot;&gt;data: &amp;nbsp;y1 and y2&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;color: #3d85c6; font-family: Trebuchet MS, sans-serif;&quot;&gt;t = 6.0619, df = 30, p-value = 1.173e-06&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;color: #3d85c6; font-family: Trebuchet MS, sans-serif;&quot;&gt;alternative hypothesis: true difference in means is not equal to 0&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;color: #3d85c6; font-family: Trebuchet MS, sans-serif;&quot;&gt;95 percent confidence interval:&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;color: #3d85c6; font-family: Trebuchet MS, sans-serif;&quot;&gt;&amp;nbsp;2.737945 5.520120&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;color: #3d85c6; font-family: Trebuchet MS, sans-serif;&quot;&gt;sample estimates:&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;color: #3d85c6; font-family: Trebuchet MS, sans-serif;&quot;&gt;mean of the differences&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;color: #3d85c6; font-family: Trebuchet MS, sans-serif;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;color: #3d85c6; font-family: Trebuchet MS, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;4.129032&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;for the unpaired nonparametric test (Wilcoxon test):&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;&lt;span style=&quot;color: orange;&quot;&gt;wilcox.test(y1,y2) # where y and x are numeric&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #3d85c6;&quot;&gt;Wilcoxon rank sum test with continuity correction&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #3d85c6;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #3d85c6;&quot;&gt;data: &amp;nbsp;y1 and y2&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #3d85c6;&quot;&gt;W = 587.5, p-value = 0.1325&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #3d85c6;&quot;&gt;alternative hypothesis: true location shift is not equal to 0&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #3d85c6;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #3d85c6;&quot;&gt;Warning message:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #3d85c6;&quot;&gt;In wilcox.test.default(y1, y2) : cannot compute exact p-value with ties&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #3d85c6;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;That output (above) is just warning you that there are ties in your data and the p-value will be a somewhat inaccurate.&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #3d85c6;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;and for the paired nonparametric test&amp;nbsp;&lt;/div&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;color: orange; font-family: Trebuchet MS, sans-serif;&quot;&gt;wilcox.test(y1,y2,paired=TRUE) # where y1 and y2 are numeric&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #3d85c6;&quot;&gt;Wilcoxon signed rank test with continuity correction&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;color: #3d85c6; font-family: Trebuchet MS, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;color: #3d85c6; font-family: Trebuchet MS, sans-serif;&quot;&gt;data: &amp;nbsp;y1 and y2&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;color: #3d85c6; font-family: Trebuchet MS, sans-serif;&quot;&gt;V = 325, p-value = 1.139e-05&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;color: #3d85c6; font-family: Trebuchet MS, sans-serif;&quot;&gt;alternative hypothesis: true location shift is not equal to 0&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;color: #3d85c6; font-family: Trebuchet MS, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;color: #3d85c6; font-family: Trebuchet MS, sans-serif;&quot;&gt;Warning messages:&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;color: #3d85c6; font-family: Trebuchet MS, sans-serif;&quot;&gt;1: In wilcox.test.default(y1, y2, paired = TRUE) :&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;color: #3d85c6; font-family: Trebuchet MS, sans-serif;&quot;&gt;&amp;nbsp; cannot compute exact p-value with ties&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;color: #3d85c6; font-family: Trebuchet MS, sans-serif;&quot;&gt;2: In wilcox.test.default(y1, y2, paired = TRUE) :&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;color: #3d85c6; font-family: Trebuchet MS, sans-serif;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;color: #3d85c6; font-family: Trebuchet MS, sans-serif;&quot;&gt;&amp;nbsp; cannot compute exact p-value with zeroes&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;Again, the warnings are just to notify you that the p-value will be somewhat inaccurate.&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;Finally it might be useful to look at the distribution of the paired differences:&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: orange; font-family: Trebuchet MS, sans-serif;&quot;&gt;y3=y1-y2&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: orange; font-family: Trebuchet MS, sans-serif;&quot;&gt;boxplot(y3, notch=TRUE)&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;Above I have calculated a new variable, y3, by subtracting y2 from y1. In this notation, R is subtracting one vector (column) from the other at each row of the data. The result is the&amp;nbsp;difference between y1 and y2 for each person and the&amp;nbsp;box plot, below plots the distribution of those differences, which you can see is not zero, and since the 95%CL does not overlap with zero we can say that there is strong evidence that the difference between MaxPulse and Run Pulse is not zero (i.e., that they are significantly different).&lt;/span&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://2.bp.blogspot.com/-zT5KowdnztI/UnxJHZ89SXI/AAAAAAAAEUg/JqMeu7N57ZQ/s1600/box2.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;238&quot; src=&quot;http://2.bp.blogspot.com/-zT5KowdnztI/UnxJHZ89SXI/AAAAAAAAEUg/JqMeu7N57ZQ/s320/box2.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;NOTE: if you followed along through this R exercise you might&amp;nbsp;realise that you can just set up whatever file you like as dat, then copy and paste all of the code above to do all of the required analyses and get the two (fairly nice) plots.&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vstats.blogspot.com/feeds/2667323991039159152/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=33859018&amp;postID=2667323991039159152&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/33859018/posts/default/2667323991039159152'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/33859018/posts/default/2667323991039159152'/><link rel='alternate' type='text/html' href='http://vstats.blogspot.com/2013/11/r-example.html' title='R example'/><author><name>Bob Montgomerie</name><uri>http://www.blogger.com/profile/13895677746615571939</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://1.bp.blogspot.com/-ekqZMGoG8Ls/Unv8Dq2k_zI/AAAAAAAAEUQ/hx4TBkXVaEY/s72-c/boxes.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-33859018.post-952739348402877490</id><published>2013-11-06T21:00:00.000-05:00</published><updated>2013-11-09T20:27:39.117-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Assignments"/><category scheme="http://www.blogger.com/atom/ns#" term="JMP"/><category scheme="http://www.blogger.com/atom/ns#" term="R"/><title type='text'>Two sample comparisons</title><content type='html'>Using R and JMP to do some two sample comparisons, using the &lt;b&gt;Fitness&lt;/b&gt; sample data set from JMP to compare the maximum and running pulse rates of 50 people.&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://4.bp.blogspot.com/-UvSaqYHjkpQ/UnrsoIy-VQI/AAAAAAAAES8/bS3uWC6eTWU/s1600/Fitnessdata.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;123&quot; src=&quot;http://4.bp.blogspot.com/-UvSaqYHjkpQ/UnrsoIy-VQI/AAAAAAAAES8/bS3uWC6eTWU/s400/Fitnessdata.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;b&gt;USING JMP&lt;/b&gt;&lt;br /&gt;&lt;b&gt;Paired tests&lt;/b&gt;&lt;br /&gt;select &lt;b&gt;Analyze&amp;gt;Matched Pairs&lt;/b&gt; and put the columns of matched (paired) data into&lt;b&gt; Y, Paired Response&lt;/b&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://1.bp.blogspot.com/-Xc8MWm1mq0w/UnrtinwGiVI/AAAAAAAAETE/_bqGMEfuVR4/s1600/CapturFiles-06-31-2013_08.31.15.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;185&quot; src=&quot;http://1.bp.blogspot.com/-Xc8MWm1mq0w/UnrtinwGiVI/AAAAAAAAETE/_bqGMEfuVR4/s400/CapturFiles-06-31-2013_08.31.15.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;select from the red triangle &lt;b&gt;Plot Dif by Mean&lt;/b&gt; and &lt;b&gt;Wilcoxon Signed Rank&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://4.bp.blogspot.com/-Fv8vz9Y7yB0/UnruSt8zH3I/AAAAAAAAETM/IWqe-FKsx6M/s1600/CapturFiles-06-33-2013_08.33.29.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;400&quot; src=&quot;http://4.bp.blogspot.com/-Fv8vz9Y7yB0/UnruSt8zH3I/AAAAAAAAETM/IWqe-FKsx6M/s400/CapturFiles-06-33-2013_08.33.29.png&quot; width=&quot;221&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;The important bits are indicated with blue arrows: two-tailed P values, test statistics (t and S), sample size (N), and the actual difference between the paired means.&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;/div&gt;&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;b&gt;Unpaired Comparisons&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;To do this you have to have all the data in one column, and a separate column that labels which is which:&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://4.bp.blogspot.com/-ElbOxz4H7Yg/UnrvbdQj6KI/AAAAAAAAETY/r1-M4Ut1Zc4/s1600/CapturFiles-06-39-2013_08.39.44.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;125&quot; src=&quot;http://4.bp.blogspot.com/-ElbOxz4H7Yg/UnrvbdQj6KI/AAAAAAAAETY/r1-M4Ut1Zc4/s320/CapturFiles-06-39-2013_08.39.44.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;This time, select &lt;b&gt;Analyze&amp;gt;Fit Y by X&lt;/b&gt;, and put the response (data) in &lt;b&gt;Y, Response&lt;/b&gt; and the predictor (label) in &lt;b&gt;X, Factor&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://1.bp.blogspot.com/-vKZNfo6V2PA/UnrwAfVOaYI/AAAAAAAAETg/hogEib_g6BQ/s1600/CapturFiles-06-41-2013_08.41.39.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;208&quot; src=&quot;http://1.bp.blogspot.com/-vKZNfo6V2PA/UnrwAfVOaYI/AAAAAAAAETg/hogEib_g6BQ/s320/CapturFiles-06-41-2013_08.41.39.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;Select from the red triangle &lt;b&gt;Means/Anova/Pooled t &lt;/b&gt;and &lt;b&gt;t Test&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://1.bp.blogspot.com/-10x7HYg1Izk/UnrwwKowniI/AAAAAAAAETs/m-WAgn0oKA4/s1600/CapturFiles-06-44-2013_08.44.30.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;400&quot; src=&quot;http://1.bp.blogspot.com/-10x7HYg1Izk/UnrwwKowniI/AAAAAAAAETs/m-WAgn0oKA4/s400/CapturFiles-06-44-2013_08.44.30.png&quot; width=&quot;238&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;The t-test under &lt;b&gt;Oneway Anova &lt;/b&gt;assumes that the variances of &lt;b&gt;RunPulse&lt;/b&gt; and &lt;b&gt;MaxPulse&lt;/b&gt; are equal, whereas under &lt;b&gt;t Test&lt;/b&gt; it assumes they are not equal.&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;NOTE: ignore the sign of the t-statistic and don&#39;t bother putting a negative sign in front of it when you report it: t = 1.7, in this case&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;You can test whether the variances are equal by selecting &lt;b&gt;Unequal Variances&lt;/b&gt; under the red triangle:&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://2.bp.blogspot.com/-Rc0pT-uAu3c/Unrx2PQAy0I/AAAAAAAAET4/CHtAlIld_q0/s1600/CapturFiles-06-50-2013_08.50.01.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;400&quot; src=&quot;http://2.bp.blogspot.com/-Rc0pT-uAu3c/Unrx2PQAy0I/AAAAAAAAET4/CHtAlIld_q0/s400/CapturFiles-06-50-2013_08.50.01.png&quot; width=&quot;300&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;and you can see above that all 5 different tests for equality of variances are not significant (P&amp;gt;&amp;gt;0.05) so that means the variances are not sig diff (so they are equal)&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;To get the nonparametric test select Nonparametric&amp;gt;Wilcoxon Test under the red triangle:&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://2.bp.blogspot.com/-JkaTZzPkbqw/UnryjyQldOI/AAAAAAAAEUA/9fO_P9pb6Dk/s1600/CapturFiles-06-52-2013_08.52.46.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;229&quot; src=&quot;http://2.bp.blogspot.com/-JkaTZzPkbqw/UnryjyQldOI/AAAAAAAAEUA/9fO_P9pb6Dk/s320/CapturFiles-06-52-2013_08.52.46.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;this shows S = 869.5, P = 0.13, so not sig diff&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;b&gt;USING R&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;Here is some useful R Code for the same dataset as above, with RunPulse (y1, below) and MaxPulse (y2, below) in separate columns. I will do these analyses and post results tomorrow, so you can see exactly what to do and how to interpret what you get. &amp;nbsp;If you define y1 and y2 correctly, you just have to copy the code below and paste into R and hit return to get everything at once (one of the beauties of R.&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;/div&gt;&lt;div style=&quot;overflow: auto;&quot;&gt;&lt;div class=&quot;geshifilter&quot;&gt;&lt;pre class=&quot;r geshifilter-R&quot; style=&quot;font-family: monospace;&quot;&gt;&lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt;# independent 2-group t-test&lt;/span&gt;&lt;br /&gt;&lt;a href=&quot;http://inside-r.org/r-doc/stats/t.test&quot;&gt;&lt;span style=&quot;color: #003399; font-weight: bold;&quot;&gt;t.test&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color: #009900;&quot;&gt;(&lt;/span&gt;y~x&lt;span style=&quot;color: #009900;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt;# where y is numeric and x is a binary factor&lt;/span&gt;&lt;br /&gt;&amp;nbsp;&lt;br /&gt;&lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt;# independent 2-group t-test&lt;/span&gt;&lt;br /&gt;&lt;a href=&quot;http://inside-r.org/r-doc/stats/t.test&quot;&gt;&lt;span style=&quot;color: #003399; font-weight: bold;&quot;&gt;t.test&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color: #009900;&quot;&gt;(&lt;/span&gt;y1&lt;span style=&quot;color: #339933;&quot;&gt;,&lt;/span&gt;y2&lt;span style=&quot;color: #009900;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt;# where y1 and y2 are numeric&lt;/span&gt;&lt;br /&gt;&amp;nbsp;&lt;br /&gt;&lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt;# paired t-test&lt;/span&gt;&lt;br /&gt;&lt;a href=&quot;http://inside-r.org/r-doc/stats/t.test&quot;&gt;&lt;span style=&quot;color: #003399; font-weight: bold;&quot;&gt;t.test&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color: #009900;&quot;&gt;(&lt;/span&gt;y1&lt;span style=&quot;color: #339933;&quot;&gt;,&lt;/span&gt;y2&lt;span style=&quot;color: #339933;&quot;&gt;,&lt;/span&gt;paired=&lt;span style=&quot;color: black; font-weight: bold;&quot;&gt;TRUE&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt;# where y1 &amp;amp; y2 are numeric&lt;/span&gt;&lt;br /&gt;&amp;nbsp;&lt;br /&gt;&lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt;# independent 2-group Mann-Whitney U Test &lt;/span&gt;&lt;br /&gt;&lt;a href=&quot;http://inside-r.org/r-doc/stats/wilcox.test&quot;&gt;&lt;span style=&quot;color: #003399; font-weight: bold;&quot;&gt;wilcox.test&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color: #009900;&quot;&gt;(&lt;/span&gt;y~A&lt;span style=&quot;color: #009900;&quot;&gt;)&lt;/span&gt;  &lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt;# where y is numeric and A is A binary factor&lt;/span&gt;&lt;br /&gt;&amp;nbsp;&lt;br /&gt;&lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt;# independent 2-group Mann-Whitney U Test&lt;/span&gt;&lt;br /&gt;&lt;a href=&quot;http://inside-r.org/r-doc/stats/wilcox.test&quot;&gt;&lt;span style=&quot;color: #003399; font-weight: bold;&quot;&gt;wilcox.test&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color: #009900;&quot;&gt;(&lt;/span&gt;y&lt;span style=&quot;color: #339933;&quot;&gt;,&lt;/span&gt;x&lt;span style=&quot;color: #009900;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt;# where y and x are numeric&lt;/span&gt;&lt;br /&gt;&amp;nbsp;&lt;br /&gt;&lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt;# dependent 2-group Wilcoxon Signed Rank Test &lt;/span&gt;&lt;br /&gt;&lt;a href=&quot;http://inside-r.org/r-doc/stats/wilcox.test&quot;&gt;&lt;span style=&quot;color: #003399; font-weight: bold;&quot;&gt;wilcox.test&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color: #009900;&quot;&gt;(&lt;/span&gt;y1&lt;span style=&quot;color: #339933;&quot;&gt;,&lt;/span&gt;y2&lt;span style=&quot;color: #339933;&quot;&gt;,&lt;/span&gt;paired=&lt;span style=&quot;color: black; font-weight: bold;&quot;&gt;TRUE&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt;# where y1 and y2 are numeric&lt;/span&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://vstats.blogspot.com/feeds/952739348402877490/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=33859018&amp;postID=952739348402877490&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/33859018/posts/default/952739348402877490'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/33859018/posts/default/952739348402877490'/><link rel='alternate' type='text/html' href='http://vstats.blogspot.com/2013/11/two-sample-comparisons.html' title='Two sample comparisons'/><author><name>Bob Montgomerie</name><uri>http://www.blogger.com/profile/13895677746615571939</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://4.bp.blogspot.com/-UvSaqYHjkpQ/UnrsoIy-VQI/AAAAAAAAES8/bS3uWC6eTWU/s72-c/Fitnessdata.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-33859018.post-9165565246487993680</id><published>2013-11-04T18:47:00.001-05:00</published><updated>2013-11-04T19:17:07.439-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Quiz"/><category scheme="http://www.blogger.com/atom/ns#" term="schedule"/><title type='text'>QUIZZES</title><content type='html'>&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;For the rest of this course, Monday quizzes will all be online, on Moodle. I am just learning the ropes of on-line quizzes so today&#39;s is a bit lame but next week&#39;s will be awesome.&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;Quizzes will be made available to you at 2:30 pm on Monday&#39;s right after class, and you will be allowed 30 min to answer all the questions. Any questions answered in that 30 min period will be automatically saved by Moodle. The deadline is 5 pm Tuesdays so you must complete the quiz before that time as access will be denied thereafter.&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;I would strongly recommend that you download any datasets associated with the quiz and load them up into your favourite stats analysis program before you begin the quiz.&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;Marks for each quiz should be available the next day, along with a list of the correct answers.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;To provide you with a chance to test yourself on the material from the final week of the course, I may provide a quiz on the Monday following the last class, but I will give you details during that final week.&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://vstats.blogspot.com/feeds/9165565246487993680/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=33859018&amp;postID=9165565246487993680&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/33859018/posts/default/9165565246487993680'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/33859018/posts/default/9165565246487993680'/><link rel='alternate' type='text/html' href='http://vstats.blogspot.com/2013/11/quizzes.html' title='QUIZZES'/><author><name>Bob Montgomerie</name><uri>http://www.blogger.com/profile/13895677746615571939</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-33859018.post-4410826818834603427</id><published>2013-11-03T14:26:00.002-05:00</published><updated>2013-11-04T19:16:01.484-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="R"/><title type='text'>Starting to Work with R</title><content type='html'>&lt;div&gt;&lt;br /&gt;&lt;/div&gt;R is an excellent program for data analysis and statistical computing and we are going to try to introduce you to some of its features in the remainder of the course. R is particularly useful because:&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;it&#39;s free, open source, always available&lt;/li&gt;&lt;li&gt;it has a huge user and developer base so it&#39;s always up-to-date and getting better and more useful every day&lt;/li&gt;&lt;li&gt;it is THE statistical program for statisticians and data analysts everywhere&lt;/li&gt;&lt;li&gt;it allows you to keep a continuous record of your work, so you can always go back and repeat/.evaluate exactly what you have done&lt;/li&gt;&lt;li&gt;it makes top-notch graphs&lt;/li&gt;&lt;li&gt;there is a ton of info available on-line, including help sites, blogs, video tutorials and on-line analysis tools using R; there are also dozens of books available including a pretty good and relatively new &quot;R For Dummies&quot; and &quot;Getting Started with R: an Introduction for Biologists&quot;&lt;/li&gt;&lt;/ul&gt;&lt;div&gt;To get started with R, do the following:&lt;/div&gt;&lt;div&gt;&lt;ol&gt;&lt;li&gt;go to the &lt;a href=&quot;http://www.r-project.org/&quot; target=&quot;_blank&quot;&gt;&lt;b&gt;R Project&lt;/b&gt;&lt;/a&gt; site; download and install the latest version of R for your operating system&lt;/li&gt;&lt;li&gt;go to the &lt;a href=&quot;http://www.rstudio.com/ide/download/&quot; target=&quot;_blank&quot;&gt;&lt;b&gt;RStudio site&lt;/b&gt;&lt;/a&gt; and install that too (note that if you have the latest Mac OS, called Mavericks, you need to install a special version of RStudio, available &lt;a href=&quot;http://support.rstudio.org/help/kb/advanced/using-rstudio-with-mac-os-x-109-mavericks&quot; target=&quot;_blank&quot;&gt;&lt;b&gt;here&lt;/b&gt;&lt;/a&gt;&lt;/li&gt;&lt;li&gt;run Rstudio and you will see that it is a shell for R that lets you run R without actually opening R itself. You can just run R alone if you want but I find the RSudio environment more useful&lt;/li&gt;&lt;li&gt;play around with RStudio to see how it works and all the options available. Type 4+3 into the console and hit return. R is a very useful and powerful calculator&lt;/li&gt;&lt;li&gt;check out the following useful websites&lt;/li&gt;&lt;ul&gt;&lt;li&gt;&lt;a href=&quot;http://www.statmethods.net/index.html&quot; target=&quot;_blank&quot;&gt;&lt;b&gt;Quick-R:&lt;/b&gt;&lt;/a&gt; lots of useful instructions and scripts for all the analyses we will do in this course&lt;/li&gt;&lt;li&gt;&lt;b&gt;&lt;a href=&quot;http://homes.msi.ucsb.edu/~byrnes/rtutorial.html&quot; target=&quot;_blank&quot;&gt;R tutorial:&lt;/a&gt;&lt;/b&gt; this is a bit out of date but useful for beginners&lt;/li&gt;&lt;li&gt;&lt;b&gt;&lt;a href=&quot;http://cran.r-project.org/doc/contrib/Lemon-kickstart/index.html&quot; target=&quot;_blank&quot;&gt;Kickstarting R: &lt;/a&gt;&lt;/b&gt;lots of useful stuff&lt;/li&gt;&lt;li&gt;&lt;b&gt;&lt;a href=&quot;http://data.princeton.edu/R/&quot; target=&quot;_blank&quot;&gt;Introducing R:&lt;/a&gt;&lt;/b&gt; an online book&lt;/li&gt;&lt;li&gt;&lt;b&gt;&lt;a href=&quot;http://cran.r-project.org/web/views/index.html&quot; target=&quot;_blank&quot;&gt;Task Views: &lt;/a&gt;&lt;/b&gt;advanced, but interesting listing of many of the kinds of things you can do with R&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://www.r-bloggers.com/&quot; target=&quot;_blank&quot;&gt;&lt;b&gt;R-bloggers:&lt;/b&gt;&lt;/a&gt; tons of links to blog posts on R, most of which are about fairly advanced topics well beyond the scope of this course; worth looking at to see how versatile R is&lt;/li&gt;&lt;/ul&gt;&lt;/ol&gt;To see some examples of cool graphs that you can plot in R, type &lt;b&gt;demo(graphics) &lt;/b&gt;in the R console window&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vstats.blogspot.com/feeds/4410826818834603427/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=33859018&amp;postID=4410826818834603427&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/33859018/posts/default/4410826818834603427'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/33859018/posts/default/4410826818834603427'/><link rel='alternate' type='text/html' href='http://vstats.blogspot.com/2013/11/starting-to-work-with-r.html' title='Starting to Work with R'/><author><name>Bob Montgomerie</name><uri>http://www.blogger.com/profile/13895677746615571939</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-33859018.post-7316276144596830198</id><published>2013-11-03T12:13:00.001-05:00</published><updated>2013-11-04T19:15:49.930-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="schedule"/><title type='text'>What lies ahead</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://seriable.com/wp-content/uploads/2011/10/what-lies-ahead-600x333.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;110&quot; src=&quot;http://seriable.com/wp-content/uploads/2011/10/what-lies-ahead-600x333.jpg&quot; width=&quot;200&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;We will be making some changes to the quiz structure this week, but the assignments will continue as usual until the end of term. So this is what lies ahead that you will be marked on:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;QUIZ: 4 more, one each Monday&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;ASSIGNMENTS: 4 more, one due each Friday&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;PROJECT B: due a week after the end of classes&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Our learning schedule will follow the textbook, &#39;skipping&#39; (or at least skimming) some chapters. Here&#39;s what we are going to focus on:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;ul&gt;&lt;li&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Week 9 (this week):&amp;nbsp;&lt;b&gt;two sample comparisons&lt;/b&gt;, chapters 12 and 13 in the&amp;nbsp;textbook, plus the interleaf on pp 315-317. We are skipping/skimming over chapters 10 and 11.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Week 10:&amp;nbsp;&lt;b&gt;comparing more than two groups&lt;/b&gt;, textbook chapter 15, with a bit from chapter 14 on the design of experiments&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Week 11: &lt;b&gt;correlation&lt;/b&gt;, textbook chapter 16, plus interleaf 9 on experimental and statistical mistakes&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Week 12: &lt;b&gt;regression&lt;/b&gt;, textbook chapter 17.&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Project B covers all of this material but you should be able to get started with data collection right away and keep&amp;nbsp;analysing data as we go. Don&#39;t forget about using the tutorial sessions to get help.&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vstats.blogspot.com/feeds/7316276144596830198/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=33859018&amp;postID=7316276144596830198&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/33859018/posts/default/7316276144596830198'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/33859018/posts/default/7316276144596830198'/><link rel='alternate' type='text/html' href='http://vstats.blogspot.com/2013/11/what-lies-ahead.html' title='What lies ahead'/><author><name>Bob Montgomerie</name><uri>http://www.blogger.com/profile/13895677746615571939</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-33859018.post-1532723557623433575</id><published>2013-11-02T11:53:00.004-04:00</published><updated>2013-11-07T10:55:08.772-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Assignments"/><title type='text'>Week 9: Comparing two samples, and R</title><content type='html'>&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;This week we begin the final third of the course in which we will explore statistics tests of (mostly) continuously distributed data, where the past two weeks we have focused on tests of counts and frequencies. We will also dip our toes in the vast lake of R.&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Verdana, sans-serif; line-height: 18px;&quot;&gt;QUIZ: in Monday&#39;s class, I will introduce a new type of quiz that we will probably use for the rest of the course. This week it will be based mainly on chapter 9 in the textbook, but for the rest of the term will cover the entire course so far.&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Verdana, sans-serif; line-height: 18px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;div class=&quot;post-body entry-content&quot; id=&quot;post-body-3251890376316646984&quot; itemprop=&quot;description articleBody&quot; style=&quot;background-color: white; position: relative; width: 586px;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;color: #444444;&quot;&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;HOMEWORK: We are going to skip over doing problems and assignments based on chapters 10 and 11 in the text but you should read them over so that you have at least a vague appreciation of that material because it forms the basis for what we will be doing&amp;nbsp;for the rest of the term.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;color: #444444;&quot;&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;post-body entry-content&quot; id=&quot;post-body-3251890376316646984&quot; itemprop=&quot;description articleBody&quot; style=&quot;background-color: white; position: relative; width: 586px;&quot;&gt;&lt;span style=&quot;color: #444444; font-family: Verdana, sans-serif; line-height: 18px;&quot;&gt;This week&#39;s focus for study, practice, and assignment are chapters Chapter 12 and 13 in the textbook.&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #444444; font-family: Verdana, sans-serif; line-height: 18px;&quot;&gt;You should also read, study, understand, and have a good working knowledge of the INTERLEAF on pages 315-317. I will provide a handout that&amp;nbsp;summarises some of this interleaf material.&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #444444; font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;Chapters 12 and 13 take us into the worlds of parametric and nonparametric statistics by covering the myriad ways that&amp;nbsp;you can compare two samples.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #444444; font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;post-body entry-content&quot; id=&quot;post-body-3251890376316646984&quot; itemprop=&quot;description articleBody&quot; style=&quot;background-color: white; color: #444444; line-height: 18px; position: relative; width: 586px;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;PRACTICE EXERCISES: chapter 12, problems 9, 11 and 13 PLUS chapter 13 problems 12 and 14. See below the fold.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;post-body entry-content&quot; id=&quot;post-body-3251890376316646984&quot; itemprop=&quot;description articleBody&quot; style=&quot;background-color: white; color: #444444; line-height: 18px; position: relative; width: 586px;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;ASSIGNMENT:&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Verdana, sans-serif; text-align: center;&quot;&gt;&lt;b&gt;DUE before 11:30 on Friday 8 November, uploaded as PDF to Moodle and with the filename in the usual format&lt;/b&gt;&lt;/span&gt;&lt;b style=&quot;color: red; font-family: Verdana, sans-serif; text-align: center;&quot;&gt;.&amp;nbsp;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;post-body entry-content&quot; id=&quot;post-body-3251890376316646984&quot; itemprop=&quot;description articleBody&quot; style=&quot;background-color: white; color: #444444; line-height: 18px; position: relative; text-align: center; width: 586px;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;b style=&quot;color: red;&quot;&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;b&gt;PRACTICE EXERCISES&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Chapter 12&lt;/span&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://4.bp.blogspot.com/-wV_G1PwNX5Q/UnUQ3Vd2dEI/AAAAAAAAESU/plkPODFpsRY/s1600/p9.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;http://4.bp.blogspot.com/-wV_G1PwNX5Q/UnUQ3Vd2dEI/AAAAAAAAESU/plkPODFpsRY/s320/p9.png&quot; width=&quot;173&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://2.bp.blogspot.com/-wzJ8bIA66Nc/UnUQ3XpWRwI/AAAAAAAAESQ/bhPvx-h6-_4/s1600/p11.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;http://2.bp.blogspot.com/-wzJ8bIA66Nc/UnUQ3XpWRwI/AAAAAAAAESQ/bhPvx-h6-_4/s320/p11.png&quot; width=&quot;141&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://3.bp.blogspot.com/-uXrmfkmCyik/UnUQ3TRWXjI/AAAAAAAAESY/vqyZUb01zR4/s1600/p13c11.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;http://3.bp.blogspot.com/-uXrmfkmCyik/UnUQ3TRWXjI/AAAAAAAAESY/vqyZUb01zR4/s320/p13c11.png&quot; width=&quot;169&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Chapter 13&lt;/span&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://4.bp.blogspot.com/-3gFX23usUas/UnUOgmXruMI/AAAAAAAAESA/NPmb6rS1rCA/s1600/p12.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;640&quot; src=&quot;http://4.bp.blogspot.com/-3gFX23usUas/UnUOgmXruMI/AAAAAAAAESA/NPmb6rS1rCA/s640/p12.png&quot; width=&quot;235&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://3.bp.blogspot.com/-Lv9Cu0iqPJc/UnUOgvVzVwI/AAAAAAAAER8/Y8bsAaFHug4/s1600/p14.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;245&quot; src=&quot;http://3.bp.blogspot.com/-Lv9Cu0iqPJc/UnUOgvVzVwI/AAAAAAAAER8/Y8bsAaFHug4/s320/p14.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;b&gt;ASSIGNMENT&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;NOTE: in each case, be sure you inspect the data before&amp;nbsp;analysing it, and report the results of your analyses using the standard reporting method described in an earlier post. I am well aware that this is a big assignment, and I will provide&amp;nbsp;instruction in class on Monday and Wednesday as well as various details here on the blog.&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;I. Using the Sleep dataset from Assignment 3, available on Moodle for the week of 30 September. To do this analysis you need to ensure that Predation levels are coded as Nominal and NOT a Continuous variable, whether you are doing this analysis in JMP or R, or whatever.&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;a. compare the average amount sleep (TotalSleep) obtained by mammals with Predation levels 2 (low) and 5 (high). Provide a biological interpretation of your results, as well as a&amp;nbsp;statistical interpretation.&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;b. compare the amount of sleep&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;obtained by mammals with Predation levels 1 (lowest) and 5 (highest).&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Provide a biological interpretation of your results, as well as a&amp;nbsp;statical interpretation.&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;c. Briefly compare your findings from a and b&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;II. using that same sleep dataset, compare the average amount of time spent dreaming and not dreaming. Note that you have data for these two&amp;nbsp;variables for each species so you can do a paired comparison.&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;a. report the results and interpretation of parametric and nonparametric tests.&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;b.&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Which test is best for these data, and why?&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;table cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;float: right; margin-left: 1em; text-align: right;&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;http://www.allaboutbirds.org/guide/PHOTO/LARGE/house_finch_51.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: right; margin-bottom: 1em; margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;200&quot; src=&quot;http://www.allaboutbirds.org/guide/PHOTO/LARGE/house_finch_51.jpg&quot; width=&quot;180&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Male House Finch&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;III. In the textbook chapter 13 Assignment question 16 (see below), an experiment is described with zebra finches. We did&amp;nbsp;exactly the same experiment with house finches and got the data in the file hofi.csv on Moodle.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;a. does the mean PHA differ&amp;nbsp;between the birds that received carotenoid&amp;nbsp;supplements and&amp;nbsp;those that did not get the supplements?&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;b. did mean SRBC differ between those two groups?&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;c. do both parametric and nonparametric tests for a and b and compare your results. Explain why the results are different, or why they are not different.&lt;/span&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://2.bp.blogspot.com/-_-AMZsHhqPg/UnUSei-A93I/AAAAAAAAESs/cuaSE7pmUa0/s1600/ch13q16.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em; text-align: center;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;400&quot; src=&quot;http://2.bp.blogspot.com/-_-AMZsHhqPg/UnUSei-A93I/AAAAAAAAESs/cuaSE7pmUa0/s400/ch13q16.png&quot; width=&quot;248&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vstats.blogspot.com/feeds/1532723557623433575/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=33859018&amp;postID=1532723557623433575&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/33859018/posts/default/1532723557623433575'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/33859018/posts/default/1532723557623433575'/><link rel='alternate' type='text/html' href='http://vstats.blogspot.com/2013/11/week-9-comparing-two-samples-and-r.html' title='Week 9: Comparing two samples, and R'/><author><name>Bob Montgomerie</name><uri>http://www.blogger.com/profile/13895677746615571939</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://4.bp.blogspot.com/-wV_G1PwNX5Q/UnUQ3Vd2dEI/AAAAAAAAESU/plkPODFpsRY/s72-c/p9.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-33859018.post-8261368001925203485</id><published>2013-11-01T20:53:00.002-04:00</published><updated>2013-11-04T19:15:15.537-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="projects"/><title type='text'>Project B</title><content type='html'>&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;For this second Project, collect the same data from three different populations. For each ’individual’ obtain data for two different traits that vary continuously and that you have good reason to think might be related, positively or negatively. You can either measure things yourself, or take data from the web. Whatever you decide to study you must sample the populations rather than taking all of the data available. See examples below but you are not allowed to use these particular datasets.&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;Answer the following questions about the data collected:&lt;/span&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;for each trait, do the mean values differ between populations?&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;within each population is there any relation between the two traits? What is the equation to predict one trait from the other in each population (even if the relation is not statistically significant)?&amp;nbsp;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;do the slopes of the relations between the two traits differ between populations?&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;what is the predicted value (+/- 95%CL) of the response variable at the median of the predictor variable for each of the relations between response and predictor (for each population)?&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;what do you conclude from this study&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;Write a brief report in the typical format for a scientific paper: title, abstract, introduction, methods, results, discussion, and references (if any). You do not have to answer the questions above in any particular order, just collect and&amp;nbsp;analyse your data so that&amp;nbsp;you can address those questions in your Results. The abstract and intro need only be be 2-3 sentences each. The data and analyses should be summarized in graphs and tables as much as possible. You must include graphs showing the means and 95%CL for each trait in each population, organized to facilitate comparisons, plus scatter plots of the response and predictor for each population, including the regression lines. Include references if these will help to make the discussion more useful include enough details in your methods that someone else could repeat your study and analyses.&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;Submit on Moodle as a PDF plus a .csv file of all the raw data before noon on 6 December 2013. Your mark will be based in the clarity of your report, the correctness of your analyses, the quality of your graphs, and the thoughtfulness of your Discussion.&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;&lt;b&gt;EXAMPLES&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;1. Get data on the salary and the number of years of experience of players in professional soccer, with data from the English premier league, the Spanish league and the Italian league. There are lots of plays so I might be inclined to use a stratified random sampling, randomly sampling 5 players from each team.&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;2. Measure the length of leaf and petiole on the leaves of 3 different but closely related tree species. I would sample haphazardly taking one leaf from each of 25 different trees scattered around Kingston.&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;3. Measure the relation between basal metabolic rate and body mass in rodents, carnivores, and ungulates (data available online). Randomly choose 25 species from each group for analysis.&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://vstats.blogspot.com/feeds/8261368001925203485/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=33859018&amp;postID=8261368001925203485&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/33859018/posts/default/8261368001925203485'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/33859018/posts/default/8261368001925203485'/><link rel='alternate' type='text/html' href='http://vstats.blogspot.com/2013/11/project-b.html' title='Project B'/><author><name>Bob Montgomerie</name><uri>http://www.blogger.com/profile/13895677746615571939</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-33859018.post-4289801059265076755</id><published>2013-10-30T20:55:00.004-04:00</published><updated>2013-11-04T19:15:37.355-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Assignments"/><category scheme="http://www.blogger.com/atom/ns#" term="JMP"/><title type='text'>Contingency Table Analysis in JMP</title><content type='html'>&lt;div class=&quot;MsoNormal&quot; style=&quot;mso-layout-grid-align: none; tab-stops: 36.0pt 72.0pt 108.0pt; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-size: 13.0pt; mso-bidi-font-size: 12.0pt;&quot;&gt;In JMP, it would be tempting to set up a 2x2 table like this&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://3.bp.blogspot.com/-rKqWzuUSmAo/UnGqPaM28OI/AAAAAAAAERg/HtrJ3X2buvc/s1600/step1.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;85&quot; src=&quot;http://3.bp.blogspot.com/-rKqWzuUSmAo/UnGqPaM28OI/AAAAAAAAERg/HtrJ3X2buvc/s320/step1.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;mso-layout-grid-align: none; tab-stops: 28.0pt 56.0pt 84.0pt 112.0pt 140.0pt 168.0pt 196.0pt 224.0pt 252.0pt 280.0pt 308.0pt 336.0pt; text-autospace: none;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;mso-layout-grid-align: none; tab-stops: 36.0pt 72.0pt 108.0pt; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-size: 13.0pt; mso-bidi-font-size: 12.0pt;&quot;&gt;but that would not work. The correct setup is with two columns of categorical data and one of counts&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://1.bp.blogspot.com/-6LW3LuP6qHw/UnGqPdMhzCI/AAAAAAAAERc/2DG53WBg6fM/s1600/step2.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://1.bp.blogspot.com/-6LW3LuP6qHw/UnGqPdMhzCI/AAAAAAAAERc/2DG53WBg6fM/s1600/step2.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;mso-layout-grid-align: none; tab-stops: 36.0pt 72.0pt 108.0pt; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-size: 13.0pt; mso-bidi-font-size: 12.0pt;&quot;&gt;Then choose Fit Y by X and set up the dialog box like this&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://1.bp.blogspot.com/-qIvGctSgu94/UnGqPeXQf3I/AAAAAAAAERk/CdhxkzR4X5Y/s1600/step3.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;152&quot; src=&quot;http://1.bp.blogspot.com/-qIvGctSgu94/UnGqPeXQf3I/AAAAAAAAERk/CdhxkzR4X5Y/s320/step3.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: 13.0pt; mso-bidi-font-size: 12.0pt;&quot;&gt;and you will get this&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://4.bp.blogspot.com/-z5tuMwLVf88/UnGqP3JkogI/AAAAAAAAERw/rWkA0_5POBc/s1600/step4.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;400&quot; src=&quot;http://4.bp.blogspot.com/-z5tuMwLVf88/UnGqP3JkogI/AAAAAAAAERw/rWkA0_5POBc/s400/step4.png&quot; width=&quot;307&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;use the red triangle beside &lt;b&gt;Contingency Table&lt;/b&gt; to get further options.&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vstats.blogspot.com/feeds/4289801059265076755/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=33859018&amp;postID=4289801059265076755&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/33859018/posts/default/4289801059265076755'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/33859018/posts/default/4289801059265076755'/><link rel='alternate' type='text/html' href='http://vstats.blogspot.com/2013/10/contingency-table-analysis-in-jmp.html' title='Contingency Table Analysis in JMP'/><author><name>Bob Montgomerie</name><uri>http://www.blogger.com/profile/13895677746615571939</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://3.bp.blogspot.com/-rKqWzuUSmAo/UnGqPaM28OI/AAAAAAAAERg/HtrJ3X2buvc/s72-c/step1.png" height="72" width="72"/><thr:total>0</thr:total></entry></feed>