<?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: Missing confidence intervals from orthogonal regression in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Missing-confidence-intervals-from-orthogonal-regression/m-p/622868#M82185</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/47526"&gt;@OrderedMongoose&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;As you described in your question, JMP calculates a confidence interval as described in the Tan and Iglewicz 1999 reference.&lt;BR /&gt;You can use the following script to compute a confidence interval using a parameter that JMP generates (covariance and so on).&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;n = 500;
gamma = 1; //Ratio
t_dist = t Quantile( 1 - 0.025, n - 2 );
s_yy = 1.641302 ^ 2; //Variance of Y
s_xx = 1.336159 ^ 2; //Variance of X
s_xy = -0.16487; //Covariance of X and Y

phi = 1 / 2 * ArcSine(
	t_dist * (2 / Sqrt( n - 2 )) * Sqrt(
		gamma * (s_yy * s_xx - s_xy ^ 2) / ((s_yy - gamma * s_xx) ^ 2 + 4 * gamma * s_xy ^ 2)
	)
);

beta_hat = -5.68667; //Estimate of Slope
theta_hat = ArcTan( beta_hat / Sqrt( gamma ) );
lower_confidence = Sqrt( gamma ) * Tan( theta_hat - phi );
upper_confidence = Sqrt( gamma ) * Tan( theta_hat + phi );
Show( Eval List( {lower_confidence, upper_confidence} ) );
Show( theta_hat - phi );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="134115.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/52010iE2506D261818A8B8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="134115.png" alt="134115.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When calculating a confidence interval, beta(slope) is calculated from theta (beta equals tan(theta)). Theta is described in the reference. When calculating a confidence interval with your example data, the value of theta is less than -pi/2. In this case, a lower confidence interval (32.44) is greater than an upper confidence interval (-2.51), which is not reasonable. I think this is why JMP doesn't display a result.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Another approach is to use boostraping. Please see&amp;nbsp;&lt;A href="https://www.jmp.com/support/help/en/16.2/#page/jmp/example-of-bootstrapping.shtml#" target="_blank" rel="noopener"&gt;https://www.jmp.com/support/help/en/16.2/#page/jmp/example-of-bootstrapping.shtml#&lt;/A&gt;.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 17 Apr 2023 05:13:01 GMT</pubDate>
    <dc:creator>yuichi_katsumur</dc:creator>
    <dc:date>2023-04-17T05:13:01Z</dc:date>
    <item>
      <title>Missing confidence intervals from orthogonal regression</title>
      <link>https://community.jmp.com/t5/Discussions/Missing-confidence-intervals-from-orthogonal-regression/m-p/621993#M82100</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using an orthogonal regression analysis on some data I have modelling the covariance of deviations made the left (y-axis) and right (x-axis) hands during a bilateral reaching task. For the most part, I am able to use the confidence intervals for the slope that JMP provides but on some analysis either the lower, upper or both confidence intervals are not calculated (a period is provided instead of a numerical value) and I can't seem to work out why.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I checked the JMP documentation (here: &lt;A href="https://www.jmp.com/support/help/en/17.0/index.shtml#page/jmp/statistical-details-for-the-fit-orthogonal-option.shtml" target="_blank"&gt;https://www.jmp.com/support/help/en/17.0/index.shtml#page/jmp/statistical-details-for-the-fit-orthogonal-option.shtml&lt;/A&gt;) which directs me to paper (&lt;A href="https://www.jstor.org/stable/1270564" target="_blank"&gt;https://www.jstor.org/stable/1270564&lt;/A&gt;) that was used to calculate the confidence intervals, but I'm struggling to find anything from it that would explain why in some situations the CIs cannot be found, partly due to my limited mathematics ability/knowledge. Its not necessarily a problem that they can't be calculated but I would like to be able to describe why in some cases its not possible.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using JMP Pro 16 on a macbook with the Ventura 13.0 OS and have provided a screenshot of the output. The data includes ~500 points per fit but is poorly correlated in some conditions. However, in other cases I have tried this doesn't seem to be a limiting factor. An example dataset is attached that I used to create the example outputs in the screenshot too if thats helpful,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Nick&lt;/P&gt;</description>
      <pubDate>Sat, 10 Jun 2023 20:54:45 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Missing-confidence-intervals-from-orthogonal-regression/m-p/621993#M82100</guid>
      <dc:creator>OrderedMongoose</dc:creator>
      <dc:date>2023-06-10T20:54:45Z</dc:date>
    </item>
    <item>
      <title>Re: Missing confidence intervals from orthogonal regression</title>
      <link>https://community.jmp.com/t5/Discussions/Missing-confidence-intervals-from-orthogonal-regression/m-p/622868#M82185</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/47526"&gt;@OrderedMongoose&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;As you described in your question, JMP calculates a confidence interval as described in the Tan and Iglewicz 1999 reference.&lt;BR /&gt;You can use the following script to compute a confidence interval using a parameter that JMP generates (covariance and so on).&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;n = 500;
gamma = 1; //Ratio
t_dist = t Quantile( 1 - 0.025, n - 2 );
s_yy = 1.641302 ^ 2; //Variance of Y
s_xx = 1.336159 ^ 2; //Variance of X
s_xy = -0.16487; //Covariance of X and Y

phi = 1 / 2 * ArcSine(
	t_dist * (2 / Sqrt( n - 2 )) * Sqrt(
		gamma * (s_yy * s_xx - s_xy ^ 2) / ((s_yy - gamma * s_xx) ^ 2 + 4 * gamma * s_xy ^ 2)
	)
);

beta_hat = -5.68667; //Estimate of Slope
theta_hat = ArcTan( beta_hat / Sqrt( gamma ) );
lower_confidence = Sqrt( gamma ) * Tan( theta_hat - phi );
upper_confidence = Sqrt( gamma ) * Tan( theta_hat + phi );
Show( Eval List( {lower_confidence, upper_confidence} ) );
Show( theta_hat - phi );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="134115.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/52010iE2506D261818A8B8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="134115.png" alt="134115.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When calculating a confidence interval, beta(slope) is calculated from theta (beta equals tan(theta)). Theta is described in the reference. When calculating a confidence interval with your example data, the value of theta is less than -pi/2. In this case, a lower confidence interval (32.44) is greater than an upper confidence interval (-2.51), which is not reasonable. I think this is why JMP doesn't display a result.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Another approach is to use boostraping. Please see&amp;nbsp;&lt;A href="https://www.jmp.com/support/help/en/16.2/#page/jmp/example-of-bootstrapping.shtml#" target="_blank" rel="noopener"&gt;https://www.jmp.com/support/help/en/16.2/#page/jmp/example-of-bootstrapping.shtml#&lt;/A&gt;.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Apr 2023 05:13:01 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Missing-confidence-intervals-from-orthogonal-regression/m-p/622868#M82185</guid>
      <dc:creator>yuichi_katsumur</dc:creator>
      <dc:date>2023-04-17T05:13:01Z</dc:date>
    </item>
    <item>
      <title>Re: Missing confidence intervals from orthogonal regression</title>
      <link>https://community.jmp.com/t5/Discussions/Missing-confidence-intervals-from-orthogonal-regression/m-p/623827#M82269</link>
      <description>&lt;P&gt;Ahhh okay got it. That makes sense, thanks so much for your help&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/1654"&gt;@yuichi_katsumur&lt;/a&gt; !&lt;/P&gt;</description>
      <pubDate>Wed, 19 Apr 2023 12:50:54 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Missing-confidence-intervals-from-orthogonal-regression/m-p/623827#M82269</guid>
      <dc:creator>OrderedMongoose</dc:creator>
      <dc:date>2023-04-19T12:50:54Z</dc:date>
    </item>
    <item>
      <title>Re: Missing confidence intervals from orthogonal regression</title>
      <link>https://community.jmp.com/t5/Discussions/Missing-confidence-intervals-from-orthogonal-regression/m-p/867894#M103070</link>
      <description>&lt;P&gt;How to run this script?&amp;nbsp;I clicked ‘run script’ and nothing happened.&lt;/P&gt;</description>
      <pubDate>Sat, 12 Apr 2025 01:24:19 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Missing-confidence-intervals-from-orthogonal-regression/m-p/867894#M103070</guid>
      <dc:creator>Xinghua</dc:creator>
      <dc:date>2025-04-12T01:24:19Z</dc:date>
    </item>
    <item>
      <title>Re: Missing confidence intervals from orthogonal regression</title>
      <link>https://community.jmp.com/t5/Discussions/Missing-confidence-intervals-from-orthogonal-regression/m-p/867895#M103071</link>
      <description>&lt;P&gt;The results from the calculations are displayed in the log&lt;/P&gt;
&lt;PRE&gt;Eval List({lower_confidence, upper_confidence}) = {32.4416248890056, -2.51129052017963};
theta_hat - phi = -1.6016111662264;&lt;/PRE&gt;</description>
      <pubDate>Sat, 12 Apr 2025 03:22:57 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Missing-confidence-intervals-from-orthogonal-regression/m-p/867895#M103071</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2025-04-12T03:22:57Z</dc:date>
    </item>
    <item>
      <title>Re: Missing confidence intervals from orthogonal regression</title>
      <link>https://community.jmp.com/t5/Discussions/Missing-confidence-intervals-from-orthogonal-regression/m-p/868071#M103096</link>
      <description>&lt;P&gt;Thank you very much. I don't know why LC is larger than UC, it feels very strange.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Apr 2025 01:34:02 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Missing-confidence-intervals-from-orthogonal-regression/m-p/868071#M103096</guid>
      <dc:creator>Xinghua</dc:creator>
      <dc:date>2025-04-14T01:34:02Z</dc:date>
    </item>
  </channel>
</rss>

