| predict.specproc_slope_bias | R Documentation |
Applies the correction fitted by slope_bias() to new predictions.
## S3 method for class 'specproc_slope_bias'
predict(object, newdata, ...)
object |
The result of |
newdata |
Predictions of the model for new secondary spectra. |
... |
Not used. |
The corrected predictions.
slope_bias()
set.seed(1)
reference <- runif(20, 0.5, 4)
predicted <- 0.2 + 1.1 * reference + rnorm(20, sd = 0.05)
predict(slope_bias(predicted, reference), c(1.3, 2.4, 3.5))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.