<?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: Standardized residuals in two-way tables in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Standardized-residuals-in-two-way-tables/m-p/37011#M21730</link>
    <description>&lt;P&gt;Thank you for your script.&lt;/P&gt;&lt;P&gt;Actually there are two formulas for the std res: adjusted and not adjusted. The one you used was the adjusted one (which is fine), but there should be an error in the way pidot# and pdotj# are calculated. Unfortunately I can't really understand the script, hence I can not fix it. I simply added a row with the (slightly simpler) alternative formula, just to check where the problem is - in case you are still interested.&lt;/P&gt;</description>
    <pubDate>Fri, 10 Mar 2017 08:06:51 GMT</pubDate>
    <dc:creator>francesco_della</dc:creator>
    <dc:date>2017-03-10T08:06:51Z</dc:date>
    <item>
      <title>Standardized residuals in two-way tables</title>
      <link>https://community.jmp.com/t5/Discussions/Standardized-residuals-in-two-way-tables/m-p/36990#M21710</link>
      <description>&lt;P&gt;I should compute the standardized residuals for two-way (as well as multiway) tables - option CROSSLIST(STDRES) of PROC FREQ in SAS, if this helps. I didn't find any options, nor a suitable script. Any suggestion? Thank you.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Mar 2017 16:56:13 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Standardized-residuals-in-two-way-tables/m-p/36990#M21710</guid>
      <dc:creator>francesco_della</dc:creator>
      <dc:date>2017-03-09T16:56:13Z</dc:date>
    </item>
    <item>
      <title>Re: Standardized residuals in two-way tables</title>
      <link>https://community.jmp.com/t5/Discussions/Standardized-residuals-in-two-way-tables/m-p/36991#M21711</link>
      <description>&lt;P&gt;You can analyze two-way contingency tables using &lt;STRONG&gt;Analyze&lt;/STRONG&gt; &amp;gt; &lt;STRONG&gt;Fit Y by X&lt;/STRONG&gt; (launches the &lt;STRONG&gt;Contingency&lt;/STRONG&gt; platform) or by using &lt;STRONG&gt;Analyze&lt;/STRONG&gt; &amp;gt; &lt;STRONG&gt;Fit Model&lt;/STRONG&gt; (launches &lt;STRONG&gt;Nominal Logistic&lt;/STRONG&gt; platform&amp;nbsp;or &lt;STRONG&gt;Ordinal Logistic&lt;/STRONG&gt; platform, depending on modeling type of response variable). Unfortunately, none of these analyses provide the residual that you want.&lt;/P&gt;
&lt;P&gt;I am also unaware of any script for such a result.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Mar 2017 17:17:40 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Standardized-residuals-in-two-way-tables/m-p/36991#M21711</guid>
      <dc:creator>Mark_Bailey</dc:creator>
      <dc:date>2017-03-09T17:17:40Z</dc:date>
    </item>
    <item>
      <title>Re: Standardized residuals in two-way tables</title>
      <link>https://community.jmp.com/t5/Discussions/Standardized-residuals-in-two-way-tables/m-p/36992#M21712</link>
      <description>thank you :(&lt;/img&gt;</description>
      <pubDate>Thu, 09 Mar 2017 17:21:25 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Standardized-residuals-in-two-way-tables/m-p/36992#M21712</guid>
      <dc:creator>francesco_della</dc:creator>
      <dc:date>2017-03-09T17:21:25Z</dc:date>
    </item>
    <item>
      <title>Re: Standardized residuals in two-way tables</title>
      <link>https://community.jmp.com/t5/Discussions/Standardized-residuals-in-two-way-tables/m-p/36993#M21713</link>
      <description>&lt;P&gt;The computation is simple so I scripted it for you. It is a simple script without any extra features. It will launch the Contingency platform with your selected response and factor&amp;nbsp;and then add a new report at the bottom with the standardized residuals.&lt;/P&gt;
&lt;P&gt;I would appreciate it if you would independently verify the results, perhaps&amp;nbsp;running your example through SAS first and then JMP.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Mar 2017 18:13:39 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Standardized-residuals-in-two-way-tables/m-p/36993#M21713</guid>
      <dc:creator>Mark_Bailey</dc:creator>
      <dc:date>2017-03-09T18:13:39Z</dc:date>
    </item>
    <item>
      <title>Re: Standardized residuals in two-way tables</title>
      <link>https://community.jmp.com/t5/Discussions/Standardized-residuals-in-two-way-tables/m-p/37011#M21730</link>
      <description>&lt;P&gt;Thank you for your script.&lt;/P&gt;&lt;P&gt;Actually there are two formulas for the std res: adjusted and not adjusted. The one you used was the adjusted one (which is fine), but there should be an error in the way pidot# and pdotj# are calculated. Unfortunately I can't really understand the script, hence I can not fix it. I simply added a row with the (slightly simpler) alternative formula, just to check where the problem is - in case you are still interested.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Mar 2017 08:06:51 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Standardized-residuals-in-two-way-tables/m-p/37011#M21730</guid>
      <dc:creator>francesco_della</dc:creator>
      <dc:date>2017-03-10T08:06:51Z</dc:date>
    </item>
    <item>
      <title>Re: Standardized residuals in two-way tables</title>
      <link>https://community.jmp.com/t5/Discussions/Standardized-residuals-in-two-way-tables/m-p/37017#M21735</link>
      <description>&lt;P&gt;This formula is from the SAS documentation for the FREQ procedure:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.JPG" style="width: 229px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/5534i03880F239D62A5EC/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.JPG" alt="Capture.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I didn't see mention of an adjusted or not adjusted residual, only this formula.&amp;nbsp;You modification of the script is fine, but you can comment out the line with the adjusted formula. You are computing the residual&amp;nbsp;twice.&lt;/P&gt;
&lt;P&gt;What do you ;mean "there should be an error in the way pidot# and pdotj# are calculated?"&lt;/P&gt;
&lt;P&gt;Why do you prefer the un-adjusted version?&lt;/P&gt;</description>
      <pubDate>Fri, 10 Mar 2017 13:04:17 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Standardized-residuals-in-two-way-tables/m-p/37017#M21735</guid>
      <dc:creator>Mark_Bailey</dc:creator>
      <dc:date>2017-03-10T13:04:17Z</dc:date>
    </item>
    <item>
      <title>Re: Standardized residuals in two-way tables</title>
      <link>https://community.jmp.com/t5/Discussions/Standardized-residuals-in-two-way-tables/m-p/37021#M21738</link>
      <description>&lt;P&gt;I discovered what you meant by the error and corrected the computation. Also, the launch dialog now provides a choice between the adjusted or the not adjusted computation, with not adjusted as the default choice.&lt;/P&gt;
&lt;P&gt;Thanks for pointing out the error. That is why I asked for your review! I was taking a short cut and missed the important distinction in the counting process.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Mar 2017 13:49:56 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Standardized-residuals-in-two-way-tables/m-p/37021#M21738</guid>
      <dc:creator>Mark_Bailey</dc:creator>
      <dc:date>2017-03-10T13:49:56Z</dc:date>
    </item>
    <item>
      <title>Re: Standardized residuals in two-way tables</title>
      <link>https://community.jmp.com/t5/Discussions/Standardized-residuals-in-two-way-tables/m-p/37026#M21743</link>
      <description>&lt;P&gt;Now it's fine, I will definitely adopt it. Thank you again&lt;/P&gt;</description>
      <pubDate>Fri, 10 Mar 2017 15:44:45 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Standardized-residuals-in-two-way-tables/m-p/37026#M21743</guid>
      <dc:creator>francesco_della</dc:creator>
      <dc:date>2017-03-10T15:44:45Z</dc:date>
    </item>
    <item>
      <title>Re: Standardized residuals in two-way tables</title>
      <link>https://community.jmp.com/t5/Discussions/Standardized-residuals-in-two-way-tables/m-p/37030#M21747</link>
      <description>&lt;P&gt;Actually, I mistakenly got the computation of the not adjusted and adjusted backward. I fixed it. I also added the option analysis Freq role in case your data is pre-summarized. My apologies.&lt;/P&gt;
&lt;P&gt;Use the new script here.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Mar 2017 17:20:13 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Standardized-residuals-in-two-way-tables/m-p/37030#M21747</guid>
      <dc:creator>Mark_Bailey</dc:creator>
      <dc:date>2017-03-10T17:20:13Z</dc:date>
    </item>
    <item>
      <title>Re: Standardized residuals in two-way tables</title>
      <link>https://community.jmp.com/t5/Discussions/Standardized-residuals-in-two-way-tables/m-p/37032#M21749</link>
      <description>Got it, thanks. I hope it will be useful for somone else.</description>
      <pubDate>Fri, 10 Mar 2017 17:28:36 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Standardized-residuals-in-two-way-tables/m-p/37032#M21749</guid>
      <dc:creator>francesco_della</dc:creator>
      <dc:date>2017-03-10T17:28:36Z</dc:date>
    </item>
    <item>
      <title>Re: Standardized residuals in two-way tables</title>
      <link>https://community.jmp.com/t5/Discussions/Standardized-residuals-in-two-way-tables/m-p/37262#M21846</link>
      <description>&lt;P&gt;I fixed one problem and created another. My previous change accommodated cases where the data was pre-summarized and the count for each response-factor cell was available. Unfortunately, the script no longer accommodated the original case without pre-summarization. I fixed that with this latest version.&lt;/P&gt;
&lt;P&gt;BTW, the not adjusted residual is just the square root of the cell Chi square.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Mar 2017 20:49:19 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Standardized-residuals-in-two-way-tables/m-p/37262#M21846</guid>
      <dc:creator>Mark_Bailey</dc:creator>
      <dc:date>2017-03-15T20:49:19Z</dc:date>
    </item>
    <item>
      <title>Re: Standardized residuals in two-way tables</title>
      <link>https://community.jmp.com/t5/Discussions/Standardized-residuals-in-two-way-tables/m-p/37353#M21918</link>
      <description>&lt;P&gt;Thank you for the new version.&lt;/P&gt;&lt;P&gt;It's true what you say: the not adjusted residual is the square root of the cell Chi square, but still you should export the table to Excel to perform the easy calculations. Actually this is what I used to do before: with your script it's much faster.&lt;/P&gt;&lt;P&gt;If you want to check one more possible improvement, note that the script does not show the std residuals when either variable contains missing values. I mean: the table with the frequencies is displayed correctly (e.g. without missing values), but the residuals are not displayed at all. I tried to pre-filter the data table in order to avoid any missing values, but it didn't solve the issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 18 Mar 2017 09:47:58 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Standardized-residuals-in-two-way-tables/m-p/37353#M21918</guid>
      <dc:creator>francesco_della</dc:creator>
      <dc:date>2017-03-18T09:47:58Z</dc:date>
    </item>
  </channel>
</rss>

