<?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 Conducting a &amp;quot;chi-plot&amp;quot; in JMP in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Conducting-a-quot-chi-plot-quot-in-JMP/m-p/357554#M60768</link>
    <description>&lt;P&gt;I am attempting to assess the independence of some continuous variables in a dataset and would like to perform what I've typically seen referred to as a "chi-plot" of two continuous variables.&amp;nbsp; Is there an equivalent plot in JMP that can be used?&lt;/P&gt;</description>
    <pubDate>Sun, 11 Jun 2023 11:10:57 GMT</pubDate>
    <dc:creator>NathanFisk</dc:creator>
    <dc:date>2023-06-11T11:10:57Z</dc:date>
    <item>
      <title>Conducting a "chi-plot" in JMP</title>
      <link>https://community.jmp.com/t5/Discussions/Conducting-a-quot-chi-plot-quot-in-JMP/m-p/357554#M60768</link>
      <description>&lt;P&gt;I am attempting to assess the independence of some continuous variables in a dataset and would like to perform what I've typically seen referred to as a "chi-plot" of two continuous variables.&amp;nbsp; Is there an equivalent plot in JMP that can be used?&lt;/P&gt;</description>
      <pubDate>Sun, 11 Jun 2023 11:10:57 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Conducting-a-quot-chi-plot-quot-in-JMP/m-p/357554#M60768</guid>
      <dc:creator>NathanFisk</dc:creator>
      <dc:date>2023-06-11T11:10:57Z</dc:date>
    </item>
    <item>
      <title>Re: Conducting a "chi-plot" in JMP</title>
      <link>https://community.jmp.com/t5/Discussions/Conducting-a-quot-chi-plot-quot-in-JMP/m-p/357612#M60774</link>
      <description>&lt;P&gt;First, please post a picture of the plot you want.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Second, see Analysis &amp;gt; Multivariate Methods &amp;gt; Multivariate for a platform to explore relationships with two variables at a time.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Feb 2021 17:43:39 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Conducting-a-quot-chi-plot-quot-in-JMP/m-p/357612#M60774</guid>
      <dc:creator>Mark_Bailey</dc:creator>
      <dc:date>2021-02-09T17:43:39Z</dc:date>
    </item>
    <item>
      <title>Re: Conducting a "chi-plot" in JMP</title>
      <link>https://community.jmp.com/t5/Discussions/Conducting-a-quot-chi-plot-quot-in-JMP/m-p/357625#M60775</link>
      <description>&lt;P&gt;Here is an example of a chi-plot...&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="NathanFisk_0-1612893924018.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/30136iC98832EF27169149/image-size/medium?v=v2&amp;amp;px=400" role="button" title="NathanFisk_0-1612893924018.png" alt="NathanFisk_0-1612893924018.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;This is a method to quickly evaluate whether two continuous variables are independent.&amp;nbsp; If they're independent then they'll randomly spread around 0.&amp;nbsp; I have not seen any method in the Multivariate platform of JMP that will quickly assess the independence assumption of two continuous variables in the way.&amp;nbsp; Is there a way in JMP to perform this sort of evaluation of variable independence?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Feb 2021 18:10:46 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Conducting-a-quot-chi-plot-quot-in-JMP/m-p/357625#M60775</guid>
      <dc:creator>NathanFisk</dc:creator>
      <dc:date>2021-02-09T18:10:46Z</dc:date>
    </item>
    <item>
      <title>Re: Conducting a "chi-plot" in JMP</title>
      <link>https://community.jmp.com/t5/Discussions/Conducting-a-quot-chi-plot-quot-in-JMP/m-p/357626#M60776</link>
      <description>&lt;P&gt;Please see this &lt;A href="http://www.jds-online.com/files/JDS-1094.pdf" target="_self"&gt;reference&lt;/A&gt;. This procedure is not available in JMP at this time.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Feb 2021 18:26:29 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Conducting-a-quot-chi-plot-quot-in-JMP/m-p/357626#M60776</guid>
      <dc:creator>Mark_Bailey</dc:creator>
      <dc:date>2021-02-09T18:26:29Z</dc:date>
    </item>
    <item>
      <title>Re: Conducting a "chi-plot" in JMP</title>
      <link>https://community.jmp.com/t5/Discussions/Conducting-a-quot-chi-plot-quot-in-JMP/m-p/357640#M60778</link>
      <description>&lt;P&gt;Alas.&amp;nbsp; Is there any sort of equivalent test of independence on continuous variables that JMP can perform?&lt;/P&gt;</description>
      <pubDate>Tue, 09 Feb 2021 20:32:38 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Conducting-a-quot-chi-plot-quot-in-JMP/m-p/357640#M60778</guid>
      <dc:creator>NathanFisk</dc:creator>
      <dc:date>2021-02-09T20:32:38Z</dc:date>
    </item>
    <item>
      <title>Re: Conducting a "chi-plot" in JMP</title>
      <link>https://community.jmp.com/t5/Discussions/Conducting-a-quot-chi-plot-quot-in-JMP/m-p/357641#M60779</link>
      <description>&lt;P&gt;There are a number of ways to test for multicollinearity. &amp;nbsp;Mark already suggested the Multivariate Methods&amp;gt;Multivariate. &amp;nbsp;When you run this platform you can obtain Pearson correlation coefficients (as well as others) and also Mahalanobis outliers and get nice scatterplots. &amp;nbsp;You can also obtain VIF's from parameter estimates tables.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Feb 2021 20:59:49 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Conducting-a-quot-chi-plot-quot-in-JMP/m-p/357641#M60779</guid>
      <dc:creator>statman</dc:creator>
      <dc:date>2021-02-09T20:59:49Z</dc:date>
    </item>
    <item>
      <title>Re: Conducting a "chi-plot" in JMP</title>
      <link>https://community.jmp.com/t5/Discussions/Conducting-a-quot-chi-plot-quot-in-JMP/m-p/357999#M60816</link>
      <description>&lt;P&gt;I used this reference because it was the only one that I found that included the necessary details:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;"Marchu, Victor A. A., Francisco A. R. Rojas, and Francisco Louzada,&lt;BR /&gt;"The Chi-Plot and Its Asymptotic Confidence Interval for Analyzing Bivariate&lt;BR /&gt;Dependence: An Application to the Average Intelligence and Atheism Rates&lt;BR /&gt;across Nations Data", Journal of Data Science 10(2012), 711-722."&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I wrote this script and verified the equations, but the plots do not look right to me, so I did not go any further.&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 );

// get data columns for Y and X roles
dt = Current Data Table();
If( Is Empty( dt ),
	Throw( "No data table open" );
);

dialog = New Window( "Chi-Plot", &amp;lt;&amp;lt; Modal,
	H List Box(
		dt clb = Col List Box( All ),
		Line Up Box( N Col( 2 ),
			Button Box( "Y",
				item = dt clb &amp;lt;&amp;lt; Get Selected;
				y clb &amp;lt;&amp;lt; Append( item );
				If( N Items( x clb &amp;lt;&amp;lt; Get Items ) &amp;gt; 0,
					ok bb &amp;lt;&amp;lt; Enable( 1 ),
					ok bb &amp;lt;&amp;lt; Enable( 0 )
				);
			),
			y clb = Col List Box(
				Min Items( 1 ), Max Items( 1 ),
				&amp;lt;&amp;lt; Set Analysis Type( Continuous )
			),
			Button Box( "X",
				item = dt clb &amp;lt;&amp;lt; Get Selected;
				x clb &amp;lt;&amp;lt; Append( item );
				If( N Items( y clb &amp;lt;&amp;lt; Get Items ) &amp;gt; 0,
					ok bb &amp;lt;&amp;lt; Enable( 1 ),
					ok bb &amp;lt;&amp;lt; Enable( 0 )
				);
			),
			x clb = Col List Box(),
			Button Box( "Remove",
				y clb &amp;lt;&amp;lt; Remove All;
				x clb &amp;lt;&amp;lt; Remove All;
				ok bb &amp;lt;&amp;lt; Enable( 0 );
			),
			Text Box( "")
		)
	),
	H List Box(
		ok bb = Button Box( "OK",
			y col = Column( (y clb &amp;lt;&amp;lt; Get Items)[1] );
			x col = Column( (x clb &amp;lt;&amp;lt; Get Items)[1] ),
			&amp;lt;&amp;lt; Enable( 0 )
		),
		Button Box( "Cancel")
	)
);

// unload dialog
If( dialog["Button"] == -1,
	Throw( "User cancelled" );
);

// utility to user alerts
alert# = Function( { msg },
	New Window( "Alert", &amp;lt;&amp;lt; Modal,
		Text Box(
			"     " || msg || "     ",
          &amp;lt;&amp;lt; Justify Text( "center" ),
          &amp;lt;&amp;lt; Set Font Size( 12 )
		),
		Text Box( " " )
	);
);

// sample size and scaling
n = N Row( dt );
scale = 1 / (n-1);

// data vectors
y = y col &amp;lt;&amp;lt; Get As Matrix;
x = x col &amp;lt;&amp;lt; Get As Matrix;

// cumulative indicators
F = G = H = J( n, 1, . );

// chi-plot coordinates
χ = λ = J( n, 1, . );

For Each Row(
	If( Not( Excluded( Row State() ) ),
		i = Row();
		// compute cumulative indicators for current row
		F[i] = scale * Summation( j = 1, n, If( j != i, x[j] &amp;lt;= x[i], 0 ) );
		G[i] = scale * Summation( j = 1, n, If( j != i, y[j] &amp;lt;= y[i], 0 ) );
		H[i] = scale * Summation( j = 1, n, If( j != i, x[j] &amp;lt;= x[i] &amp;amp; y[j] &amp;lt;= y[i], 0 ) );
		// computer chi-plot coordinates for current row
		χ[i] = (H[i] - (F[i] * G[i])) / Sqrt( F[i] * (1-F[i]) * G[i] * (1-G[i]) );
		sign = ((F[i]-0.5) * (G[i]-0.5));
		λ[i] = 4 * sign * Maximum( (F[i]-0.5)^2, (G[i]-0.5)^2 );
	);
);

// add coordinates to data table
χ col = dt &amp;lt;&amp;lt; New Column( "χ", Numeric, Continuous, Values( χ ) );
λ col = dt &amp;lt;&amp;lt; New Column( "λ", Numeric, Continuous, Values( λ ) );

// add table script for Chi-Plot
dt &amp;lt;&amp;lt; New Script( "Chi-Plot",
	Current Data Table() &amp;lt;&amp;lt; Graph Builder(
		Size( 600, 400 ),
		Show Control Panel( 0 ),
		Show Legend( 0 ),
		Variables( X( :λ ), Y( :χ ) ),
		Elements( Points( X, Y, Legend( 3 ) ) ),
		SendToReport(
			Dispatch(
				{},
				"λ",
				ScaleBox,
				{Min( -1 ), Max( 1 ), Inc( 0.2 ), Minor Ticks( 0 )}
			),
			Dispatch(
				{},
				"χ",
				ScaleBox,
				{Min( -1 ), Max( 1 ), Inc( 0.2 ), Minor Ticks( 0 )}
			),
			Dispatch( {}, "graph title", TextEditBox, {Set Text( "Chi-Plot" )} )
		)
	);
);

// launch Chi-Plot
gb = dt &amp;lt;&amp;lt; Graph Builder(
	Size( 600, 400 ),
	Show Control Panel( 0 ),
	Show Legend( 0 ),
	Variables( X( :λ ), Y( :χ ) ),
	Elements( Points( X, Y, Legend( 3 ) ) ),
	SendToReport(
		Dispatch(
			{},
			"λ",
			ScaleBox,
			{Min( -1 ), Max( 1 ), Inc( 0.2 ), Minor Ticks( 0 )}
		),
		Dispatch(
			{},
			"χ",
			ScaleBox,
			{Min( -1 ), Max( 1 ), Inc( 0.2 ), Minor Ticks( 0 )}
		),
		Dispatch( {}, "graph title", TextEditBox, {Set Text( "Chi-Plot" )} )
	)
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 10 Feb 2021 22:14:26 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Conducting-a-quot-chi-plot-quot-in-JMP/m-p/357999#M60816</guid>
      <dc:creator>Mark_Bailey</dc:creator>
      <dc:date>2021-02-10T22:14:26Z</dc:date>
    </item>
    <item>
      <title>Re: Conducting a "chi-plot" in JMP</title>
      <link>https://community.jmp.com/t5/Discussions/Conducting-a-quot-chi-plot-quot-in-JMP/m-p/363620#M61321</link>
      <description>&lt;P&gt;I was able to continue working on this plot. I uploaded it as an add-in. You can find it &lt;A href="https://community.jmp.com/t5/JMP-Add-Ins/Chi-Plot/ta-p/363617" target="_self"&gt;here&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;NOTE: I fixed a bug and I updated this add-in to be more useful. If you downloaded before today, then you should go back and replace it with the newer version.&lt;/P&gt;</description>
      <pubDate>Sat, 06 Mar 2021 15:24:06 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Conducting-a-quot-chi-plot-quot-in-JMP/m-p/363620#M61321</guid>
      <dc:creator>Mark_Bailey</dc:creator>
      <dc:date>2021-03-06T15:24:06Z</dc:date>
    </item>
  </channel>
</rss>

