<div dir="ltr"><div><br></div><div>The function code is located in the "contributed.ncl" library. <br></div><div>Search for   'regline_stats'</div><div>The function '<a href="http://www.ncl.ucar.edu/Document/Functions/Built-in/cdft_t.shtml"><b>cdft_t'</b></a>  from the <a href="http://www.netlib.org/random/">DCDFLIB</a> (Double
precision Cumulative Distribution Function LIBrary)


is used to calculate the -t-values. You will have to look at that code to see what they do. <br></div><div><br></div><div>Good Luck<br></div><div><br></div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Nov 16, 2020 at 7:08 AM 黄涵 via ncl-talk <<a href="mailto:ncl-talk@mailman.ucar.edu">ncl-talk@mailman.ucar.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><br></div><div>Hi All,</div><div><br></div><div>I would like to know whether any of you know how regline_stats function calculates the confidence interval (CI) of the mean response (attributes: YMR025 and YMR975). </div><div><br></div><div>As this function only returns back the CI of those points used in the linear regression model,  if I want to get the CI of a x-value that is not used in the regression model, I have to calculate it by myself.  I followed the formula in the attachment to calculate the CI, but there are some differences between my result and the one provided by this NCL function (see attached plot, especially around the x_mean region). </div><div><br></div><div>Thanks very much.</div><div><br></div><div>Han</div>_______________________________________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@mailman.ucar.edu" target="_blank">ncl-talk@mailman.ucar.edu</a><br>
List instructions, subscriber options, unsubscribe:<br>
<a href="https://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">https://mailman.ucar.edu/mailman/listinfo/ncl-talk</a></blockquote></div>