<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to regroup points that seems linear in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-regroup-points-that-seems-linear/m-p/405601#M21142</link>
    <description>&lt;UL&gt;&lt;LI&gt;No it's 1 plant with 5 different roots growing and I have that type of graph for each plant but I don't in know&amp;nbsp;advance how many roots there will be for each plant&lt;/LI&gt;&lt;LI&gt;Yes it's expressed in thermal time, it represent the accumulation of the temperature of each day, the plants are more influenced by temperature than time. But we can interpret that like the growth of the roots of one plant over time.&lt;/LI&gt;&lt;LI&gt;Yes it's the spatial position in 2D of the tip of a root for a given thermal time (degday). But the image processing software does not always detect the tip since sometimes the roots can overlap. And Yes eucl =&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;sqrt(X**2 + Y**2)&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;What I'm trying to do is to put together in a group each line (that would represent a root) since in my data there is nothing differenciating them (and then after it will allow me to calculate each growth curve for each roots).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And I realise that the cluster method might not be the best to put together points strung in a line. Do you know any other method that might be more suited to do that?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 19 Oct 2017 15:24:00 GMT</pubDate>
    <dc:creator>Pthaon</dc:creator>
    <dc:date>2017-10-19T15:24:00Z</dc:date>
    <item>
      <title>How to regroup points that seems linear</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-regroup-points-that-seems-linear/m-p/405505#M21139</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;I work with SAS 9.4 and I'm currently analysing some datas about roots.&lt;/P&gt;&lt;P&gt;But I have encountered a problem with the analysis of those graphs :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SGPlot163.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/15999iB59AF037EFFC20C5/image-size/large?v=v2&amp;amp;px=999" role="button" title="SGPlot163.png" alt="SGPlot163.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This graph reprensent the (eucl = euclidian) distance from the origin of the root(&amp;nbsp;the origin isn't included in the graph I'm focusing on the growth in later stage of the plant where it's more linear) over time (DegDay)&lt;/P&gt;&lt;P&gt;As we can see it seems there is 5 roots growing linearly and my goal is to regroup those points together. For each point I have additional datas: position X and Y :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SGPlot164.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/16000i8E741D6037C55458/image-size/large?v=v2&amp;amp;px=999" role="button" title="SGPlot164.png" alt="SGPlot164.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I tried some cluster methods on X Y and time ( degday ) with :&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods graphics on;

proc cluster data=tmp method=fle ccc pseudo print=15  outtree = tree
   plots( maxpoints=300)=den(height=rsq) STANDARD ;
   BY exp ID;
   var x y  degday ;
   copy  eucl ;
run;

ods graphics off;

PROC TREE DATA = tree OUT = tree2 HEIGHT= RSQ LEVEL = 0.99 ;
RUN;

PROC SORT DATA = tree (KEEP = _NAME_ x y diameter degday eucl) OUT = trees;
  BY _NAME_;
RUN;

PROC SORT DATA = tree2;
  BY _NAME_;
RUN;

DATA tree3;
  MERGE trees tree2 (IN = b);
  BY _NAME_;
  IF b;
RUN;

PROC SGPLOT DATA = tree3;
  SCATTER X = degday Y = eucl / GROUP = cluster;
RUN;&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SGPlot165.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/16001i15904D52003441E9/image-size/large?v=v2&amp;amp;px=999" role="button" title="SGPlot165.png" alt="SGPlot165.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then for each cluster (with 4 or more points) I calculated the slope and intercept and retried clustering with approcimatly the same method and got this :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SGPlot169.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/16002iD8DAD0821294D99E/image-size/large?v=v2&amp;amp;px=999" role="button" title="SGPlot169.png" alt="SGPlot169.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Better but still not ok. And to add to the challenge I have those type of data for 2000 roots system.&lt;/P&gt;&lt;P&gt;So my questions are :&lt;/P&gt;&lt;P&gt;Is there a better method than clustering for some linear data like that?&lt;/P&gt;&lt;P&gt;Or the clustering method is good but I'm not doing it the right way?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I know I might not be completly clear with my explanations and my english isn't the best so do not hesitate to ask for any additional information or clarification.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Patrick&lt;/P&gt;</description>
      <pubDate>Thu, 19 Oct 2017 12:45:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-regroup-points-that-seems-linear/m-p/405505#M21139</guid>
      <dc:creator>Pthaon</dc:creator>
      <dc:date>2017-10-19T12:45:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to regroup points that seems linear</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-regroup-points-that-seems-linear/m-p/405572#M21141</link>
      <description>&lt;UL&gt;
&lt;LI&gt;In the data that you show, are there 5 plants?&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;Do the observations correspond to the growth of those five plants over time (approximately 80 days)?&lt;/LI&gt;
&lt;LI&gt;Do the (X,Y) positions represents the coordinates of some feature relative to the root, so that euclid&amp;nbsp;= sqrt(X**2 + Y**2)?&amp;nbsp;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cluster analysis tries to find data that are grouped near some central location (the "center" of the cluster). Your&amp;nbsp;observations are not clumped, they are strung out in a line.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Are you trying to group together plants for which the growth curves (euclid vs time) are similar? If so, fit a regression line to each growth curve and then cluster the (Intercept, Slope) pairs in parameter space. That will indicate which of your 2000 plants.have similar growth curves.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Oct 2017 14:43:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-regroup-points-that-seems-linear/m-p/405572#M21141</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2017-10-19T14:43:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to regroup points that seems linear</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-regroup-points-that-seems-linear/m-p/405601#M21142</link>
      <description>&lt;UL&gt;&lt;LI&gt;No it's 1 plant with 5 different roots growing and I have that type of graph for each plant but I don't in know&amp;nbsp;advance how many roots there will be for each plant&lt;/LI&gt;&lt;LI&gt;Yes it's expressed in thermal time, it represent the accumulation of the temperature of each day, the plants are more influenced by temperature than time. But we can interpret that like the growth of the roots of one plant over time.&lt;/LI&gt;&lt;LI&gt;Yes it's the spatial position in 2D of the tip of a root for a given thermal time (degday). But the image processing software does not always detect the tip since sometimes the roots can overlap. And Yes eucl =&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;sqrt(X**2 + Y**2)&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;What I'm trying to do is to put together in a group each line (that would represent a root) since in my data there is nothing differenciating them (and then after it will allow me to calculate each growth curve for each roots).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And I realise that the cluster method might not be the best to put together points strung in a line. Do you know any other method that might be more suited to do that?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Oct 2017 15:24:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-regroup-points-that-seems-linear/m-p/405601#M21142</guid>
      <dc:creator>Pthaon</dc:creator>
      <dc:date>2017-10-19T15:24:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to regroup points that seems linear</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-regroup-points-that-seems-linear/m-p/405615#M21143</link>
      <description>&lt;P&gt;I see. So&lt;/P&gt;
&lt;P&gt;1. The data is collected by "image processing software," which means you do not know which root a given (X,Y, time) observation belongs to.&lt;/P&gt;
&lt;P&gt;2. You have no idea how many roots there are.&lt;/P&gt;
&lt;P&gt;3. Some roots might grow behind another, or even intertwine,&lt;/P&gt;
&lt;P&gt;4. You only have (X,Y, time) data when the real problem is (X,Y,Z,time).&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To me this sounds like a problem in computer vision or image processing rather than&amp;nbsp;statistics. Good luck.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Oct 2017 15:44:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-regroup-points-that-seems-linear/m-p/405615#M21143</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2017-10-19T15:44:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to regroup points that seems linear</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-regroup-points-that-seems-linear/m-p/405619#M21144</link>
      <description>&lt;P&gt;Yes you got the idea. Image processing&amp;nbsp; might be better but I lack knowledge in those type of software. The easy ones are not really adapted to a series of photos over time.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In your opinion there is no way to regroup those lines of points together ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But anyway thanks for your quick reponse!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Oct 2017 15:55:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-regroup-points-that-seems-linear/m-p/405619#M21144</guid>
      <dc:creator>Pthaon</dc:creator>
      <dc:date>2017-10-19T15:55:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to regroup points that seems linear</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-regroup-points-that-seems-linear/m-p/405658#M21145</link>
      <description>&lt;P&gt;&lt;EM&gt;&amp;gt;&amp;nbsp;In your opinion there is no way to regroup those lines of points together?&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;I don't know. I am just one person with limited knowledge. I am not aware of a pre-packaged algorithm that groups this kind of data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Given enough time and effort, you could probably construct and implement a heuristic algorithm that works for most of the data. You would probably need to use a high-level language like SAS/IML.&amp;nbsp;Whether&amp;nbsp;you want to pursue it depends on how much time you have and how important it is to solve this problem.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you decide to pursue it, I suggest you post the sample data for this 5-root problem. Someone&amp;nbsp;might&amp;nbsp;get interested and work on the problem.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Oct 2017 17:00:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-regroup-points-that-seems-linear/m-p/405658#M21145</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2017-10-19T17:00:56Z</dc:date>
    </item>
  </channel>
</rss>

