<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/252597</link>
    <title>MATLAB Central Newsreader - setting up groups for anova1 -large for loop issue</title>
    <description>Feed for thread: setting up groups for anova1 -large for loop issue</description>
    <language>en-us</language>
    <copyright>&amp;copy;1994-2012 by MathWorks, Inc.</copyright>
    <webmaster>webmaster@mathworks.com</webmaster>
    <generator>MATLAB Central Newsreader</generator>
    <docs>http://blogs.law.harvard.edu/tech/rss</docs>
    <ttl>60</ttl>
    <image>
      <title>MathWorks</title>
      <url>http://www.mathworks.com/images/membrane_icon.gif</url>
    </image>
    <item>
      <pubDate>Mon, 01 Jun 2009 07:02:02 -0400</pubDate>
      <title>setting up groups for anova1 -large for loop issue</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/252597#653722</link>
      <author>Farah </author>
      <description>I have to conduct anova1 on log2ratios (microarray) that I am binning in to various segments based on biological selection. I have managed to set this up though it was tedious to do. I basically have 89 segments some with only 30 elements and some with upwards of 5000. The value of each element is totally independent and usually different from all others. &lt;br&gt;
The problem is constructing a 'group array' in order to do anova1 on my segments. &lt;br&gt;
result=anova1(dataVector,groupVector)&lt;br&gt;
&lt;br&gt;
Currently I am building a for loop, ie. specifying elements between which row numbers of the whole log2ratio file are to be categorized as group 1, group2 and so on.&lt;br&gt;
But this means I have to manually type in 89 for-end loops. &lt;br&gt;
Does anyone know an easier way to do this?&lt;br&gt;
Any help would be much appreciated. Thanks!</description>
    </item>
    <item>
      <pubDate>Mon, 01 Jun 2009 13:40:11 -0400</pubDate>
      <title>Re: setting up groups for anova1 -large for loop issue</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/252597#653783</link>
      <author>Steven Lord</author>
      <description>&lt;br&gt;
&quot;Farah &quot; &amp;lt;fr.rasheed@gmail.com&amp;gt; wrote in message &lt;br&gt;
news:gvvuda$437$1@fred.mathworks.com...&lt;br&gt;
&amp;gt;I have to conduct anova1 on log2ratios (microarray) that I am binning in to &lt;br&gt;
&amp;gt;various segments based on biological selection. I have managed to set this &lt;br&gt;
&amp;gt;up though it was tedious to do. I basically have 89 segments some with only &lt;br&gt;
&amp;gt;30 elements and some with upwards of 5000. The value of each element is &lt;br&gt;
&amp;gt;totally independent and usually different from all others.&lt;br&gt;
&amp;gt; The problem is constructing a 'group array' in order to do anova1 on my &lt;br&gt;
&amp;gt; segments.&lt;br&gt;
&amp;gt; result=anova1(dataVector,groupVector)&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Currently I am building a for loop, ie. specifying elements between which &lt;br&gt;
&amp;gt; row numbers of the whole log2ratio file are to be categorized as group 1, &lt;br&gt;
&amp;gt; group2 and so on.&lt;br&gt;
&amp;gt; But this means I have to manually type in 89 for-end loops.&lt;br&gt;
&amp;gt; Does anyone know an easier way to do this?&lt;br&gt;
&lt;br&gt;
Post a small sample of your code that shows how you generate your &lt;br&gt;
groupVector.  I'm willing to bet there's an easier way to do what you want &lt;br&gt;
than 89 FOR-loops.  [In particular, if you're generating 89 variables group1 &lt;br&gt;
through group89, there's DEFINITELY a better way -- see Q4.6 in the &lt;br&gt;
newsgroup FAQ (&lt;a href=&quot;http://matlabwiki.mathworks.com/MATLAB_FAQ)&quot;&gt;http://matlabwiki.mathworks.com/MATLAB_FAQ)&lt;/a&gt; if that's what &lt;br&gt;
you're doing.]&lt;br&gt;
&lt;br&gt;
-- &lt;br&gt;
Steve Lord&lt;br&gt;
slord@mathworks.com </description>
    </item>
  </channel>
</rss>

