Description Usage Arguments Details Value See Also
This calculates the square root of the mean squared prediction errer (RMSPE)
for the predictions in a bcgpfitpred
object.
1 2 | ## S4 method for signature 'bcgpfitpred'
rmspe(object, truth)
|
truth |
A numeric vector of length |
x |
An instance of class bcgpfitpred |
In cases where we have test data, one measure of the accuracy of the predictions is the RMSPE. It is calculated by
RMSPE = √{\frac{1}{n_{pred}}∑ ≤ft( \hat{y} - y \right)^2}
A single number representing the RMSPE
bcgpfitpred
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.