<?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: simple random samples of columns in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/simple-random-samples-of-columns/m-p/67435#M34615</link>
    <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/12111"&gt;@abmayfield&lt;/a&gt;,&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;I am not aware of a way to do it interactively without using a script.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 09 Aug 2018 22:01:32 GMT</pubDate>
    <dc:creator>uday_guntupalli</dc:creator>
    <dc:date>2018-08-09T22:01:32Z</dc:date>
    <item>
      <title>simple random samples of columns</title>
      <link>https://community.jmp.com/t5/Discussions/simple-random-samples-of-columns/m-p/67409#M34609</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; I know how to use JMP to create a SRS using rows but not with columns. I have 118,000 columns as part of a transcriptome, and I want to calculate the standard deviation across all genes (i.e., across rows). Doing so will cause JMP to crash on a Macbook Air with 8 GB of RAM. Therefore, I am wondering if I can just pick groups of 5,000 or 10,000 genes and calculate a standard deviation across them. Then, I can take the mean standard deviation of several SRSs (each column is a unique gene.). If I transpose the table to where the genes&amp;nbsp;are in the rows, the transposition step itself will cause JMP to crash! Any ideas?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PS: I would attach the data file, but it's 80 MB!&lt;/P&gt;</description>
      <pubDate>Thu, 09 Aug 2018 20:42:46 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/simple-random-samples-of-columns/m-p/67409#M34609</guid>
      <dc:creator>abmayfield</dc:creator>
      <dc:date>2018-08-09T20:42:46Z</dc:date>
    </item>
    <item>
      <title>Re: simple random samples of columns</title>
      <link>https://community.jmp.com/t5/Discussions/simple-random-samples-of-columns/m-p/67411#M34611</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/12111"&gt;@abmayfield&lt;/a&gt;,&amp;nbsp;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;If I understand what you are after, you want the ability to randomly select "n" columns in a data table ? Try to look at this:&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Open( "$SAMPLE_DATA/Airline Delays.jmp" );

nColumns = n Cols(dt); &lt;BR /&gt;&lt;BR /&gt;nSampleCols = 2; 

SelCols = As List(Random Index(nColumns,nSampleCols));

dt &amp;lt;&amp;lt; Select columns(SelCols);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I think this allows to randomly sample "n"&amp;nbsp; columns from the data table. Now you can use the random sample to do what you would like, please let me know if this is what you are after.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Aug 2018 21:00:09 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/simple-random-samples-of-columns/m-p/67411#M34611</guid>
      <dc:creator>uday_guntupalli</dc:creator>
      <dc:date>2018-08-09T21:00:09Z</dc:date>
    </item>
    <item>
      <title>Re: simple random samples of columns</title>
      <link>https://community.jmp.com/t5/Discussions/simple-random-samples-of-columns/m-p/67412#M34612</link>
      <description>&lt;P&gt;To answer my own question, 118,000 columns CAN be stacked, which allows for me to look at the standard deviation across all genes by my treatment factors. But I will also try this random column selection script, too.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Aug 2018 21:02:12 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/simple-random-samples-of-columns/m-p/67412#M34612</guid>
      <dc:creator>abmayfield</dc:creator>
      <dc:date>2018-08-09T21:02:12Z</dc:date>
    </item>
    <item>
      <title>Re: simple random samples of columns</title>
      <link>https://community.jmp.com/t5/Discussions/simple-random-samples-of-columns/m-p/67433#M34614</link>
      <description>&lt;P&gt;Thanks so much. That's exactly what I needed. Now I can do SRS of columns OR stack data. Just out of curiousity, do you know if this can be down WITHOUT scripting in JMP14? Thanks,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anderson&lt;/P&gt;</description>
      <pubDate>Thu, 09 Aug 2018 21:57:25 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/simple-random-samples-of-columns/m-p/67433#M34614</guid>
      <dc:creator>abmayfield</dc:creator>
      <dc:date>2018-08-09T21:57:25Z</dc:date>
    </item>
    <item>
      <title>Re: simple random samples of columns</title>
      <link>https://community.jmp.com/t5/Discussions/simple-random-samples-of-columns/m-p/67435#M34615</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/12111"&gt;@abmayfield&lt;/a&gt;,&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;I am not aware of a way to do it interactively without using a script.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Aug 2018 22:01:32 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/simple-random-samples-of-columns/m-p/67435#M34615</guid>
      <dc:creator>uday_guntupalli</dc:creator>
      <dc:date>2018-08-09T22:01:32Z</dc:date>
    </item>
    <item>
      <title>Re: simple random samples of columns</title>
      <link>https://community.jmp.com/t5/Discussions/simple-random-samples-of-columns/m-p/67550#M34648</link>
      <description>&lt;P&gt;Congratulations on finding a solution!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you are using JMP 14, you might want to try a the following column formula in your table. Since you said you have limited memory, and a crash is possible, save anything important first.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Std Dev( Current Data Table()[Row(), Index( c1, c2 )] )&amp;nbsp;&lt;/PRE&gt;&lt;P&gt;where c1 is the first column and c2 the last, for example 6, 118005.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If there is no crash, I would remove the formula.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;BTW, the stacked table is likely more efficient for summarizing. Just posing a possible alternative.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Aug 2018 20:59:52 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/simple-random-samples-of-columns/m-p/67550#M34648</guid>
      <dc:creator>gzmorgan0</dc:creator>
      <dc:date>2018-08-10T20:59:52Z</dc:date>
    </item>
    <item>
      <title>Re: simple random samples of columns</title>
      <link>https://community.jmp.com/t5/Discussions/simple-random-samples-of-columns/m-p/67551#M34649</link>
      <description>&lt;P&gt;Yes, I did try to calculate a standard deviation across 118,000 columns, but it freezes JMP, and I usually give up after a few hours. I may try to let it run overnight tonight, though.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, I learned that when you stack 118000 columns on top of each other for 12 samples, the resulting JMP table is over 2 GB and is unstable! This is weird because a 118000 column x 12 row table is only 50 MB. I wonder why a 6 column x 1.5 million&amp;nbsp;row table is so much larger?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Aug 2018 21:08:49 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/simple-random-samples-of-columns/m-p/67551#M34649</guid>
      <dc:creator>abmayfield</dc:creator>
      <dc:date>2018-08-10T21:08:49Z</dc:date>
    </item>
  </channel>
</rss>

