<?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: Help with Sequence formula in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Help-with-Sequence-formula/m-p/353443#M60291</link>
    <description>Hi Ron,&lt;BR /&gt;&lt;BR /&gt;thanks a lot for the quick fix. It certainly did the job. Having said that, I would be interested in hearing about the better way to do this.&lt;BR /&gt;&lt;BR /&gt;Best,&lt;BR /&gt;&lt;BR /&gt;Sebastien</description>
    <pubDate>Wed, 27 Jan 2021 20:53:08 GMT</pubDate>
    <dc:creator>Sburel</dc:creator>
    <dc:date>2021-01-27T20:53:08Z</dc:date>
    <item>
      <title>Help with Sequence formula</title>
      <link>https://community.jmp.com/t5/Discussions/Help-with-Sequence-formula/m-p/353376#M60283</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've been working on a script which leverage the matched-pair platform. By the end of the script, I end up with a cleaned up table of significance.&lt;/P&gt;&lt;P&gt;In the column 'Sig Level', you have 2 type of label concatenated: time point label for the repeat measure (0, 14, 28) and the p-value labels ( Prob...). I would like to find a way to put together a formula which would produce the result in column 'Repeat Measure Time Range'. Briefly, you have a repeating sequence of 5 rows and I want to aggregate the 2nd and 1st row from each repeat sequence and have that info represented in the&amp;nbsp; 'Repeat Measure Time Range' for the 5 rows from their respective sequence.&amp;nbsp;Currently I have to do that manually.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Some help would be really appreciated.&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sebastien&lt;/P&gt;&lt;P&gt;Here's the table&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;New Table( "repeated measurement significance",
	Add Rows( 45 ),
	New Column( "concatenated 'by' variable",
		Character,
		"Nominal",
		Set Selected,
		Set Values(
			{"709547, 700 µg #", "709547, 700 µg #", "709547, 700 µg #",
			"709547, 700 µg #", "709547, 700 µg #", "709547, 700 µg #",
			"709547, 700 µg #", "709547, 700 µg #", "709547, 700 µg #",
			"709547, 700 µg #", "709547, 700 µg #", "709547, 700 µg #",
			"709547, 700 µg #", "709547, 700 µg #", "709547, 700 µg #",
			"1394216, 300 µg #", "1394216, 300 µg #", "1394216, 300 µg #",
			"1394216, 300 µg #", "1394216, 300 µg #", "1394216, 300 µg #",
			"1394216, 300 µg #", "1394216, 300 µg #", "1394216, 300 µg #",
			"1394216, 300 µg #", "1394216, 300 µg #", "1394216, 300 µg #",
			"1394216, 300 µg #", "1394216, 300 µg #", "1394216, 300 µg #",
			"PBS, 0 ug #", "PBS, 0 ug #", "PBS, 0 ug #", "PBS, 0 ug #",
			"PBS, 0 ug #", "PBS, 0 ug #", "PBS, 0 ug #", "PBS, 0 ug #",
			"PBS, 0 ug #", "PBS, 0 ug #", "PBS, 0 ug #", "PBS, 0 ug #",
			"PBS, 0 ug #", "PBS, 0 ug #", "PBS, 0 ug #"}
		)
	),
	New Column( "Repeat Measure Significance",
		Numeric,
		"Continuous",
		Format( "PValue", 12 ),
		Set Selected,
		Set Values(
			[., ., 0.056681634999684, 0.028340817499842, 0.971659182500158, ., .,
			0.0132403647849572, 0.00662018239247861, 0.993379817607521, ., .,
			0.0226394499943625, 0.0113197249971813, 0.988680275002819, ., .,
			0.077484061203898, 0.038742030601949, 0.961257969398051, ., .,
			0.0235819507950532, 0.0117909753975266, 0.988209024602473, ., .,
			0.0136375428618946, 0.00681877143094731, 0.993181228569053, ., .,
			0.436392991056214, 0.218196495528107, 0.781803504471893, ., .,
			0.00150837641570982, 0.000754188207854909, 0.999245811792145, ., .,
			0.00415746703431022, 0.00207873351715511, 0.997921266482845]
		)
	),
	New Column( "Sig Level",
		Character,
		"Nominal",
		Set Selected,
		Set Values(
			{"14", "0", "Prob &amp;gt; |t|", "Prob &amp;gt; t", "Prob &amp;lt; t", "28", "0",
			"Prob &amp;gt; |t|", "Prob &amp;gt; t", "Prob &amp;lt; t", "28", "14", "Prob &amp;gt; |t|",
			"Prob &amp;gt; t", "Prob &amp;lt; t", "14", "0", "Prob &amp;gt; |t|", "Prob &amp;gt; t", "Prob &amp;lt; t",
			"28", "0", "Prob &amp;gt; |t|", "Prob &amp;gt; t", "Prob &amp;lt; t", "28", "14",
			"Prob &amp;gt; |t|", "Prob &amp;gt; t", "Prob &amp;lt; t", "14", "0", "Prob &amp;gt; |t|",
			"Prob &amp;gt; t", "Prob &amp;lt; t", "28", "0", "Prob &amp;gt; |t|", "Prob &amp;gt; t", "Prob &amp;lt; t",
			"28", "14", "Prob &amp;gt; |t|", "Prob &amp;gt; t", "Prob &amp;lt; t"}
		)
	),
	New Column( "Repeat Measure Time Range",
		Character,
		"Nominal",
		Set Selected,
		Set Values(
			{"0-14", "0-14", "0-14", "0-14", "0-14", "0-28", "0-28", "0-28", "0-28",
			"0-28", "14-28", "14-28", "14-28", "14-28", "14-28", "0-14", "0-14",
			"0-14", "0-14", "0-14", "0-28", "0-28", "0-28", "0-28", "0-28", "14-28",
			"14-28", "14-28", "14-28", "14-28", "0-14", "0-14", "0-14", "0-14",
			"0-14", "0-28", "0-28", "0-28", "0-28", "0-28", "14-28", "14-28",
			"14-28", "14-28", "14-28"}
		)
	)
)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 10 Jun 2023 23:25:21 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Help-with-Sequence-formula/m-p/353376#M60283</guid>
      <dc:creator>Sburel</dc:creator>
      <dc:date>2023-06-10T23:25:21Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Sequence formula</title>
      <link>https://community.jmp.com/t5/Discussions/Help-with-Sequence-formula/m-p/353397#M60286</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/18041"&gt;@Sburel&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try this as a quick&amp;nbsp; fix:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt; 	New Column("Column 5", Character, "Nominal", Formula(If(Row() == 1, Lag(:Sig Level, -1) || "-" || :Sig Level, Lag(:Sig Level) == "Prob &amp;lt; t", Lag(:Sig Level, -1) || "-" || :Sig Level, Lag(:Column 5))), Set Selected);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt;there must be a better way of getting what you want than a formula in a column but this should do the trick.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jan 2021 19:56:39 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Help-with-Sequence-formula/m-p/353397#M60286</guid>
      <dc:creator>ron_horne</dc:creator>
      <dc:date>2021-01-27T19:56:39Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Sequence formula</title>
      <link>https://community.jmp.com/t5/Discussions/Help-with-Sequence-formula/m-p/353443#M60291</link>
      <description>Hi Ron,&lt;BR /&gt;&lt;BR /&gt;thanks a lot for the quick fix. It certainly did the job. Having said that, I would be interested in hearing about the better way to do this.&lt;BR /&gt;&lt;BR /&gt;Best,&lt;BR /&gt;&lt;BR /&gt;Sebastien</description>
      <pubDate>Wed, 27 Jan 2021 20:53:08 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Help-with-Sequence-formula/m-p/353443#M60291</guid>
      <dc:creator>Sburel</dc:creator>
      <dc:date>2021-01-27T20:53:08Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Sequence formula</title>
      <link>https://community.jmp.com/t5/Discussions/Help-with-Sequence-formula/m-p/353458#M60302</link>
      <description>&lt;P&gt;With respect to a better solution, I meant to say that these values could come from a previous or later stage of the process you are going through. Otherwise, at this point just use the formula.&lt;/P&gt;
&lt;P&gt;Glad i could help.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jan 2021 23:28:12 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Help-with-Sequence-formula/m-p/353458#M60302</guid>
      <dc:creator>ron_horne</dc:creator>
      <dc:date>2021-01-27T23:28:12Z</dc:date>
    </item>
  </channel>
</rss>

