<p><div><div><div><div data-show-faces="false" data-height="21" data-width="100" data-layout="button_count" data-send="true" data-href="https://www.r-bloggers.com/prediction-interval-the-wider-sister-of-confidence-interval/"></div></div><div></div></div><div></div></div>
<div>
(This article was first published on <strong><a href="https://datascienceplus.com/prediction-interval-the-wider-sister-of-confidence-interval/"> R Programming – DataScience+</a></strong>, and kindly contributed to <a rel="nofollow" href="https://www.r-bloggers.com/">R-bloggers)</a> </div>
<p>In this post, I will illustrate the use of prediction intervals for the comparison of measurement methods. In the example, a new spectral method for measuring whole blood hemoglobin is compared with a reference method. But first, let's start with discussing the large difference between a confidence interval and a prediction interval.</p>
<h2>Prediction interval versus Confidence interval</h2>
<p>Very often a confidence interval is misinterpreted as a prediction interval, leading to unrealistic “precise” predictions. As you will see, prediction intervals (PI) resemble confidence intervals (CI), but the width of the PI is by definition larger than the width of the CI.</p>
<p>Let’s assume that we measure the whole blood hemoglobin concentration in a random sample of 100 persons. We obtain the estimated mean (Est_mean), limits of the confidence interval (CI_Lower and CI_Upper) and limits of the prediction interval (PI_Lower and PI_Upper): (The R-code to do this is in the next paragraph)</p>
<table>
<thead>
<tr>
<th align="right">Est_mean</th>
<th align="right">CI_Lower</th>
<th align="right">CI_Upper</th>
<th align="right">PI_Lower</th>
<th align="right">PI_Upper</th>
</tr>
</thead>
<tbody>
<tr>
<td align="right">140</td>
<td align="right">138</td>
<td align="right">143</td>
<td align="right">113</td>
<td align="right">167</td>
</tr>
</tbody>
</table>
<p>The graphical presentation:<br>
<a rel="nofollow" href="https://i0.wp.com/datascienceplus.com/wp-content/uploads/2018/06/PI_CI_n100-1.png?ssl=1" target="_blank"><img sizes="(max-width: 1024px) 100vw, 1024px" src="https://i2.wp.com/datascienceplus.com/wp-content/uploads/2018/06/PI_CI_n100-1-1024x1024.png?w=450&ssl=1" alt="" class="wp-image-14170" data-recalc-dims="1"></a></p>
<p>A <strong>Confidence interval</strong> (CI) is an interval of good estimates of the unknown true <strong>population parameter</strong>. About a 95% confidence interval for the mean, we can state that if we would repeat our sampling process infinitely, 95% of the constructed confidence intervals would contain the true population mean. In other words, there is a 95% chance of selecting a sample such that the 95% confidence interval calculated from that sample contains the true population mean.</p>
<p>Interpretation of the 95% confidence interval in our example:</p>
<ul>
<li>The values contained in the interval [138g/L to 143g/L] are good estimates of the unknown <strong>mean</strong> whole blood hemoglobin concentration in the population. In general, if we would repeat our sampling process infinitely, 95% of such constructed confidence intervals would contain the true mean hemoglobin concentration.</li>
</ul>
<p>A <strong>Prediction interval</strong> (PI) is an estimate of an interval in which <strong>a future observation</strong> will fall, with a certain confidence level, given the observations that were already observed. About a 95% prediction interval we can state that if we would repeat our sampling process infinitely, 95% of the constructed prediction intervals would contain the new observation.</p>
<p>Interpretation of the 95% prediction interval in the above example:</p>
<ul>
<li>Given the observed whole blood hemoglobin concentrations, the whole blood hemoglobin concentration of a <strong>new sample</strong> will be between 113g/L and 167g/L with a confidence of 95%. In general, if we would repeat our sampling process infinitely, 95% of the such constructed prediction intervals would contain the new hemoglobin concentration measurement.</li>
</ul>
<p>Remark: Very often we will read the interpretation “The whole blood hemogblobin concentration of a new sample will be between 113g/L and 167g/L with a <strong>probability</strong> of 95%.” (for example on <a rel="nofollow" href="https://en.wikipedia.org/wiki/Prediction_interval" target="_blank"><u>wikipedia</u></a>). This interpretation is correct in the theoretical situation where the parameters (true mean and standard deviation) are known.</p>
<h2>Estimating a prediction interval in R</h2>
<p>First, let's simulate some data. The sample size in the plot above was (n=100). Now, to see the effect of the sample size on the width of the confidence interval and the prediction interval, let's take a “sample” of 400 hemoglobin measurements using the same parameters:</p>
<pre><code>set.seed(123)
hemoglobin&lt;-rnorm(400, mean = 139, sd = 14.75)
df&lt;-data.frame(hemoglobin)
</code></pre>
<p>Although we don't need a linear regression yet, I'd like to use the lm() function, which makes it very easy to construct a confidence interval (CI) and a prediction interval (PI). We can estimate the mean by fitting a “regression model” with an intercept only (no slope). The default confidence level is 95%.</p>
<h3>Confidence interval:</h3>
<pre><code>CI&lt;-predict(lm(df$hemoglobin~ 1), interval=&quot;confidence&quot;) 
CI[1,]</code>
<em>## fit lwr upr ## 139.2474 137.8425 140.6524
</em></pre>
<p>The CI object has a length of 400. But since there is no slope in our “model”, each row is exactly the same.</p>
<h3>Prediction interval:</h3>
<pre><code>PI&lt;-predict(lm(df$hemoglobin~ 1), interval=&quot;predict&quot;) </code>
<em>## Warning in predict.lm(lm(df$hemoglobin ~ 1), interval = &quot;predict&quot;): predictions on current data refer to _future_ responses
</em></pre>
<pre><code>PI[1,]</code>
<em>## fit lwr upr ## 139.2474 111.1134 167.3815
</em></pre>
<p>We get a “warning” that “predictions on current data refer to future responses”. That's exactly what we want, so no worries there. As you see, the column names of the objects CI and PI are the same. Now, let's visualize the confidence and the prediction interval.</p>
<p>The code below is not very elegant but I like the result (tips are welcome :-))</p>
<pre><code>library(ggplot2)
limits_CI &lt;- aes(x=1.3  , ymin=CI[1,2], ymax =CI[1,3])
limits_PI &lt;- aes(x=0.7 , ymin=PI[1,2], ymax =PI[1,3])
PI_CI&lt;-ggplot(df, aes(x=1, y=hemoglobin)) + 
        geom_jitter(width=0.1, pch=21, fill=&quot;grey&quot;, alpha=0.5) + 
        geom_errorbar (limits_PI, width=0.1, col=&quot;#1A425C&quot;) +
        geom_point (aes(x=0.7, y=PI[1,1]), col=&quot;#1A425C&quot;, size=2) +
        geom_errorbar (limits_CI, width=0.1, col=&quot;#8AB63F&quot;) +
        geom_point (aes(x=1.3, y=CI[1,1]), col=&quot;#8AB63F&quot;, size=2) +

        scale_x_continuous(limits=c(0,2))+
        scale_y_continuous(limits=c(95,190))+
        theme_bw()+ylab(&quot;Hemoglobin concentration (g/L)&quot;) + 
        xlab(NULL)+
        geom_text(aes(x=0.6, y=160, label=&quot;Prediction\ninterval&quot;, 
                      hjust=&quot;right&quot;, cex=2), col=&quot;#1A425C&quot;)+
        geom_text(aes(x=1.4, y=140, label=&quot;Confidence\ninterval&quot;, 
                      hjust=&quot;left&quot;, cex=2), col=&quot;#8AB63F&quot;)+
        theme(legend.position=&quot;none&quot;, 
              axis.text.x = element_blank(), 
              axis.ticks.x = element_blank())
PI_CI</code></pre>
<p>Gives this plot:<br>
<a rel="nofollow" href="https://i2.wp.com/datascienceplus.com/wp-content/uploads/2018/06/PI_CI_n400.png?ssl=1" target="_blank"><img sizes="(max-width: 1024px) 100vw, 1024px" src="https://i0.wp.com/datascienceplus.com/wp-content/uploads/2018/06/PI_CI_n400-1024x1024.png?w=450&ssl=1" alt="" class="wp-image-14172" data-recalc-dims="1"></a></p>
<p>The width of the confidence interval is very small, now that we have this large sample size (n=400). This is not surprising, as the estimated mean is the only source of uncertainty. In contrast, the width of the prediction interval is still substantial. The prediction interval has two sources of uncertainty: the estimated mean (just like the confidence interval) and the random variance of new observations.</p>
<h2>Example: comparing a new with a reference measurement method.</h2>
<p>A prediction interval can be useful in the case where a new method should replace a standard (or reference) method.<br>
If we can predict well enough what the measurement by the reference method would be, (given the new method) than the two methods give similar information and the new method can be used.</p>
<p>For example in (Tian, 2017) a new spectral method (Near-Infra-Red) to measure hemoglobin is compared with a Golden Standard. In contrast with the Golden Standard method, the new spectral method does not require reagents. Moreover, the new method is faster. We will investigate whether we can predict well enough, based on the measured concentration of the new method, what the measurement by the Golden Standard would be. (note: the measured concentrations presented below are fictive)</p>
<pre><code>Hb&lt;- read.table(&quot;http://rforbiostatistics.colmanstatistics.be/wp-content/uploads/2018/06/Hb.txt&quot;, 
                 header = TRUE)
kable(head(Hb))
</code></pre>
<table>
<thead>
<tr>
<th align="right">New</th>
<th align="right">Reference</th>
</tr>
</thead>
<tbody>
<tr>
<td align="right">84.96576</td>
<td align="right">87.24013</td>
</tr>
<tr>
<td align="right">99.91483</td>
<td align="right">103.38143</td>
</tr>
<tr>
<td align="right">111.79984</td>
<td align="right">116.71593</td>
</tr>
<tr>
<td align="right">116.95961</td>
<td align="right">116.72065</td>
</tr>
<tr>
<td align="right">118.11140</td>
<td align="right">113.51541</td>
</tr>
<tr>
<td align="right">118.21411</td>
<td align="right">121.70586</td>
</tr>
</tbody>
</table>
<pre><code>plot(Hb$New, Hb$Reference, 
     xlab=&quot;Hemoglobin concentration (g/L) - new method&quot;, 
     ylab=&quot;Hemoglobin concentration (g/L) - reference method&quot;)
</code></pre>
<p>Gives this plot:<br>
<a rel="nofollow" href="https://i2.wp.com/datascienceplus.com/wp-content/uploads/2018/06/plotHb.png?ssl=1" target="_blank"><img sizes="(max-width: 1024px) 100vw, 1024px" src="https://i0.wp.com/datascienceplus.com/wp-content/uploads/2018/06/plotHb-1024x1024.png?w=450&ssl=1" alt="" class="wp-image-14178" data-recalc-dims="1"></a></p>
<h2>Prediction Interval based on linear regression</h2>
<p>Now, let's fit a linear regression model predicting the hemoglobin concentrations measured by the reference method, based on the concentrations measured with the new method.</p>
<pre><code>fit.lm &lt;- lm(Hb$Reference ~ Hb$New)
plot(Hb$New, Hb$Reference,  
     xlab=&quot;Hemoglobin concentration (g/L) - new method&quot;, 
     ylab=&quot;Hemoglobin concentration (g/L) - reference method&quot;)
cat (&quot;Adding the regression line:&quot;)
</code></pre>
<p>Adding the regression line:</p>
<pre><code>abline (a=fit.lm$coefficients[1], b=fit.lm$coefficients[2] )
cat (&quot;Adding the identity line:&quot;)
</code></pre>
<p>Adding the identity line:</p>
<pre><code>abline (a=0, b=1, lty=2)
</code></pre>
<p>Th plot:<br>
<a rel="nofollow" href="https://i2.wp.com/datascienceplus.com/wp-content/uploads/2018/06/plot1.png?ssl=1" target="_blank"><img sizes="(max-width: 1024px) 100vw, 1024px" src="https://i0.wp.com/datascienceplus.com/wp-content/uploads/2018/06/plot1-1024x1024.png?w=450&ssl=1" alt="" class="wp-image-14177" data-recalc-dims="1"></a></p>
<p>If both measurement methods would exactly correspond, the intercept would be zero and the slope would be one (=“identity line”, dotted line). Now, let's calculated the confidence interval for this linear regression.</p>
<pre><code>CI_ex &lt;- predict(fit.lm, interval=&quot;confidence&quot;)
colnames(CI_ex)&lt;- c(&quot;fit_CI&quot;, &quot;lwr_CI&quot;, &quot;upr_CI&quot;)
</code></pre>
<p>And the prediction interval:</p>
<pre><code>PI_ex &lt;- predict(fit.lm, interval=&quot;prediction&quot;)</code>
<em>## Warning in predict.lm(fit.lm, interval = &quot;prediction&quot;): predictions on current data refer to _future_ responses
</em></pre>
<pre><code>colnames(PI_ex)&lt;- c(&quot;fit_PI&quot;, &quot;lwr_PI&quot;, &quot;upr_PI&quot;)
</code></pre>
<p>We can combine those results in one data frame and plot both the confidence interval and the prediction interval.</p>
<pre><code>Hb_results&lt;-cbind(Hb, CI_ex, PI_ex)
kable(head(round(Hb_results),1))
</code></pre>
<table>
<thead>
<tr>
<th align="right">New</th>
<th align="right">Reference</th>
<th align="right">fit_CI</th>
<th align="right">lwr_CI</th>
<th align="right">upr_CI</th>
<th align="right">fit_PI</th>
<th align="right">lwr_PI</th>
<th align="right">upr_PI</th>
</tr>
</thead>
<tbody>
<tr>
<td align="right">85</td>
<td align="right">87</td>
<td align="right">91</td>
<td align="right">87</td>
<td align="right">94</td>
<td align="right">91</td>
<td align="right">82</td>
<td align="right">99</td>
</tr>
</tbody>
</table>
<p>Visualizing the CI (in green) and the PI (in blue):</p>
<pre><code>plot(Hb$New, Hb$Reference, 
     xlab=&quot;Hemoglobin concentration (g/L) - new method&quot;, 
     ylab=&quot;Hemoglobin concentration (g/L) - reference method&quot;)
Hb_results_s &lt;- Hb_results[order(Hb_results$New),]
lines (x=Hb_results_s$New, y=Hb_results_s$fit_CI)
lines (x=Hb_results_s$New, y=Hb_results_s$lwr_CI, 
       col=&quot;#8AB63F&quot;, lwd=1.2)
lines (x=Hb_results_s$New, y=Hb_results_s$upr_CI, 
       col=&quot;#8AB63F&quot;, lwd=1.2)
lines (x=Hb_results_s$New, y=Hb_results_s$lwr_PI, 
       col=&quot;#1A425C&quot;, lwd=1.2)
lines (x=Hb_results_s$New, y=Hb_results_s$upr_PI,
       col=&quot;#1A425C&quot;, lwd=1.2)
abline (a=0, b=1, lty=2)
</code></pre>
<p>Gives this plot:<br>
<a rel="nofollow" href="https://i2.wp.com/datascienceplus.com/wp-content/uploads/2018/06/plots.png?ssl=1" target="_blank"><img sizes="(max-width: 1024px) 100vw, 1024px" src="https://i2.wp.com/datascienceplus.com/wp-content/uploads/2018/06/plots-1024x1024.png?w=450&ssl=1" alt="" class="wp-image-14181" data-recalc-dims="1"></a></p>
<p>In (Bland, Altman 2003) it is proposed to calculate the average width of this prediction interval, and see whether this is acceptable. Another approach is to compare the calculated PI with an “acceptance interval”. If the PI is inside the acceptance interval for the measurement range of interest (see Francq, 2016).</p>
<p>In the above example, both methods do have the same measurement scale (g/L), but the linear regression with prediction interval is particularly useful when the two methods of measurement have different units.</p>
<p>However, the method has some disadvantages:</p>
<ul>
<li>Predictions intervals are very sensitive to deviations from the normal distribution.</li>
<li>In “standard” linear regression (or Ordinary Least Squares (OLS) regression),the presence of measurement error is allowed for the Y-variable (here, the reference method) but not for the X-variable (the new method). The absence of errors on the x-axis is one of the assumptions. Since we can expect some measurement error for the new method, this assumption is violated here.</li>
</ul>
<h2>Taking into account errors on both axes</h2>
<p>In contrast to Ordinary Least Square (OLS) regression, Bivariate Least Square (BLS) regression takes into account the measurement errors of both methods (the New method and the Reference method). Interestingly, prediction intervals calculated with BLS are not affected when the axes are switched (del Rio, 2001).</p>
<p>In 2017, a new R-package BivRegBLS was released. It offers several methods to assess the agreement in method comparison studies, including Bivariate Least Square (BLS) regression.</p>
<p>If the data are unreplicated but the variance of the measurement error of the methods is known, The <code>BLS()</code> and <code>XY.plot()</code> functions can be used to fit a bivariate Least Square regression line and corresponding confidence and prediction intervals.</p>
<pre><code>library (BivRegBLS)
Hb.BLS = BLS (data = Hb, xcol = c(&quot;New&quot;), 
ycol = c(&quot;Reference&quot;), var.y=10, var.x=8, conf.level=0.95)
XY.plot (Hb.BLS,
         yname = &quot;Hemoglobin concentration (g/L) - reference method&quot;,
         xname = &quot;Hemoglobin concentration (g/L) - new method&quot;,
         graph.int = c(&quot;CI&quot;,&quot;PI&quot;))
</code></pre>
<p>Gives this plot:<br>
<a rel="nofollow" href="https://i1.wp.com/datascienceplus.com/wp-content/uploads/2018/06/plot2.png?ssl=1" target="_blank"><img sizes="(max-width: 1024px) 100vw, 1024px" src="https://i2.wp.com/datascienceplus.com/wp-content/uploads/2018/06/plot2-1024x1024.png?w=450&ssl=1" alt="" class="wp-image-14173" data-recalc-dims="1"></a></p>
<p>Now we would like to decide whether the new method can replace the reference method. We allow the methods to differ up to a given threshold, which is not clinically relevant. Based on this threshold an “acceptance interval” is created. Suppose that differences up to 10 g/L (=threshold) are not clinically relevant, then the acceptance interval can be defined as Y=X±??, with ?? equal to 10. If the PI is inside the acceptance interval for the measurement range of interest then the two measurement methods can be considered to be interchangeable (see Francq, 2016).</p>
<p>The <code>accept.int</code> argument of the <code>XY.plot()</code> function allows for a visualization of this acceptance interval</p>
<pre><code>XY.plot (Hb.BLS,
         yname = &quot;Hemoglobin concentration (g/L) - reference method&quot;,
         xname = &quot;Hemoglobin concentration (g/L) - new method&quot;,
         graph.int = c(&quot;CI&quot;,&quot;PI&quot;), 
         accept.int=10)
</code></pre>
<p>Givbes this plot:<br>
<a rel="nofollow" href="https://i0.wp.com/datascienceplus.com/wp-content/uploads/2018/06/plot2b.png?ssl=1" target="_blank"><img sizes="(max-width: 1024px) 100vw, 1024px" src="https://i2.wp.com/datascienceplus.com/wp-content/uploads/2018/06/plot2b-1024x1024.png?w=450&ssl=1" alt="" class="wp-image-14174" data-recalc-dims="1"></a></p>
<p>For the measurement region 120g/L to 150 g/L, we can conclude that the difference between both methods is acceptable. If the measurement regions below 120g/l and above 150g/L are important, the new method cannot replace the reference method.</p>
<h2>Regression on replicated data</h2>
<p>In method comparison studies, it is advised to create replicates (2 or more measurements of the same sample with the same method). An example of such a dataset:</p>
<pre><code>Hb_rep &lt;- read.table(&quot;http://rforbiostatistics.colmanstatistics.be/wp-content/uploads/2018/06/Hb_rep.txt&quot;, 
                 header = TRUE)
kable(head(round(Hb_rep),1))
</code></pre>
<table>
<thead>
<tr>
<th align="right">New_rep1</th>
<th align="right">New_rep2</th>
<th align="right">Ref_rep1</th>
<th align="right">Ref_rep2</th>
</tr>
</thead>
<tbody>
<tr>
<td align="right">88</td>
<td align="right">95</td>
<td align="right">90</td>
<td align="right">84</td>
</tr>
</tbody>
</table>
<p>When replicates are available, the variance of the measurement errors are calculated for both the new and the reference method and used to estimate the prediction interval. Again, the BLS() function and the XY.plot() function are used to estimate and plot the BLS regression line, the corresponding CI and PI.</p>
<pre><code>Hb_rep.BLS = BLS (data = Hb_rep, 
                  xcol = c(&quot;New_rep1&quot;, &quot;New_rep2&quot;), 
                  ycol = c(&quot;Ref_rep1&quot;, &quot;Ref_rep2&quot;), 
                  qx = 1, qy = 1, 
                  conf.level=0.95, pred.level=0.95)

XY.plot (Hb_rep.BLS,
         yname = &quot;Hemoglobin concentration (g/L) - reference method&quot;,
         xname = &quot;Hemoglobin concentration (g/L) - new method&quot;,
         graph.int = c(&quot;CI&quot;,&quot;PI&quot;),
         accept.int=10)
</code></pre>
<p>Giuves this plot:<br>
<a rel="nofollow" href="https://i1.wp.com/datascienceplus.com/wp-content/uploads/2018/06/plot3.png?ssl=1" target="_blank"><img sizes="(max-width: 1024px) 100vw, 1024px" src="https://i0.wp.com/datascienceplus.com/wp-content/uploads/2018/06/plot3-1024x1024.png?w=450&ssl=1" alt="" class="wp-image-14175" data-recalc-dims="1"></a></p>
<p>It is clear that the prediction interval is not inside the acceptance interval here. The new method cannot replace the reference method. A possible solution is to average the repeats. The BivRegBLS package can create prediction intervals for the mean of (2 or more) future values, too! More information in <a rel="nofollow" href="https://pdfs.semanticscholar.org/presentation/cd1a/b49b0118581cb18067cbfe6fea6b8a0a9b99.pdf" target="_blank">this presentation</a> (presented at useR!2017).</p>
<p>In the plot above, averages of the two replicates are calculated and plotted. I'd like to see the individual measurements:</p>
<pre><code>plot(x=c(Hb_rep$New_rep1, Hb_rep$New_rep2),
     y=c(Hb_rep$Ref_rep1, Hb_rep$Ref_rep2),
     xlab=&quot;Hemoglobin concentration (g/L) - new method&quot;, 
     ylab=&quot;Hemoglobin concentration (g/L) - reference method&quot;)
lines (x=as.numeric(Hb_rep.BLS$Pred.BLS[,1]), 
       y=as.numeric(Hb_rep.BLS$Pred.BLS[,2]), 
       lwd=2)
lines (x=as.numeric(Hb_rep.BLS$Pred.BLS[,1]), 
       y=as.numeric(Hb_rep.BLS$Pred.BLS[,3]), 
       col=&quot;#8AB63F&quot;, lwd=2)
lines (x=as.numeric(Hb_rep.BLS$Pred.BLS[,1]), 
       y=as.numeric(Hb_rep.BLS$Pred.BLS[,4]), 
       col=&quot;#8AB63F&quot;, lwd=2)
lines (x=as.numeric(Hb_rep.BLS$Pred.BLS[,1]), 
       y=as.numeric(Hb_rep.BLS$Pred.BLS[,5]), 
       col=&quot;#1A425C&quot;, lwd=2)
lines (x=as.numeric(Hb_rep.BLS$Pred.BLS[,1]), 
       y=as.numeric(Hb_rep.BLS$Pred.BLS[,6]), 
       col=&quot;#1A425C&quot;, lwd=2)
abline (a=0, b=1, lty=2)
</code></pre>
<p>Gives this plot:<br>
<a rel="nofollow" href="https://i0.wp.com/datascienceplus.com/wp-content/uploads/2018/06/plot4.png?ssl=1" target="_blank"><img sizes="(max-width: 1024px) 100vw, 1024px" src="https://i2.wp.com/datascienceplus.com/wp-content/uploads/2018/06/plot4-1024x1024.png?w=450&ssl=1" alt="" class="wp-image-14180" data-recalc-dims="1"></a></p>
<h2>Remarks</h2>
<ul>
<li>Although not appropriate in the context of method comparison studies, Pearson correlation is still frequently used. See Bland &amp; Altman (2003) for an explanation on why correlations are not adviced.</li>
<li>Methods presented in this blogpost are not applicable to time-series</li>
</ul>
<h3>References</h3>
<ul>
<li>
Confidence interval and prediction interval: Applied Linear Statistical Models, 2005, Michael Kutner, Christopher Nachtsheim, John Neter, William Li. Section 2.5</li>
<li>Prediction interval for method comparison:<br>
Bland, J. M. and Altman, D. G. (2003), Applying the right statistics: analyses of measurement studies. Ultrasound Obstet Gynecol, 22: 85-93. doi:10.1002/uog.12<br>
section: “Appropriate use of regression”.</li>
<li>Francq, B. G., and Govaerts, B. (2016) How to regress and predict in a Bland-Altman plot? Review and contribution based on tolerance intervals and correlated-errors-in-variables models. Statist. Med., 35: 2328-2358. doi: 10.1002/sim.6872. </li>
<li>del Río, F. J., Riu, J. and Rius, F. X. (2001), Prediction intervals in linear regression taking into account errors on both axes. J. Chemometrics, 15: 773-788. doi:10.1002/cem.663</li>
<li>Example of a method comparison study: H. Tian, M. Li, Y. Wang, D. Sheng, J. Liu, and L. Zhang, “Optical wavelength selection for portable hemoglobin determination by near-infrared spectroscopy method,” Infrared Phys. Techn 86, 98-102 (2017). doi.org/10.1016/j.infrared.2017.09.004.</li>
<li>the <code>predict()</code> and <code>lm()</code> functions of R: Chambers, J. M. and Hastie, T. J. (1992) Statistical Models in S. Wadsworth &amp; Brooks/Cole. </li>
</ul>
<ul></ul>
<p><strong>
<p>Related Post</p>
<p></p></strong>
<ol>
<li><a rel="nofollow" href="https://datascienceplus.com/six-sigma-dmaic-series-in-r-part-2/" title="Permanent Link toSix Sigma DMAIC Series in R – Part 2" target="_blank">Six Sigma DMAIC Series in R – Part 2</a></li>
<li><a rel="nofollow" href="https://datascienceplus.com/six-sigma-dmaic-series-in-r-part-1/" title="Permanent Link toSix Sigma DMAIC Series in R – Part 1" target="_blank">Six Sigma DMAIC Series in R – Part 1</a></li>
<li><a rel="nofollow" href="https://datascienceplus.com/implementation-and-interpretation-of-control-charts-in-r/" title="Permanent Link toImplementation and Interpretation of Control Charts in R" target="_blank">Implementation and Interpretation of Control Charts in R</a></li>
<li><a rel="nofollow" href="https://datascienceplus.com/time-series-model-of-forecasting-future-power-demand/" title="Permanent Link toTime series model of forecasting future power demand" target="_blank">Time series model of forecasting future power demand</a></li>
<li><a rel="nofollow" href="https://datascienceplus.com/tennis-grand-slam-tournaments-champions-basic-analysis/" title="Permanent Link toTennis Grand Slam Tournaments Champions Basic Analysis" target="_blank">Tennis Grand Slam Tournaments Champions Basic Analysis</a></li>
</ol>
	<p>
<div>
<div>To <strong>leave a comment</strong> for the author, please follow the link and comment on their blog: <strong><a href="https://datascienceplus.com/prediction-interval-the-wider-sister-of-confidence-interval/"> R Programming – DataScience+</a></strong>.</div>
<hr>
<a rel="nofollow" href="https://www.r-bloggers.com/">R-bloggers.com</a> offers <strong><a rel="nofollow" href="https://feedburner.google.com/fb/a/mailverify?uri=RBloggers">daily e-mail updates</a></strong> about <a rel="nofollow" href="https://www.r-project.org/" title="The R Project for Statistical Computing">R</a> news and <a rel="nofollow" href="https://www.r-bloggers.com/search/tutorial" title="R tutorials">tutorials</a> on topics such as: <a rel="nofollow" href="https://www.r-bloggers.com/search/data%20science" title="Data science">Data science</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/Big%20Data" title="Big Data">Big Data, <a rel="nofollow" href="https://www.r-users.com/" title="R jobs">R jobs</a>, visualization (<a rel="nofollow" href="https://www.r-bloggers.com/search/ggplot2" title="ggplot and ggplot2 tutorials">ggplot2</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/boxplot" title="Boxplots using lattice and ggplot2 tutorials">Boxplots</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/map" title="Maps and gis">maps</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/animation" title="Animation in R">animation</a>), programming (<a rel="nofollow" href="https://www.r-bloggers.com/search/RStudio" title="RStudio IDE for R">RStudio</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/sweave" title="Sweave and literate programming">Sweave</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/LaTeX" title="LaTeX in R">LaTeX</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/SQL" title="SQL and databases">SQL</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/eclipse" title="Eclipse IDE for R">Eclipse</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/git" title="git and github, Version Control System">git</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/hadoop" title="Large data in R using Hadoop">hadoop</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/Web+Scraping" title="Web Scraping of google, facebook, yahoo, twitter and more using R">Web Scraping</a>) statistics (<a rel="nofollow" href="https://www.r-bloggers.com/search/regression" title="Regressions and ANOVA analysis tutorials">regression</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/PCA" title="principal component analysis tutorial">PCA</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/time+series" title="Time series">time series</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/trading" title="finance trading">trading</a>) and more...
<img width="1" alt="" src="http://feeds.feedburner.com/~r/RBloggers/~4/RRlV9Celi-8" height="1"></a></div>