<?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: creating a new datasheet and copying values into it in JSL in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/creating-a-new-datasheet-and-copying-values-into-it-in-JSL/m-p/5912#M5911</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is one way. The loop incrementally fills a matrix that is converted into a datatable at the end.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px; color: #2600eb;"&gt;&lt;SPAN style="color: #000000;"&gt;dt &lt;/SPAN&gt;&lt;SPAN style="color: #150097;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;Data Table&lt;SPAN style="color: #000000;"&gt;&lt;STRONG&gt;(&lt;/STRONG&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #a70096;"&gt;"Data"&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #150097;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px; color: #009800;"&gt;&lt;SPAN style="color: #000000;"&gt;k&lt;/SPAN&gt;&lt;SPAN style="color: #150097;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #009694;"&gt;&lt;STRONG&gt;10&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #150097;"&gt;;&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;//Set sample size&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px; color: #009800;"&gt;&lt;SPAN style="color: #000000;"&gt;n &lt;/SPAN&gt;&lt;SPAN style="color: #150097;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #009694;"&gt;&lt;STRONG&gt;100&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #150097;"&gt;;&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;//Set number of iterations&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;fraction &lt;SPAN style="color: #150097;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="color: #009694;"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: #150097;"&gt;-&lt;/SPAN&gt; k &lt;SPAN style="color: #150097;"&gt;/&lt;/SPAN&gt; &lt;SPAN style="color: #2600eb;"&gt;N Rows&lt;/SPAN&gt;&lt;STRONG&gt;(&lt;/STRONG&gt; dt &lt;STRONG&gt;)&lt;/STRONG&gt;&lt;SPAN style="color: #150097;"&gt;;&lt;/SPAN&gt; &lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px; color: #009800;"&gt;&lt;SPAN style="color: #000000;"&gt;m &lt;/SPAN&gt;&lt;SPAN style="color: #150097;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #2600eb;"&gt;J&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;&lt;STRONG&gt;(&lt;/STRONG&gt; n&lt;/SPAN&gt;&lt;SPAN style="color: #150097;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #009694;"&gt;&lt;STRONG&gt;2&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #150097;"&gt;;&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;//Initiate a matrix for holding means and SDs&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px; color: #009800;"&gt;//Loop: make random subset n times&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN style="color: #2600eb;"&gt;For&lt;/SPAN&gt;&lt;STRONG&gt;(&lt;/STRONG&gt; i &lt;SPAN style="color: #150097;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="color: #009694;"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #150097;"&gt;,&lt;/SPAN&gt; i &lt;SPAN style="color: #150097;"&gt;&amp;lt;=&lt;/SPAN&gt; n&lt;SPAN style="color: #150097;"&gt;,&lt;/SPAN&gt; i&lt;SPAN style="color: #150097;"&gt;++,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&amp;nbsp; dt &lt;SPAN style="color: #150097;"&gt;&amp;lt;&amp;lt;&lt;/SPAN&gt; select randomly&lt;STRONG&gt;(&lt;/STRONG&gt; fraction &lt;STRONG&gt;)&lt;/STRONG&gt;&lt;SPAN style="color: #150097;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&amp;nbsp; m&lt;STRONG&gt;[&lt;/STRONG&gt;i&lt;SPAN style="color: #150097;"&gt;,&lt;/SPAN&gt; &lt;SPAN style="color: #009694;"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;]&lt;/STRONG&gt; &lt;SPAN style="color: #150097;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="color: #2600eb;"&gt;Mean&lt;/SPAN&gt;&lt;STRONG&gt;(&lt;/STRONG&gt; dt&lt;SPAN style="color: #150097;"&gt;:&lt;/SPAN&gt;Data&lt;STRONG&gt;[&lt;/STRONG&gt;dt &lt;SPAN style="color: #150097;"&gt;&amp;lt;&amp;lt;&lt;/SPAN&gt; get selected rows&lt;STRONG&gt;]&lt;/STRONG&gt; &lt;STRONG&gt;)&lt;/STRONG&gt;&lt;SPAN style="color: #150097;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&amp;nbsp; m&lt;STRONG&gt;[&lt;/STRONG&gt;i&lt;SPAN style="color: #150097;"&gt;,&lt;/SPAN&gt; &lt;SPAN style="color: #009694;"&gt;&lt;STRONG&gt;2&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;]&lt;/STRONG&gt; &lt;SPAN style="color: #150097;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="color: #2600eb;"&gt;Std Dev&lt;/SPAN&gt;&lt;STRONG&gt;(&lt;/STRONG&gt; dt&lt;SPAN style="color: #150097;"&gt;:&lt;/SPAN&gt;Data&lt;STRONG&gt;[&lt;/STRONG&gt;dt &lt;SPAN style="color: #150097;"&gt;&amp;lt;&amp;lt;&lt;/SPAN&gt; get selected rows&lt;STRONG&gt;]&lt;/STRONG&gt; &lt;STRONG&gt;)&lt;/STRONG&gt;&lt;SPAN style="color: #150097;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;SPAN style="color: #150097;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px; color: #009800;"&gt;//Move data into new table&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;dt2 &lt;SPAN style="color: #150097;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="color: #2600eb;"&gt;As Table&lt;/SPAN&gt;&lt;STRONG&gt;(&lt;/STRONG&gt; m &lt;STRONG&gt;)&lt;/STRONG&gt;&lt;SPAN style="color: #150097;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;dt2 &lt;SPAN style="color: #150097;"&gt;&amp;lt;&amp;lt;&lt;/SPAN&gt; set name&lt;STRONG&gt;(&lt;/STRONG&gt; &lt;SPAN style="color: #a70096;"&gt;"Summary Data"&lt;/SPAN&gt; &lt;STRONG&gt;)&lt;/STRONG&gt;&lt;SPAN style="color: #150097;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN style="color: #2600eb;"&gt;Column&lt;/SPAN&gt;&lt;STRONG&gt;(&lt;/STRONG&gt; dt2&lt;SPAN style="color: #150097;"&gt;,&lt;/SPAN&gt; &lt;SPAN style="color: #009694;"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;STRONG&gt;)&lt;/STRONG&gt; &lt;SPAN style="color: #150097;"&gt;&amp;lt;&amp;lt;&lt;/SPAN&gt; set name&lt;STRONG&gt;(&lt;/STRONG&gt; &lt;SPAN style="color: #a70096;"&gt;"Mean"&lt;/SPAN&gt; &lt;STRONG&gt;)&lt;/STRONG&gt;&lt;SPAN style="color: #150097;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN style="color: #2600eb;"&gt;Column&lt;/SPAN&gt;&lt;STRONG&gt;(&lt;/STRONG&gt; dt2&lt;SPAN style="color: #150097;"&gt;,&lt;/SPAN&gt; &lt;SPAN style="color: #009694;"&gt;&lt;STRONG&gt;2&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;STRONG&gt;)&lt;/STRONG&gt; &lt;SPAN style="color: #150097;"&gt;&amp;lt;&amp;lt;&lt;/SPAN&gt; set name&lt;STRONG&gt;(&lt;/STRONG&gt; &lt;SPAN style="color: #a70096;"&gt;"StdDev"&lt;/SPAN&gt; &lt;STRONG&gt;)&lt;/STRONG&gt;&lt;SPAN style="color: #150097;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 05 Nov 2012 19:53:20 GMT</pubDate>
    <dc:creator>ms</dc:creator>
    <dc:date>2012-11-05T19:53:20Z</dc:date>
    <item>
      <title>creating a new datasheet and copying values into it in JSL</title>
      <link>https://community.jmp.com/t5/Discussions/creating-a-new-datasheet-and-copying-values-into-it-in-JSL/m-p/5907#M5906</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;i have a dataset with 50 numbers. I want to calculate the mean of the data set and place the mean value in a different new datasheet "Summary". Again I want to calculate sum of the 50 numbers and place it in the same new datasheet "Summary". Can some one help me how to place these mean and sum values in new datasheet "Summary"?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Nov 2012 15:49:16 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/creating-a-new-datasheet-and-copying-values-into-it-in-JSL/m-p/5907#M5906</guid>
      <dc:creator>fr2007</dc:creator>
      <dc:date>2012-11-02T15:49:16Z</dc:date>
    </item>
    <item>
      <title>Re: creating a new datasheet and copying values into it in JSL</title>
      <link>https://community.jmp.com/t5/Discussions/creating-a-new-datasheet-and-copying-values-into-it-in-JSL/m-p/5908#M5907</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you really mean to do this in JSL - i.e. to create a script that you can run to produce the summary? If you want to do this just one time interactively?&amp;nbsp; I will answer both:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;Interactively:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Create your data table - in this case i call it RawData,&lt;/P&gt;&lt;P&gt;Click Table &amp;gt;&amp;gt; Tabulate&lt;/P&gt;&lt;P&gt;Click Data and then Mean and drag it to the output area&lt;/P&gt;&lt;P&gt;Click Sum and drag it to the output area&lt;/P&gt;&lt;P&gt;Click on red triangle of the report &amp;gt;&amp;gt; Make into Data Table, or just use the report directly (Cut and Paste)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;Using JSL&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;After creating the above using Make Into Data Table, name the table (Summary Report is used here)&lt;/P&gt;&lt;P&gt;Click on the red triangle &amp;gt;&amp;gt; Copy Script&lt;/P&gt;&lt;P&gt;Create a new script (File&amp;gt;&amp;gt;New&amp;gt;&amp;gt;Script)&lt;/P&gt;&lt;P&gt;Paste your newly copied script into the new script window&lt;/P&gt;&lt;P&gt;Close your previous summary report&lt;/P&gt;&lt;P&gt;Run the script you just created&lt;/P&gt;&lt;P&gt;The summary report should pop up&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;An example i made with random data:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Script:&lt;/P&gt;&lt;P&gt;New Table( "Summary Report",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Add Rows( 1 ),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; New Script(&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Source",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (Data Table( "RawData" ) &amp;lt;&amp;lt; Tabulate(&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Add Table(&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Column Table( Statistics( Mean, Sum ), Analysis Columns( :Data ) )&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; )) &amp;lt;&amp;lt; Make Into Data Table&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; New Column( "Mean(Data)",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Numeric,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Continuous,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Format( "Best", 5 ),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set Values( [171.936] )&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; New Column( "Sum(Data)",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Numeric,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Continuous,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Format( "Best", 5 ),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set Values( [8596.8] )&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message me if you want my example files.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Barry&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Nov 2012 16:39:03 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/creating-a-new-datasheet-and-copying-values-into-it-in-JSL/m-p/5908#M5907</guid>
      <dc:creator>novicescriptor</dc:creator>
      <dc:date>2012-11-05T16:39:03Z</dc:date>
    </item>
    <item>
      <title>Re: creating a new datasheet and copying values into it in JSL</title>
      <link>https://community.jmp.com/t5/Discussions/creating-a-new-datasheet-and-copying-values-into-it-in-JSL/m-p/5909#M5908</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Actually, I wanted to do this:-i posted this question in the forum too..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a data set with 1000 variables, continous numbers. I want to take a random subset from the dataset and calculate the mean and standard deviation of the subset and place in a separate excel file "B". I want to repeat this process -process of taking the subset of size 10 from the original dataset with 1000 variables and calculate mean and standard deviation and place in the same excel file "B". The final excel sheet shll contain all the means and standard deviations .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Iam not very sure if the script that you have given me can help in creating a new sheet in the above question..&lt;/P&gt;&lt;P&gt;i attached my sample data sheet ..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Nov 2012 16:53:38 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/creating-a-new-datasheet-and-copying-values-into-it-in-JSL/m-p/5909#M5908</guid>
      <dc:creator>fr2007</dc:creator>
      <dc:date>2012-11-05T16:53:38Z</dc:date>
    </item>
    <item>
      <title>Re: creating a new datasheet and copying values into it in JSL</title>
      <link>https://community.jmp.com/t5/Discussions/creating-a-new-datasheet-and-copying-values-into-it-in-JSL/m-p/5910#M5909</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was looking at your second post - it is the same idea but i would create a new table collecting the samples of 10 into columns then produce a summary just once.&amp;nbsp; if no one else answers this i will answer this later today after I take care of people who pay my bills (an expectant lot &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.jmp.com/5.0.2/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Nov 2012 17:17:27 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/creating-a-new-datasheet-and-copying-values-into-it-in-JSL/m-p/5910#M5909</guid>
      <dc:creator>novicescriptor</dc:creator>
      <dc:date>2012-11-05T17:17:27Z</dc:date>
    </item>
    <item>
      <title>Re: creating a new datasheet and copying values into it in JSL</title>
      <link>https://community.jmp.com/t5/Discussions/creating-a-new-datasheet-and-copying-values-into-it-in-JSL/m-p/5911#M5910</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes, I want to know how to create samples of 10 and if I were to create these samples of 10 multiple times(say more than 100), do I need to write it in a loop? How do I use loop here to create samples of 10 multiple times?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Nov 2012 18:25:46 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/creating-a-new-datasheet-and-copying-values-into-it-in-JSL/m-p/5911#M5910</guid>
      <dc:creator>fr2007</dc:creator>
      <dc:date>2012-11-05T18:25:46Z</dc:date>
    </item>
    <item>
      <title>Re: creating a new datasheet and copying values into it in JSL</title>
      <link>https://community.jmp.com/t5/Discussions/creating-a-new-datasheet-and-copying-values-into-it-in-JSL/m-p/5912#M5911</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is one way. The loop incrementally fills a matrix that is converted into a datatable at the end.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px; color: #2600eb;"&gt;&lt;SPAN style="color: #000000;"&gt;dt &lt;/SPAN&gt;&lt;SPAN style="color: #150097;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;Data Table&lt;SPAN style="color: #000000;"&gt;&lt;STRONG&gt;(&lt;/STRONG&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #a70096;"&gt;"Data"&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #150097;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px; color: #009800;"&gt;&lt;SPAN style="color: #000000;"&gt;k&lt;/SPAN&gt;&lt;SPAN style="color: #150097;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #009694;"&gt;&lt;STRONG&gt;10&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #150097;"&gt;;&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;//Set sample size&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px; color: #009800;"&gt;&lt;SPAN style="color: #000000;"&gt;n &lt;/SPAN&gt;&lt;SPAN style="color: #150097;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #009694;"&gt;&lt;STRONG&gt;100&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #150097;"&gt;;&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;//Set number of iterations&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;fraction &lt;SPAN style="color: #150097;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="color: #009694;"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: #150097;"&gt;-&lt;/SPAN&gt; k &lt;SPAN style="color: #150097;"&gt;/&lt;/SPAN&gt; &lt;SPAN style="color: #2600eb;"&gt;N Rows&lt;/SPAN&gt;&lt;STRONG&gt;(&lt;/STRONG&gt; dt &lt;STRONG&gt;)&lt;/STRONG&gt;&lt;SPAN style="color: #150097;"&gt;;&lt;/SPAN&gt; &lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px; color: #009800;"&gt;&lt;SPAN style="color: #000000;"&gt;m &lt;/SPAN&gt;&lt;SPAN style="color: #150097;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #2600eb;"&gt;J&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;&lt;STRONG&gt;(&lt;/STRONG&gt; n&lt;/SPAN&gt;&lt;SPAN style="color: #150097;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #009694;"&gt;&lt;STRONG&gt;2&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #150097;"&gt;;&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;//Initiate a matrix for holding means and SDs&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px; color: #009800;"&gt;//Loop: make random subset n times&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN style="color: #2600eb;"&gt;For&lt;/SPAN&gt;&lt;STRONG&gt;(&lt;/STRONG&gt; i &lt;SPAN style="color: #150097;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="color: #009694;"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #150097;"&gt;,&lt;/SPAN&gt; i &lt;SPAN style="color: #150097;"&gt;&amp;lt;=&lt;/SPAN&gt; n&lt;SPAN style="color: #150097;"&gt;,&lt;/SPAN&gt; i&lt;SPAN style="color: #150097;"&gt;++,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&amp;nbsp; dt &lt;SPAN style="color: #150097;"&gt;&amp;lt;&amp;lt;&lt;/SPAN&gt; select randomly&lt;STRONG&gt;(&lt;/STRONG&gt; fraction &lt;STRONG&gt;)&lt;/STRONG&gt;&lt;SPAN style="color: #150097;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&amp;nbsp; m&lt;STRONG&gt;[&lt;/STRONG&gt;i&lt;SPAN style="color: #150097;"&gt;,&lt;/SPAN&gt; &lt;SPAN style="color: #009694;"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;]&lt;/STRONG&gt; &lt;SPAN style="color: #150097;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="color: #2600eb;"&gt;Mean&lt;/SPAN&gt;&lt;STRONG&gt;(&lt;/STRONG&gt; dt&lt;SPAN style="color: #150097;"&gt;:&lt;/SPAN&gt;Data&lt;STRONG&gt;[&lt;/STRONG&gt;dt &lt;SPAN style="color: #150097;"&gt;&amp;lt;&amp;lt;&lt;/SPAN&gt; get selected rows&lt;STRONG&gt;]&lt;/STRONG&gt; &lt;STRONG&gt;)&lt;/STRONG&gt;&lt;SPAN style="color: #150097;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&amp;nbsp; m&lt;STRONG&gt;[&lt;/STRONG&gt;i&lt;SPAN style="color: #150097;"&gt;,&lt;/SPAN&gt; &lt;SPAN style="color: #009694;"&gt;&lt;STRONG&gt;2&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;]&lt;/STRONG&gt; &lt;SPAN style="color: #150097;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="color: #2600eb;"&gt;Std Dev&lt;/SPAN&gt;&lt;STRONG&gt;(&lt;/STRONG&gt; dt&lt;SPAN style="color: #150097;"&gt;:&lt;/SPAN&gt;Data&lt;STRONG&gt;[&lt;/STRONG&gt;dt &lt;SPAN style="color: #150097;"&gt;&amp;lt;&amp;lt;&lt;/SPAN&gt; get selected rows&lt;STRONG&gt;]&lt;/STRONG&gt; &lt;STRONG&gt;)&lt;/STRONG&gt;&lt;SPAN style="color: #150097;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;SPAN style="color: #150097;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px; color: #009800;"&gt;//Move data into new table&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;dt2 &lt;SPAN style="color: #150097;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="color: #2600eb;"&gt;As Table&lt;/SPAN&gt;&lt;STRONG&gt;(&lt;/STRONG&gt; m &lt;STRONG&gt;)&lt;/STRONG&gt;&lt;SPAN style="color: #150097;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;dt2 &lt;SPAN style="color: #150097;"&gt;&amp;lt;&amp;lt;&lt;/SPAN&gt; set name&lt;STRONG&gt;(&lt;/STRONG&gt; &lt;SPAN style="color: #a70096;"&gt;"Summary Data"&lt;/SPAN&gt; &lt;STRONG&gt;)&lt;/STRONG&gt;&lt;SPAN style="color: #150097;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN style="color: #2600eb;"&gt;Column&lt;/SPAN&gt;&lt;STRONG&gt;(&lt;/STRONG&gt; dt2&lt;SPAN style="color: #150097;"&gt;,&lt;/SPAN&gt; &lt;SPAN style="color: #009694;"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;STRONG&gt;)&lt;/STRONG&gt; &lt;SPAN style="color: #150097;"&gt;&amp;lt;&amp;lt;&lt;/SPAN&gt; set name&lt;STRONG&gt;(&lt;/STRONG&gt; &lt;SPAN style="color: #a70096;"&gt;"Mean"&lt;/SPAN&gt; &lt;STRONG&gt;)&lt;/STRONG&gt;&lt;SPAN style="color: #150097;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN style="color: #2600eb;"&gt;Column&lt;/SPAN&gt;&lt;STRONG&gt;(&lt;/STRONG&gt; dt2&lt;SPAN style="color: #150097;"&gt;,&lt;/SPAN&gt; &lt;SPAN style="color: #009694;"&gt;&lt;STRONG&gt;2&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;STRONG&gt;)&lt;/STRONG&gt; &lt;SPAN style="color: #150097;"&gt;&amp;lt;&amp;lt;&lt;/SPAN&gt; set name&lt;STRONG&gt;(&lt;/STRONG&gt; &lt;SPAN style="color: #a70096;"&gt;"StdDev"&lt;/SPAN&gt; &lt;STRONG&gt;)&lt;/STRONG&gt;&lt;SPAN style="color: #150097;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Nov 2012 19:53:20 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/creating-a-new-datasheet-and-copying-values-into-it-in-JSL/m-p/5912#M5911</guid>
      <dc:creator>ms</dc:creator>
      <dc:date>2012-11-05T19:53:20Z</dc:date>
    </item>
    <item>
      <title>Re: creating a new datasheet and copying values into it in JSL</title>
      <link>https://community.jmp.com/t5/Discussions/creating-a-new-datasheet-and-copying-values-into-it-in-JSL/m-p/5913#M5912</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;somehow I couldnot see the final table with means and standard deviations..where is it created?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Nov 2012 20:44:42 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/creating-a-new-datasheet-and-copying-values-into-it-in-JSL/m-p/5913#M5912</guid>
      <dc:creator>fr2007</dc:creator>
      <dc:date>2012-11-05T20:44:42Z</dc:date>
    </item>
    <item>
      <title>Re: creating a new datasheet and copying values into it in JSL</title>
      <link>https://community.jmp.com/t5/Discussions/creating-a-new-datasheet-and-copying-values-into-it-in-JSL/m-p/5914#M5913</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can you please let me understand with this txt file. Sorry, but iam not much used to JSL,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Nov 2012 20:46:57 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/creating-a-new-datasheet-and-copying-values-into-it-in-JSL/m-p/5914#M5913</guid>
      <dc:creator>fr2007</dc:creator>
      <dc:date>2012-11-05T20:46:57Z</dc:date>
    </item>
    <item>
      <title>Re: creating a new datasheet and copying values into it in JSL</title>
      <link>https://community.jmp.com/t5/Discussions/creating-a-new-datasheet-and-copying-values-into-it-in-JSL/m-p/5915#M5914</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The line dt2 &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13px; font-family: inherit; color: #150097;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13px; font-family: inherit; color: #2600eb;"&gt;As Table&lt;/SPAN&gt;&lt;STRONG style="font-style: inherit; font-size: 13px; font-family: inherit;"&gt;(&lt;/STRONG&gt; m &lt;STRONG style="font-style: inherit; font-size: 13px; font-family: inherit;"&gt;)&lt;/STRONG&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13px; font-family: inherit; color: #150097;"&gt;; &lt;/SPAN&gt;creates the table. What does your log say?&lt;/P&gt;&lt;P&gt;The script here assumes you have a Table called "Data" and a column with your data also with name "Data".&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Nov 2012 20:49:56 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/creating-a-new-datasheet-and-copying-values-into-it-in-JSL/m-p/5915#M5914</guid>
      <dc:creator>ms</dc:creator>
      <dc:date>2012-11-05T20:49:56Z</dc:date>
    </item>
    <item>
      <title>Re: creating a new datasheet and copying values into it in JSL</title>
      <link>https://community.jmp.com/t5/Discussions/creating-a-new-datasheet-and-copying-values-into-it-in-JSL/m-p/5916#M5915</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I used that file when writing the script. I just pasted the values in the text file into a new JMP table (you ca also open it from within JMP), renamed the file from "untutled" to "Data" and gave the column the name "Data". Try again!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Nov 2012 20:53:57 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/creating-a-new-datasheet-and-copying-values-into-it-in-JSL/m-p/5916#M5915</guid>
      <dc:creator>ms</dc:creator>
      <dc:date>2012-11-05T20:53:57Z</dc:date>
    </item>
    <item>
      <title>Re: creating a new datasheet and copying values into it in JSL</title>
      <link>https://community.jmp.com/t5/Discussions/creating-a-new-datasheet-and-copying-values-into-it-in-JSL/m-p/5917#M5916</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes. I got the final sheet, but what does the fraction line do? Does that create a formula for the random sample?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Nov 2012 20:54:27 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/creating-a-new-datasheet-and-copying-values-into-it-in-JSL/m-p/5917#M5916</guid>
      <dc:creator>fr2007</dc:creator>
      <dc:date>2012-11-05T20:54:27Z</dc:date>
    </item>
    <item>
      <title>Re: creating a new datasheet and copying values into it in JSL</title>
      <link>https://community.jmp.com/t5/Discussions/creating-a-new-datasheet-and-copying-values-into-it-in-JSL/m-p/5918#M5917</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;And each time if I want to see the subset of 10 values from which mean and STD Dev. is calculated, can I have that option?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Nov 2012 20:56:36 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/creating-a-new-datasheet-and-copying-values-into-it-in-JSL/m-p/5918#M5917</guid>
      <dc:creator>fr2007</dc:creator>
      <dc:date>2012-11-05T20:56:36Z</dc:date>
    </item>
    <item>
      <title>Re: creating a new datasheet and copying values into it in JSL</title>
      <link>https://community.jmp.com/t5/Discussions/creating-a-new-datasheet-and-copying-values-into-it-in-JSL/m-p/5919#M5918</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, I inverted the fraction. It should read&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;fraction &lt;SPAN style="color: #150097;"&gt;=&lt;/SPAN&gt; k &lt;SPAN style="color: #150097;"&gt;/&lt;/SPAN&gt; &lt;SPAN style="color: #2600eb;"&gt;N Rows&lt;/SPAN&gt;&lt;STRONG&gt;(&lt;/STRONG&gt; dt &lt;STRONG&gt;)&lt;/STRONG&gt;&lt;SPAN style="color: #150097;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This fraction (a number between 0 and 1) is calculated only because the random selection requires a fraction argument.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is a version that also puts each subsample in the output table. After the mean and SD columns you should see ten columns with the ten randomly picked data for each iteration.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px; color: #a70096;"&gt;&lt;SPAN style="color: #000000;"&gt;dt &lt;/SPAN&gt;&lt;SPAN style="color: #150097;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #2600eb;"&gt;Data Table&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;&lt;STRONG&gt;(&lt;/STRONG&gt; &lt;/SPAN&gt;"Data"&lt;SPAN style="color: #000000;"&gt; &lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #150097;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px; color: #009800;"&gt;&lt;SPAN style="color: #000000;"&gt;k &lt;/SPAN&gt;&lt;SPAN style="color: #150097;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #009694;"&gt;&lt;STRONG&gt;10&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #150097;"&gt;;&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;//Set sample size&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px; color: #009800;"&gt;&lt;SPAN style="color: #000000;"&gt;n &lt;/SPAN&gt;&lt;SPAN style="color: #150097;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #009694;"&gt;&lt;STRONG&gt;100&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #150097;"&gt;;&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;//Set number of iterations&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;fraction &lt;SPAN style="color: #150097;"&gt;=&lt;/SPAN&gt; k &lt;SPAN style="color: #150097;"&gt;/&lt;/SPAN&gt; &lt;SPAN style="color: #2600eb;"&gt;N Rows&lt;/SPAN&gt;&lt;STRONG&gt;(&lt;/STRONG&gt; dt &lt;STRONG&gt;)&lt;/STRONG&gt;&lt;SPAN style="color: #150097;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px; color: #009800;"&gt;&lt;SPAN style="color: #000000;"&gt;m &lt;/SPAN&gt;&lt;SPAN style="color: #150097;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #2600eb;"&gt;J&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;&lt;STRONG&gt;(&lt;/STRONG&gt; n&lt;/SPAN&gt;&lt;SPAN style="color: #150097;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #009694;"&gt;&lt;STRONG&gt;2&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #150097;"&gt;+&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; k &lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #150097;"&gt;;&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;//Initiate a matrix for holding means and SDs&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px; color: #009800;"&gt;//Loop: make random subset n times&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN style="color: #2600eb;"&gt;For&lt;/SPAN&gt;&lt;STRONG&gt;(&lt;/STRONG&gt; i &lt;SPAN style="color: #150097;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="color: #009694;"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #150097;"&gt;,&lt;/SPAN&gt; i &lt;SPAN style="color: #150097;"&gt;&amp;lt;=&lt;/SPAN&gt; n&lt;SPAN style="color: #150097;"&gt;,&lt;/SPAN&gt; i&lt;SPAN style="color: #150097;"&gt;++,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&amp;nbsp; dt &lt;SPAN style="color: #150097;"&gt;&amp;lt;&amp;lt;&lt;/SPAN&gt; select randomly&lt;STRONG&gt;(&lt;/STRONG&gt; fraction &lt;STRONG&gt;)&lt;/STRONG&gt;&lt;SPAN style="color: #150097;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&amp;nbsp; m&lt;STRONG&gt;[&lt;/STRONG&gt;i&lt;SPAN style="color: #150097;"&gt;,&lt;/SPAN&gt; &lt;SPAN style="color: #009694;"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;]&lt;/STRONG&gt; &lt;SPAN style="color: #150097;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="color: #2600eb;"&gt;Mean&lt;/SPAN&gt;&lt;STRONG&gt;(&lt;/STRONG&gt; dt&lt;SPAN style="color: #150097;"&gt;:&lt;/SPAN&gt;Data&lt;STRONG&gt;[&lt;/STRONG&gt;dt &lt;SPAN style="color: #150097;"&gt;&amp;lt;&amp;lt;&lt;/SPAN&gt; get selected rows&lt;STRONG&gt;]&lt;/STRONG&gt; &lt;STRONG&gt;)&lt;/STRONG&gt;&lt;SPAN style="color: #150097;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&amp;nbsp; m&lt;STRONG&gt;[&lt;/STRONG&gt;i&lt;SPAN style="color: #150097;"&gt;,&lt;/SPAN&gt; &lt;SPAN style="color: #009694;"&gt;&lt;STRONG&gt;2&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;]&lt;/STRONG&gt; &lt;SPAN style="color: #150097;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="color: #2600eb;"&gt;Std Dev&lt;/SPAN&gt;&lt;STRONG&gt;(&lt;/STRONG&gt; dt&lt;SPAN style="color: #150097;"&gt;:&lt;/SPAN&gt;Data&lt;STRONG&gt;[&lt;/STRONG&gt;dt &lt;SPAN style="color: #150097;"&gt;&amp;lt;&amp;lt;&lt;/SPAN&gt; get selected rows&lt;STRONG&gt;]&lt;/STRONG&gt; &lt;STRONG&gt;)&lt;/STRONG&gt;&lt;SPAN style="color: #150097;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&amp;nbsp; m&lt;STRONG&gt;[&lt;/STRONG&gt;i&lt;SPAN style="color: #150097;"&gt;,&lt;/SPAN&gt; &lt;SPAN style="color: #009694;"&gt;&lt;STRONG&gt;3&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: #150097;"&gt;::&lt;/SPAN&gt; &lt;SPAN style="color: #009694;"&gt;&lt;STRONG&gt;2&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #150097;"&gt;+&lt;/SPAN&gt; k&lt;STRONG&gt;]&lt;/STRONG&gt; &lt;SPAN style="color: #150097;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="color: #2600eb;"&gt;transpose&lt;/SPAN&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;dt&lt;SPAN style="color: #150097;"&gt;:&lt;/SPAN&gt;Data&lt;STRONG&gt;[&lt;/STRONG&gt;dt &lt;SPAN style="color: #150097;"&gt;&amp;lt;&amp;lt;&lt;/SPAN&gt; get selected rows&lt;STRONG&gt;])&lt;/STRONG&gt;&lt;SPAN style="color: #150097;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;SPAN style="color: #150097;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px; color: #009800;"&gt;//Move data into new table&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;dt2 &lt;SPAN style="color: #150097;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="color: #2600eb;"&gt;As Table&lt;/SPAN&gt;&lt;STRONG&gt;(&lt;/STRONG&gt; m &lt;STRONG&gt;)&lt;/STRONG&gt;&lt;SPAN style="color: #150097;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;dt2 &lt;SPAN style="color: #150097;"&gt;&amp;lt;&amp;lt;&lt;/SPAN&gt; set name&lt;STRONG&gt;(&lt;/STRONG&gt; &lt;SPAN style="color: #a70096;"&gt;"Summary Data"&lt;/SPAN&gt; &lt;STRONG&gt;)&lt;/STRONG&gt;&lt;SPAN style="color: #150097;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN style="color: #2600eb;"&gt;Column&lt;/SPAN&gt;&lt;STRONG&gt;(&lt;/STRONG&gt; dt2&lt;SPAN style="color: #150097;"&gt;,&lt;/SPAN&gt; &lt;SPAN style="color: #009694;"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;STRONG&gt;)&lt;/STRONG&gt; &lt;SPAN style="color: #150097;"&gt;&amp;lt;&amp;lt;&lt;/SPAN&gt; set name&lt;STRONG&gt;(&lt;/STRONG&gt; &lt;SPAN style="color: #a70096;"&gt;"Mean"&lt;/SPAN&gt; &lt;STRONG&gt;)&lt;/STRONG&gt;&lt;SPAN style="color: #150097;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN style="color: #2600eb;"&gt;Column&lt;/SPAN&gt;&lt;STRONG&gt;(&lt;/STRONG&gt; dt2&lt;SPAN style="color: #150097;"&gt;,&lt;/SPAN&gt; &lt;SPAN style="color: #009694;"&gt;&lt;STRONG&gt;2&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;STRONG&gt;)&lt;/STRONG&gt; &lt;SPAN style="color: #150097;"&gt;&amp;lt;&amp;lt;&lt;/SPAN&gt; set name&lt;STRONG&gt;(&lt;/STRONG&gt; &lt;SPAN style="color: #a70096;"&gt;"StdDev"&lt;/SPAN&gt; &lt;STRONG&gt;)&lt;/STRONG&gt;&lt;SPAN style="color: #150097;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Nov 2012 21:18:25 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/creating-a-new-datasheet-and-copying-values-into-it-in-JSL/m-p/5919#M5918</guid>
      <dc:creator>ms</dc:creator>
      <dc:date>2012-11-05T21:18:25Z</dc:date>
    </item>
    <item>
      <title>Re: creating a new datasheet and copying values into it in JSL</title>
      <link>https://community.jmp.com/t5/Discussions/creating-a-new-datasheet-and-copying-values-into-it-in-JSL/m-p/5920#M5919</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you don't care about some repeats in some samples, there is a SUBSET command under TABLES that produce random samples:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;Subset( Sample Size( 10 ) )&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;that should produce the random 10 for each iteration.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As for the summary for each group, you can use STACK COMMAND to gather all data while preserving column (sampling group) names, then apply either tabulate or summary&amp;nbsp; by sample group.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i'd like too give all that in a script but my scripting is very slow.&amp;nbsp; may be later..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MS, excellent clean scripting, as always.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Barry&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Nov 2012 21:19:49 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/creating-a-new-datasheet-and-copying-values-into-it-in-JSL/m-p/5920#M5919</guid>
      <dc:creator>novicescriptor</dc:creator>
      <dc:date>2012-11-05T21:19:49Z</dc:date>
    </item>
    <item>
      <title>Re: creating a new datasheet and copying values into it in JSL</title>
      <link>https://community.jmp.com/t5/Discussions/creating-a-new-datasheet-and-copying-values-into-it-in-JSL/m-p/5921#M5920</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Thankyou everyone for helping me in JSL scripting...your skills are highly appreciated!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Nov 2012 21:39:15 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/creating-a-new-datasheet-and-copying-values-into-it-in-JSL/m-p/5921#M5920</guid>
      <dc:creator>fr2007</dc:creator>
      <dc:date>2012-11-05T21:39:15Z</dc:date>
    </item>
  </channel>
</rss>

