<?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 Variable in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Creating-a-Variable/m-p/59359#M32570</link>
    <description>&lt;P&gt;If there are no gaps in the sequence for&amp;nbsp;&lt;EM&gt;Nback # of letters presented&amp;nbsp;&lt;/EM&gt;then I think the formula for &lt;EM&gt;Time in Trial&lt;/EM&gt; is just:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;:NBack# of Letters Presented - 1&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If there are gaps, then you'll need&amp;nbsp;a formula that combints &lt;A href="https://www.jmp.com/support/help/14/conditional-functions.shtml#114881" target="_self"&gt;conditional If()&lt;/A&gt; to check whether &lt;EM&gt;Nback# letters&lt;/EM&gt; is 1 and the &lt;A href="https://www.jmp.com/support/help/14/row-functions.shtml#246746" target="_self"&gt;Lag() function&lt;/A&gt; to get the value of &lt;EM&gt;Time in Trial&lt;/EM&gt; in the previous row so you can increment it.&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="JMPScreenSnapz217.png" style="width: 999px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/10984iDD11EB9C6A198A58/image-size/large?v=v2&amp;amp;px=999" role="button" title="JMPScreenSnapz217.png" alt="JMPScreenSnapz217.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 05 Jun 2018 14:59:06 GMT</pubDate>
    <dc:creator>Jeff_Perkinson</dc:creator>
    <dc:date>2018-06-05T14:59:06Z</dc:date>
    <item>
      <title>Creating a Variable</title>
      <link>https://community.jmp.com/t5/Discussions/Creating-a-Variable/m-p/59357#M32569</link>
      <description>&lt;P&gt;I have an issue while creating an overall measure of time. I have attached a screenshot that shows what the data looks like thus far. I need to now create a variable that is called "time in trial" where I basically take the "Nback start" minus the "Nback stop."&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;More specifically I would need several things to happen.&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. When "Nback # of letters presented" equals 1 the "time in trial" should equal 0. Then as the&amp;nbsp;&lt;SPAN&gt;"Nback # of letters presented" increases the "time in trial" should also increase.&amp;nbsp;&lt;BR /&gt;2. This increase should stop when I reach another 1 in&amp;nbsp;"Nback # of letters presented" and start back over at 0 for "time in trial."&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 999px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/10983iA108AA3E172D24B9/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;BR /&gt;Any guidance would be greatly appreciated.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jun 2018 14:14:50 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Creating-a-Variable/m-p/59357#M32569</guid>
      <dc:creator>tlsimons</dc:creator>
      <dc:date>2018-06-05T14:14:50Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a Variable</title>
      <link>https://community.jmp.com/t5/Discussions/Creating-a-Variable/m-p/59359#M32570</link>
      <description>&lt;P&gt;If there are no gaps in the sequence for&amp;nbsp;&lt;EM&gt;Nback # of letters presented&amp;nbsp;&lt;/EM&gt;then I think the formula for &lt;EM&gt;Time in Trial&lt;/EM&gt; is just:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;:NBack# of Letters Presented - 1&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If there are gaps, then you'll need&amp;nbsp;a formula that combints &lt;A href="https://www.jmp.com/support/help/14/conditional-functions.shtml#114881" target="_self"&gt;conditional If()&lt;/A&gt; to check whether &lt;EM&gt;Nback# letters&lt;/EM&gt; is 1 and the &lt;A href="https://www.jmp.com/support/help/14/row-functions.shtml#246746" target="_self"&gt;Lag() function&lt;/A&gt; to get the value of &lt;EM&gt;Time in Trial&lt;/EM&gt; in the previous row so you can increment it.&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="JMPScreenSnapz217.png" style="width: 999px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/10984iDD11EB9C6A198A58/image-size/large?v=v2&amp;amp;px=999" role="button" title="JMPScreenSnapz217.png" alt="JMPScreenSnapz217.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jun 2018 14:59:06 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Creating-a-Variable/m-p/59359#M32570</guid>
      <dc:creator>Jeff_Perkinson</dc:creator>
      <dc:date>2018-06-05T14:59:06Z</dc:date>
    </item>
  </channel>
</rss>

