<?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: Cross Variable T-Tests in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Cross-Variable-T-Tests/m-p/325101#M57456</link>
    <description>&lt;P&gt;You used Subject for 'blocking,' which is smart. It will have a random effect, though. You should compute the Treatment difference for a 'matched pairs' analysis. Otherwise, the subject variation will obscure the Treatment effect.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Alternative, use Fit Least Squares with Treatment, Device Status, and Subject as the effecfs. You can include an interaction term. Then you can use the various tests in this platform.&lt;/P&gt;</description>
    <pubDate>Thu, 22 Oct 2020 15:31:07 GMT</pubDate>
    <dc:creator>Mark_Bailey</dc:creator>
    <dc:date>2020-10-22T15:31:07Z</dc:date>
    <item>
      <title>Cross Variable T-Tests</title>
      <link>https://community.jmp.com/t5/Discussions/Cross-Variable-T-Tests/m-p/324685#M57410</link>
      <description>&lt;P&gt;I have a dataset with a categorical variable (treatment).&amp;nbsp;&amp;nbsp;&lt;BR /&gt;The data columns have comparisons that take place at different times (1, 2, 4, and 6).&lt;BR /&gt;For each comparison variable there are columns for "Device applied" and "No Device".&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;So a person could be either an active or placebo (treatment) with either a device applied or not applied for each comparison variable.&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;For example ... "Comparision 01" could have four different combinations ...&lt;BR /&gt;Treatment - No device&lt;BR /&gt;Treatment - Device&lt;BR /&gt;Placebo - No device&lt;BR /&gt;Placebo - Device&lt;BR /&gt;&lt;BR /&gt;Each of these would have its own mean.&amp;nbsp; What I'm trying to figure out how to do in JMP is to do cross-comparison T-tests which would compare "Placebo - No device" against "Treatment - device".&amp;nbsp; I can compare Active to active or Placebo to placebo, but I'm not seeing any way to compare across the groups.&lt;BR /&gt;&lt;BR /&gt;Do I just take the results from "Distribution" with Treatment as a "By" splitter and then do a "Test mean" by plugging in the comparison I want into the Hypothesis test?&amp;nbsp; &amp;nbsp;That seems a bit clunky.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 00:23:21 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Cross-Variable-T-Tests/m-p/324685#M57410</guid>
      <dc:creator>NathanFisk</dc:creator>
      <dc:date>2023-06-09T00:23:21Z</dc:date>
    </item>
    <item>
      <title>Re: Cross Variable T-Tests</title>
      <link>https://community.jmp.com/t5/Discussions/Cross-Variable-T-Tests/m-p/324762#M57412</link>
      <description>&lt;P&gt;This case is a classic 'two-way ANOVA" scenario Set up your data table with &lt;STRONG&gt;Condition&lt;/STRONG&gt; (Treatment or Placebo), &lt;STRONG&gt;Device&lt;/STRONG&gt; (Yes or No) and the &lt;STRONG&gt;Y&lt;/STRONG&gt; (response). Select &lt;STRONG&gt;Analyze &amp;gt; Fit Model&lt;/STRONG&gt;. Select Condition and Device, click Macros, and select Full Factorial. Select Y and click A. Click Run.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Everything you need is there.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Oct 2020 18:31:11 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Cross-Variable-T-Tests/m-p/324762#M57412</guid>
      <dc:creator>Mark_Bailey</dc:creator>
      <dc:date>2020-10-21T18:31:11Z</dc:date>
    </item>
    <item>
      <title>Re: Cross Variable T-Tests</title>
      <link>https://community.jmp.com/t5/Discussions/Cross-Variable-T-Tests/m-p/324808#M57417</link>
      <description>&lt;P&gt;Thanks - I've done that report but there is no table I can see which shows the T-tests comparing the cross-groups.&amp;nbsp; There is a Least Squares Means table for the Treatment*Device leverage plot, but there do not appear to be any t-tests of the means against each other. The red dropdown Student's T gives a generic letter report table but it isn't showing the actual t-test values.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Oh - and just to make sure I've got the data table set up properly ... the table has (essentially) two entries for each subject.&amp;nbsp; For example - Subject "HMA" exists both as row #1 and row #61 (there are 60 cases).&amp;nbsp; So there is a stacked effect where each subject has 2 entries to account for their Placebo/Active response and the Device/No Device response.&amp;nbsp; So the 60 cases in the data table create 120 rows (2 for each respondent).&amp;nbsp; That how the ANOVA needs to have its data structured?&lt;/P&gt;</description>
      <pubDate>Wed, 21 Oct 2020 21:21:35 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Cross-Variable-T-Tests/m-p/324808#M57417</guid>
      <dc:creator>NathanFisk</dc:creator>
      <dc:date>2020-10-21T21:21:35Z</dc:date>
    </item>
    <item>
      <title>Re: Cross Variable T-Tests</title>
      <link>https://community.jmp.com/t5/Discussions/Cross-Variable-T-Tests/m-p/325016#M57442</link>
      <description>&lt;P&gt;First of all, I do not recommend using the Student t-test in this post hoc analysis. You will experience inflated type I error rates. Use Tukey's method instead. Also, are you asking for the t-ratios? Why is that necessary?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This sounds like two separate, parallel studies. You obtain a response for Treatment (Placebo, Active) and another response for Device (Yes, No). Is that interpretation correct? I assumed that each subject was observed once with a combination of Treatment and Device.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Oct 2020 12:17:32 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Cross-Variable-T-Tests/m-p/325016#M57442</guid>
      <dc:creator>Mark_Bailey</dc:creator>
      <dc:date>2020-10-22T12:17:32Z</dc:date>
    </item>
    <item>
      <title>Re: Cross Variable T-Tests</title>
      <link>https://community.jmp.com/t5/Discussions/Cross-Variable-T-Tests/m-p/325095#M57453</link>
      <description>&lt;P&gt;The trial was set up in this manner...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;60 subjects were enrolled.&amp;nbsp;&lt;BR /&gt;These 60 subjects were assigned to either Active or Placebo treatments (final 40 active, 20 placebo)&lt;BR /&gt;All 60 subjects in addition to the treatment used a device on a section of the body (right side) with no device on the left side.&lt;BR /&gt;Evaluations were performed for several characteristics both by the subject and an expert observer.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;So all 60 subjects have a "device side" set of evaluations and a "no device" set of evaluations while 40 subjects are in the active arm and 20 in the placebo arm.&lt;BR /&gt;&lt;BR /&gt;I'm able to get t-test mean comparisons for the different evaluations of the 1st visit to the last visit. I can also get the t-test results for comparing the placebo group means to the active means for each visit. I can also get the t-tests for comparing the evaluation means for the device side against the no-device side.&amp;nbsp; What I'm trying to coax out are the t-tests that compare the means of the "Placebo - No Device" against the "Active - Device".&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;As an illustration, For "Evaluation01" I have the following means...&lt;BR /&gt;Placebo:&amp;nbsp; No Device: Visit 01:&amp;nbsp; 2.95&lt;BR /&gt;Placebo: Device Side: Visit 01: 2.95&lt;BR /&gt;Active: No Device: Visit 01: 2.65&lt;BR /&gt;Active: Device Side: Visit 01: 2.65&lt;BR /&gt;&lt;BR /&gt;Doing a t-test comparing Placebo: No device versus Placebo: Device Side (2.95 to 2.95) yields a value of 1 (obviously) because the two are the same.&amp;nbsp;&amp;nbsp;&lt;BR /&gt;Doing a t-test comparing Placebo: No device versus Active: No device (2.95 to 2.65) yields a value of 0.19 for the first visit.&lt;/P&gt;&lt;P&gt;Doing a t-test comparing Placebo: No device: Visit 01 versus Placebo: No device: Final Visit (before/after test of 2.95 to 2.65) yields a value of 0.03 (a significant difference).&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Comparing Placebo: No Device (2.95) directly to Active: Device Side (2.65) is where I'm having troubles getting that direct mean to mean t-test.&amp;nbsp; Obviously the result will be similar to the Placebo: No device vs. Active: No device test (since the numbers are the same). However, not all the evaluations are the same and so I need to do the tests on all of these cross-comparisons to confirm the presence (or absence) of any significant differences.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope that helps explain the setup a bit better.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Oct 2020 14:59:29 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Cross-Variable-T-Tests/m-p/325095#M57453</guid>
      <dc:creator>NathanFisk</dc:creator>
      <dc:date>2020-10-22T14:59:29Z</dc:date>
    </item>
    <item>
      <title>Re: Cross Variable T-Tests</title>
      <link>https://community.jmp.com/t5/Discussions/Cross-Variable-T-Tests/m-p/325101#M57456</link>
      <description>&lt;P&gt;You used Subject for 'blocking,' which is smart. It will have a random effect, though. You should compute the Treatment difference for a 'matched pairs' analysis. Otherwise, the subject variation will obscure the Treatment effect.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Alternative, use Fit Least Squares with Treatment, Device Status, and Subject as the effecfs. You can include an interaction term. Then you can use the various tests in this platform.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Oct 2020 15:31:07 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Cross-Variable-T-Tests/m-p/325101#M57456</guid>
      <dc:creator>Mark_Bailey</dc:creator>
      <dc:date>2020-10-22T15:31:07Z</dc:date>
    </item>
    <item>
      <title>Re: Cross Variable T-Tests</title>
      <link>https://community.jmp.com/t5/Discussions/Cross-Variable-T-Tests/m-p/325344#M57459</link>
      <description>&lt;P&gt;I actually did a matched pair approach the first time around, but I could never get the result to produce a t-test on the comparison of interest.&amp;nbsp; Below is an example of the output obtained when setting it up with the matched pair test in the Specialized Modeling menu.&amp;nbsp; The comparison puts the Subject evaluation on the non-device side and matches it against the Subject evaluation on the device side as the Y variables for the paired response and then sets the Active/Placebo variable as the "X grouping".&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;The matched pair will generate a table that shows the "Across Groups" means properly.&amp;nbsp; But is the "Test Across Groups" table's F-probability the T-test?&amp;nbsp; I've never seen a T-test manifested in that manner.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Oct 2020 16:20:15 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Cross-Variable-T-Tests/m-p/325344#M57459</guid>
      <dc:creator>NathanFisk</dc:creator>
      <dc:date>2020-10-22T16:20:15Z</dc:date>
    </item>
    <item>
      <title>Re: Cross Variable T-Tests</title>
      <link>https://community.jmp.com/t5/Discussions/Cross-Variable-T-Tests/m-p/325878#M57511</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Bumping to see if the matched pair "Test Across Groups" table's F-probability is the T-test I'm looking for that compares the cross groups.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Oct 2020 14:45:18 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Cross-Variable-T-Tests/m-p/325878#M57511</guid>
      <dc:creator>NathanFisk</dc:creator>
      <dc:date>2020-10-23T14:45:18Z</dc:date>
    </item>
    <item>
      <title>Re: Cross Variable T-Tests</title>
      <link>https://community.jmp.com/t5/Discussions/Cross-Variable-T-Tests/m-p/326106#M57527</link>
      <description>&lt;P&gt;Bump back, Nathan!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I meant 'matched pairs' in the general sense of blocking, not the specific sense of the Matched Pairs analysis. That analysis is not appropriate because it is a one-sample &lt;EM&gt;t&lt;/EM&gt;-test of the mean. You have a two-way design with a random effect.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So I mocked up your data:&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="data.JPG" style="width: 301px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/27631i35A390A87E08F527/image-size/large?v=v2&amp;amp;px=999" role="button" title="data.JPG" alt="data.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This set up allows me to specify this model for the analysis:&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="dialog.JPG" style="width: 824px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/27632iF0B9970C3F02D66D/image-size/large?v=v2&amp;amp;px=999" role="button" title="dialog.JPG" alt="dialog.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There are no fixed or random effects in the simulated response in this mock up. The results available are:&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="fit least squares.JPG" style="width: 653px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/27633i7D512002971C3CCA/image-size/large?v=v2&amp;amp;px=999" role="button" title="fit least squares.JPG" alt="fit least squares.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now you can use one of several approaches to make the comparisons that you want.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Multiple Comparisons&lt;/STRONG&gt;: open the &lt;STRONG&gt;Effect Details&lt;/STRONG&gt; outline, click the red triangle next to the interaction term &lt;STRONG&gt;Treatment*Device&lt;/STRONG&gt;, and select &lt;STRONG&gt;LSMeans Tukey HSD&lt;/STRONG&gt;.&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="tukey.JPG" style="width: 416px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/27634i3FA5D8A86D32E04B/image-size/large?v=v2&amp;amp;px=999" role="button" title="tukey.JPG" alt="tukey.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Contrasts&lt;/STRONG&gt;: open the &lt;STRONG&gt;Effect Details&lt;/STRONG&gt; outline, click the red triangle next to the interaction term &lt;STRONG&gt;Treatment*Device&lt;/STRONG&gt;, and select &lt;STRONG&gt;LSMeans Contrast&lt;/STRONG&gt;.&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="contrast.JPG" style="width: 301px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/27635i319473C522A89765/image-size/large?v=v2&amp;amp;px=999" role="button" title="contrast.JPG" alt="contrast.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Use this interface to define one or more specific contrasts (tests) and the joint contrast.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Custom Tests&lt;/STRONG&gt;: click the red triangle at the top of the platform, and select &lt;STRONG&gt;Estimates &amp;gt;&amp;nbsp;Custom Tests&lt;/STRONG&gt;.&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="custom test.JPG" style="width: 325px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/27636iFB398D94D7B677FA/image-size/large?v=v2&amp;amp;px=999" role="button" title="custom test.JPG" alt="custom test.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Use this interface to construct one or more custom tests and the joint test.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please see &lt;A href="https://www.jmp.com/support/help/en/15.2/index.shtml#page/jmp/effect-details.shtml#ww319025" target="_self"&gt;Effect Details&lt;/A&gt;, &lt;A href="https://www.jmp.com/support/help/en/15.2/index.shtml#page/jmp/effect-details.shtml#ww625442" target="_self"&gt;Contrasts&lt;/A&gt;, and &lt;A href="https://www.jmp.com/support/help/en/15.2/#page/jmp/custom-test.shtml#" target="_self"&gt;Custom Test&lt;/A&gt; in the JMP Documentation.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Oct 2020 18:41:12 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Cross-Variable-T-Tests/m-p/326106#M57527</guid>
      <dc:creator>Mark_Bailey</dc:creator>
      <dc:date>2020-10-23T18:41:12Z</dc:date>
    </item>
    <item>
      <title>Re: Cross Variable T-Tests</title>
      <link>https://community.jmp.com/t5/Discussions/Cross-Variable-T-Tests/m-p/326558#M57588</link>
      <description>&lt;P&gt;Thank you for you assistance on this question ... it has been very helpful.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My understanding is that my primary interest is in the Tukey HSDs report where I believe the LSMeans Differences table has a red arrow that allows the "Ordered differences" report.&amp;nbsp; In the Ordered Differences report it lists each comparison of the differences between the means along with the p-value of the test.&amp;nbsp; This p-value is the summary statistic of the test comparing the two means.&amp;nbsp; Sound right?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Oct 2020 18:55:23 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Cross-Variable-T-Tests/m-p/326558#M57588</guid>
      <dc:creator>NathanFisk</dc:creator>
      <dc:date>2020-10-26T18:55:23Z</dc:date>
    </item>
    <item>
      <title>Re: Cross Variable T-Tests</title>
      <link>https://community.jmp.com/t5/Discussions/Cross-Variable-T-Tests/m-p/326836#M57608</link>
      <description>&lt;P&gt;Sounds right.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Oct 2020 11:56:10 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Cross-Variable-T-Tests/m-p/326836#M57608</guid>
      <dc:creator>Mark_Bailey</dc:creator>
      <dc:date>2020-10-27T11:56:10Z</dc:date>
    </item>
  </channel>
</rss>

