<?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: Weighted Kappas in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Weighted-Kappas/m-p/361215#M61078</link>
    <description>&lt;P&gt;thank you &lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/70"&gt;@gzmorgan0&lt;/a&gt; for the script,&lt;/P&gt;
&lt;P&gt;For some reason i get an error when running the script. i am using JMP 14.2.&lt;/P&gt;
&lt;P&gt;any clue how to fix it?&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ron_horne_0-1613931253805.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/30479i767219B649B3980B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ron_horne_0-1613931253805.png" alt="ron_horne_0-1613931253805.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 21 Feb 2021 18:15:16 GMT</pubDate>
    <dc:creator>ron_horne</dc:creator>
    <dc:date>2021-02-21T18:15:16Z</dc:date>
    <item>
      <title>Weighted Kappas</title>
      <link>https://community.jmp.com/t5/Discussions/Weighted-Kappas/m-p/95417#M38770</link>
      <description>&lt;P&gt;Hi, we have a study where two raters are rating a 50 items for quality on a scale of 1-4. We wanted to do a weighted kappa in JMP; I entered the data, set the data type as ordinal, but JMP seems to only produce a simple Kappa when I Fit Y by X and look at the Agreement Statistic.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is JMP capable of calculating a weighted kappa?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Sat, 05 Jan 2019 21:48:51 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Weighted-Kappas/m-p/95417#M38770</guid>
      <dc:creator>bky</dc:creator>
      <dc:date>2019-01-05T21:48:51Z</dc:date>
    </item>
    <item>
      <title>Re: Weighted Kappas</title>
      <link>https://community.jmp.com/t5/Discussions/Weighted-Kappas/m-p/104332#M38807</link>
      <description>&lt;P&gt;I did not find a buit-in solution to your question.&amp;nbsp; Of course JMP is capable, but it needs a script (unless one of the JMP developers has an alternate solution).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You did not report which version of JMP and which operating system you have, so I am not sure this will work for you. Attached is a script that I have tested on JMP 12,13 and 14.&amp;nbsp; It uses methods to be backward compatible with JMP12.&amp;nbsp; It :&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Runs on the current data table and calls up a Contingency analysis.&amp;nbsp; In other words, it uses the JMP UI.&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;The script is written for one contingency report, that is, one Y and one X ordinal variable.&lt;/LI&gt;
&lt;LI&gt;Specifies &lt;STRONG&gt;Expected&lt;/STRONG&gt; values to be included in the contingency table to reduce the complexity (and risk) of scripting errors.&lt;/LI&gt;
&lt;LI&gt;Makes a table from the Contingency table.&lt;/LI&gt;
&lt;LI&gt;From that, it creates the observed, and expected probabilities.&lt;/LI&gt;
&lt;LI&gt;It calculates the standard kappa where the weight matrix is the Identity matrix; a Linear weight 1-&amp;nbsp; abs(i - j)/(k-1);&amp;nbsp; and a quadratic weight which is 1 - square( (i-j)/(k-1) ). See the references reported in the script.&lt;/LI&gt;
&lt;LI&gt;The value of k, kL and kQ are appended to the JMP report (see below).&lt;/LI&gt;
&lt;LI&gt;The calculated kappa is reported as a check since it should match the kappa reported by JMP&lt;/LI&gt;
&lt;LI&gt;Weighted errors and Confidence Intervals are not calculated in this script.&amp;nbsp;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;This might be a wish list item for future JMP versions. Since some references for weighted kappa include more than Linear and Quadratic weights for ordinal categories, you should specify if this wish list item should allow for custom weights.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The script is attached and a sample data set where column &lt;STRONG&gt;n&lt;/STRONG&gt; should be used as &lt;STRONG&gt;Freq.&amp;nbsp;&lt;/STRONG&gt;slide58.jmp is a summary table from the third reported reference (page 58). It is one of 10 tables used to test the script.&amp;nbsp; I hope this helps.&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="image.png" style="width: 616px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/15036i6C2306F62622B004/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Jan 2019 10:50:20 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Weighted-Kappas/m-p/104332#M38807</guid>
      <dc:creator>gzmorgan0</dc:creator>
      <dc:date>2019-01-08T10:50:20Z</dc:date>
    </item>
    <item>
      <title>Re: Weighted Kappas</title>
      <link>https://community.jmp.com/t5/Discussions/Weighted-Kappas/m-p/361215#M61078</link>
      <description>&lt;P&gt;thank you &lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/70"&gt;@gzmorgan0&lt;/a&gt; for the script,&lt;/P&gt;
&lt;P&gt;For some reason i get an error when running the script. i am using JMP 14.2.&lt;/P&gt;
&lt;P&gt;any clue how to fix it?&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ron_horne_0-1613931253805.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/30479i767219B649B3980B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ron_horne_0-1613931253805.png" alt="ron_horne_0-1613931253805.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 21 Feb 2021 18:15:16 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Weighted-Kappas/m-p/361215#M61078</guid>
      <dc:creator>ron_horne</dc:creator>
      <dc:date>2021-02-21T18:15:16Z</dc:date>
    </item>
    <item>
      <title>Re: Weighted Kappas</title>
      <link>https://community.jmp.com/t5/Discussions/Weighted-Kappas/m-p/361727#M61131</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/958"&gt;@ron_horne&lt;/a&gt;, hello.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am on JMP 14.3. Could you send an example, an anonymized data table.&amp;nbsp; Before declaring it a version issue, I'd like to check it out. My script had a few checks included, however, I could have missed a corner case.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Feb 2021 09:34:16 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Weighted-Kappas/m-p/361727#M61131</guid>
      <dc:creator>gzmorgan0</dc:creator>
      <dc:date>2021-02-23T09:34:16Z</dc:date>
    </item>
    <item>
      <title>Re: Weighted Kappas</title>
      <link>https://community.jmp.com/t5/Discussions/Weighted-Kappas/m-p/361728#M61132</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/958"&gt;@ron_horne&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To be specific, I use JMP PRO. I tested on JMP PRO 13.2.1 and got the same results.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Feb 2021 09:40:13 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Weighted-Kappas/m-p/361728#M61132</guid>
      <dc:creator>gzmorgan0</dc:creator>
      <dc:date>2021-02-23T09:40:13Z</dc:date>
    </item>
    <item>
      <title>Re: Weighted Kappas</title>
      <link>https://community.jmp.com/t5/Discussions/Weighted-Kappas/m-p/361737#M61139</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/70"&gt;@gzmorgan0&lt;/a&gt; ,&lt;/P&gt;
&lt;P&gt;this is what i get using the example file Slide58, not my own data. it also produces the same error on JMP11 and JMP 15.&lt;/P&gt;
&lt;P&gt;all i did was open the file and run the script.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;thank you,&lt;/P&gt;
&lt;P&gt;Ron&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Feb 2021 11:45:46 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Weighted-Kappas/m-p/361737#M61139</guid>
      <dc:creator>ron_horne</dc:creator>
      <dc:date>2021-02-23T11:45:46Z</dc:date>
    </item>
    <item>
      <title>Re: Weighted Kappas</title>
      <link>https://community.jmp.com/t5/Discussions/Weighted-Kappas/m-p/361857#M61152</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/70"&gt;@gzmorgan0&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;for example this data set. each column has a different assessment of the same scale.&lt;/P&gt;
&lt;P&gt;please do let me know if you mange to run it using the script.&lt;/P&gt;
&lt;P&gt;many thanks,&lt;/P&gt;
&lt;P&gt;ron&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Feb 2021 15:50:18 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Weighted-Kappas/m-p/361857#M61152</guid>
      <dc:creator>ron_horne</dc:creator>
      <dc:date>2021-02-23T15:50:18Z</dc:date>
    </item>
    <item>
      <title>Re: Weighted Kappas</title>
      <link>https://community.jmp.com/t5/Discussions/Weighted-Kappas/m-p/363074#M61284</link>
      <description>&lt;P&gt;Hi Ron,&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/958"&gt;@ron_horne&lt;/a&gt;&amp;nbsp;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sorry for the late reply. I ran the weigthed Kappa script while your subset table was the current data table. I specified BP1 as Y and BP2 as X. the results are attached as a .jrn file. Below is a snippet.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 398px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/30731iCD2997D1D0F83C7E/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;When you run the script:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;does the contingency table contain Total %, Col %,&amp;nbsp; Row % and Expected?&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;I suggest you comment out line 88 of the script that deletes the table made from the contingency table. Then run the script.&amp;nbsp; Does a table get created and does it look like this?&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&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/30733iE36E0E7857E57252/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;The error you reported appears that it cannot execute&amp;nbsp; cmat = dt[idx,ccols];&amp;nbsp; idx is an index of rows where Cell == "Count"&amp;nbsp; or later "Expected" and ccols are continuous columns which should be the list&amp;nbsp;{"0", "0.25", "0.5", "0.75", "1"}. If the Cell names are not the same, maybe an extra space or something it could throw off the script, maybe a more robust solutions is to use where Contains(:Cell, "Count")&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Just guessing here.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Feb 2021 10:25:26 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Weighted-Kappas/m-p/363074#M61284</guid>
      <dc:creator>gzmorgan0</dc:creator>
      <dc:date>2021-02-26T10:25:26Z</dc:date>
    </item>
    <item>
      <title>Re: Weighted Kappas</title>
      <link>https://community.jmp.com/t5/Discussions/Weighted-Kappas/m-p/363116#M61287</link>
      <description>&lt;P&gt;Thank you &lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/70"&gt;@gzmorgan0&lt;/a&gt; ,&lt;/P&gt;
&lt;P&gt;I do manage to run it row by row but not as a function. That is the big surprise. in any case i do manage to produce the actual numbers and i do not need to do this many times so i am fine.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Many thanks,&lt;/P&gt;
&lt;P&gt;ron&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Feb 2021 11:42:17 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Weighted-Kappas/m-p/363116#M61287</guid>
      <dc:creator>ron_horne</dc:creator>
      <dc:date>2021-02-26T11:42:17Z</dc:date>
    </item>
    <item>
      <title>Re: Weighted Kappas</title>
      <link>https://community.jmp.com/t5/Discussions/Weighted-Kappas/m-p/407173#M65718</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I couldn't get this script to run as is and anyway I wanted a function to use within scripts rather than something interactive, so I adapted this code to create a function. I also added calculation of standard errors and asymptotic confidence intervals and dealing with BY variables.&lt;/P&gt;&lt;P&gt;To use it just include it in your script, run a contingency analysis and assign it to a variable and then pass it to the function. The function will add an outline item to each Kappa table giving the linear and quadratic weighted Kappas. Let me know if you discover any errors.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Include( Udir || "\Weighted Kappa Function.jsl" );

CT = Contingency( Y( :Comparison ), X( :Reference ), Contingency Table(), Tests( 0 ) );
CT2 = Contingency( by( :Rater), Y( :Comparison ), X( :Reference ), Contingency Table(), Tests( 0 ) );

WeightedKappa(CT);
WeightedKappa(CT2);s&lt;/CODE&gt;&amp;nbsp;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Aug 2021 22:50:59 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Weighted-Kappas/m-p/407173#M65718</guid>
      <dc:creator>ghartel</dc:creator>
      <dc:date>2021-08-05T22:50:59Z</dc:date>
    </item>
    <item>
      <title>Re: Weighted Kappas</title>
      <link>https://community.jmp.com/t5/Discussions/Weighted-Kappas/m-p/729831#M91250</link>
      <description>&lt;P&gt;I am trying to use your script, I put this on the end,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt0 = Current Data Table();

CT = dt0 &amp;lt;&amp;lt; Contingency(
Contingency Table( Expected( 1 )), Agreement Statistic( 1 ), Tests(0) );

WeightedKappa( CT );&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;And it is not working, nothing is being appended. &amp;nbsp; What am I doing wrong?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I get an error saying it is not a contingency table, then nothing is appended. &amp;nbsp;Suggestions? &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Mar 2024 02:27:13 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Weighted-Kappas/m-p/729831#M91250</guid>
      <dc:creator>lcmaley</dc:creator>
      <dc:date>2024-03-05T02:27:13Z</dc:date>
    </item>
    <item>
      <title>Re: Weighted Kappas</title>
      <link>https://community.jmp.com/t5/Discussions/Weighted-Kappas/m-p/729882#M91256</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/52491"&gt;@lcmaley&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;I had to brush off some rust, since I have not looked at my script since for multiple years.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You should always mentions which version of JMP you are using. That said, I suggest you use&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/8144"&gt;@ghartel&lt;/a&gt;&amp;nbsp;'s solution posted in 2021.&lt;/P&gt;
&lt;P&gt;Download the Weighted Kappa Function.jsl that was provided in the &lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/8144"&gt;@ghartel&lt;/a&gt;&amp;nbsp;&amp;nbsp;post, and save it to a drive for your scripts.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note, the Weighted Kappa Function solution includes the Std Err and confidence limits, as well as, a By variable; my script did not.&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/8144"&gt;@ghartel&lt;/a&gt;&amp;nbsp;'s solution is a much better solution.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Below is the JSL I used to run the Weighted Kappa Function, for the sample table provided with my original script.&amp;nbsp; &amp;nbsp;See the attached screenshot of the result for the JMP table slide58.jmp.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Udir can be any drive you wish and the data table and function can be in different directories.&lt;/LI&gt;
&lt;LI&gt;You do not need to call out each option for the Contingency, likely, you have defaults set up. However, Counts and Expected need to be included in your Contingency Platform options or called out in your script.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Kudos to&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/8144"&gt;@ghartel&lt;/a&gt;&amp;nbsp;for the terrific function!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default to Here(1);
Udir ="C:\temp";

dt = open(Udir || "\slide58.jmp");

Include( Udir || "\Weighted Kappa Function.jsl" );

CT = dt &amp;lt;&amp;lt; Contingency(
	Y( :Y ),
	X( :X ),
	Freq( :n ),
	Contingency Table(
		Count( 1, Format( "Fixed Dec", 8, 0 ) ),
		Total %( 1, Format( "Fixed Dec", 8, 2 ) ),
		Col %( 1, Format( "Fixed Dec", 8, 2 ) ),
		Row %( 1, Format( "Fixed Dec", 8, 2 ) ),
		Expected( 1, Format( "Best", 8 ) ),
		Deviation( 0, Format( "Best", 8 ) ),
		Cell Chi Square( 0, Format( "Fixed Dec", 8, 4 ) ),
		Col Cum( 0, Format( "Fixed Dec", 8, 0 ) ),
		Col Cum %( 0, Format( "Fixed Dec", 8, 2 ) ),
		Row Cum( 0, Format( "Fixed Dec", 8, 0 ) ),
		Row Cum %( 0, Format( "Fixed Dec", 8, 2 ) )
	),
	Agreement Statistic( 1 )
);


WeightedKappa(CT);
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Mar 2024 06:16:34 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Weighted-Kappas/m-p/729882#M91256</guid>
      <dc:creator>gzmorgan0</dc:creator>
      <dc:date>2024-03-05T06:16:34Z</dc:date>
    </item>
    <item>
      <title>Re: Weighted Kappas</title>
      <link>https://community.jmp.com/t5/Discussions/Weighted-Kappas/m-p/729883#M91257</link>
      <description>&lt;P&gt;See attachment&lt;/P&gt;</description>
      <pubDate>Tue, 05 Mar 2024 06:17:31 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Weighted-Kappas/m-p/729883#M91257</guid>
      <dc:creator>gzmorgan0</dc:creator>
      <dc:date>2024-03-05T06:17:31Z</dc:date>
    </item>
    <item>
      <title>Re: Weighted Kappas</title>
      <link>https://community.jmp.com/t5/Discussions/Weighted-Kappas/m-p/730001#M91276</link>
      <description>&lt;P&gt;Sorry, I am using JMP Pro 17.0.0 on a Mac. &amp;nbsp; I tried what you had but it kept duplicating the path. &amp;nbsp;So I changed it to:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = open("Subset of Data for Kappa index.jmp");

Include("Weighted Kappa.jsl" );&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Which does open the file (I am trying the file on here first, mine is a little more complicated and I wanted to make sure it worked with the file on here), but then I get an error like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Weighted Kappa.jsl includes itself through a closed path.:&lt;/P&gt;&lt;P&gt;&amp;nbsp;Weighted Kappa.jsl in access or evaluation of 'Include' ,&lt;SPAN class=""&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Include/*###*/("Weighted Kappa.jsl")&lt;/P&gt;</description>
      <pubDate>Tue, 05 Mar 2024 14:50:55 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Weighted-Kappas/m-p/730001#M91276</guid>
      <dc:creator>lcmaley</dc:creator>
      <dc:date>2024-03-05T14:50:55Z</dc:date>
    </item>
    <item>
      <title>Re: Weighted Kappas</title>
      <link>https://community.jmp.com/t5/Discussions/Weighted-Kappas/m-p/730210#M91301</link>
      <description>&lt;P&gt;you need to say&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;include("Weighted Kappa Function.jsl");&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Mar 2024 10:55:10 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Weighted-Kappas/m-p/730210#M91301</guid>
      <dc:creator>ghartel</dc:creator>
      <dc:date>2024-03-06T10:55:10Z</dc:date>
    </item>
    <item>
      <title>Re: Weighted Kappas</title>
      <link>https://community.jmp.com/t5/Discussions/Weighted-Kappas/m-p/730488#M91344</link>
      <description>&lt;P&gt;I did try that at first and it did not work. &amp;nbsp;I changed it to without function because that was the name of my script. &amp;nbsp; I changed the script to match Weighted Kappa Function.jsl and it still does not work. &amp;nbsp;I am getting the same error&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Weighted Kappa.jsl includes itself through a closed path.:&lt;/P&gt;&lt;P&gt;&amp;nbsp;Weighted Kappa.jsl in access or evaluation of 'Include' ,&lt;SPAN class=""&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Include/*###*/("Weighted Kappa Function.jsl")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Here is my code I am putting with the function:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default to Here(1);

dt = open("Subset of Data for Kappa index.jmp");

Include("Weighted Kappa Function.jsl" );

CT = dt &amp;lt;&amp;lt; Contingency(
	
	Contingency Table(
		Count( 1, Format( "Fixed Dec", 8, 0 ) ),
		Total %( 1, Format( "Fixed Dec", 8, 2 ) ),
		Col %( 1, Format( "Fixed Dec", 8, 2 ) ),
		Row %( 1, Format( "Fixed Dec", 8, 2 ) ),
		Expected( 1, Format( "Best", 8 ) ),
		Deviation( 0, Format( "Best", 8 ) ),
		Cell Chi Square( 0, Format( "Fixed Dec", 8, 4 ) ),
		Col cumulative( 0, Format( "Fixed Dec", 8, 0 ) ),
		Col cumulative %( 0, Format( "Fixed Dec", 8, 2 ) ),
		Row cumulative( 0, Format( "Fixed Dec", 8, 0 ) ),
		Row cumulative %( 0, Format( "Fixed Dec", 8, 2 ) )
	),
	Agreement Statistic( 1 )
);


WeightedKappa(CT);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Mar 2024 16:07:41 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Weighted-Kappas/m-p/730488#M91344</guid>
      <dc:creator>lcmaley</dc:creator>
      <dc:date>2024-03-07T16:07:41Z</dc:date>
    </item>
    <item>
      <title>Re: Weighted Kappas</title>
      <link>https://community.jmp.com/t5/Discussions/Weighted-Kappas/m-p/730784#M91366</link>
      <description>&lt;P&gt;are you actually getting a contingency table? I don't see you specifying an X and a Y in your table. The following code works on my system (V17.2.0, Windows 10)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
Include("Weighted Kappa Function.jsl" );
dt = Open( "$SAMPLE_DATA/Prime Minister Ratings.jmp" );
CT = dt &amp;lt;&amp;lt; Contingency(
	Y( :Second Survey ),
	X( :First Survey ),
	Freq( :Count ),
	Tests( 0 ),
	Agreement Statistic( 1 )
);

WeightedKappa(CT);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Mar 2024 23:25:25 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Weighted-Kappas/m-p/730784#M91366</guid>
      <dc:creator>ghartel</dc:creator>
      <dc:date>2024-03-07T23:25:25Z</dc:date>
    </item>
    <item>
      <title>Re: Weighted Kappas</title>
      <link>https://community.jmp.com/t5/Discussions/Weighted-Kappas/m-p/733309#M91469</link>
      <description>&lt;P&gt;Sorry, I was traveling. &amp;nbsp;This way I do not get a contingency table. &amp;nbsp;I tried it with the X and Y specified and did the same thing. &amp;nbsp;I just took the X and Y out so I could use it with any table. &amp;nbsp;It just brings up the dialog box for me to enter the X and Y.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Open( "Subset of Data for Kappa index.jmp" );

Include( "Weighted Kappa Function.jsl" );

CT = dt &amp;lt;&amp;lt; Contingency(
	
	Contingency Table(
		Y( :BP1),
		X( :BP2 ),
		Count( 1, Format( "Fixed Dec", 8, 0 ) ),
		Total %( 1, Format( "Fixed Dec", 8, 2 ) ),
		Col %( 1, Format( "Fixed Dec", 8, 2 ) ),
		Row %( 1, Format( "Fixed Dec", 8, 2 ) ),
		Expected( 1, Format( "Best", 8 ) ),
		Deviation( 0, Format( "Best", 8 ) ),
		Cell Chi Square( 0, Format( "Fixed Dec", 8, 4 ) ),
		Col cumulative( 0, Format( "Fixed Dec", 8, 0 ) ),
		Col cumulative %( 0, Format( "Fixed Dec", 8, 2 ) ),
		Row cumulative( 0, Format( "Fixed Dec", 8, 0 ) ),
		Row cumulative %( 0, Format( "Fixed Dec", 8, 2 ) )
	),
	Agreement Statistic( 1 )
);


WeightedKappa( CT );&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I do get a contingency table when I run this, but nothing is appended:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt0 = Current Data Table();

tsub = Subscribe to Data Table List( , On Open( WeightedKappa ) );

reportc = Contingency(
	Contingency Table( Expected( 1 ) ),
	Agreement Statistic( 1 ),
	&amp;lt;&amp;lt;Make Into Data Table
);


Unsubscribe to Data Table List( tsub );&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="lcmaley_0-1710247375077.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/62115i2A7C53339B71665F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="lcmaley_0-1710247375077.png" alt="lcmaley_0-1710247375077.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Mar 2024 12:45:05 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Weighted-Kappas/m-p/733309#M91469</guid>
      <dc:creator>lcmaley</dc:creator>
      <dc:date>2024-03-12T12:45:05Z</dc:date>
    </item>
    <item>
      <title>Re: Weighted Kappas</title>
      <link>https://community.jmp.com/t5/Discussions/Weighted-Kappas/m-p/768394#M94862</link>
      <description>&lt;P&gt;I tried the exact same code and it worked up to reporting the contingency table, but it showed "Wrong dimensionnally" and did not calculate the weighted kappa. (JMP18.01, Win11)&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jun 2024 00:05:15 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Weighted-Kappas/m-p/768394#M94862</guid>
      <dc:creator>MeanBasilisk816</dc:creator>
      <dc:date>2024-06-26T00:05:15Z</dc:date>
    </item>
    <item>
      <title>Re: Weighted Kappas</title>
      <link>https://community.jmp.com/t5/Discussions/Weighted-Kappas/m-p/768416#M94864</link>
      <description>&lt;P&gt;It seems to be a language problem with JMP. I modified "Cell" in the script to Japanese and it works. Thanks for the great job.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jun 2024 00:44:47 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Weighted-Kappas/m-p/768416#M94864</guid>
      <dc:creator>MeanBasilisk816</dc:creator>
      <dc:date>2024-06-26T00:44:47Z</dc:date>
    </item>
  </channel>
</rss>

