rmspe-bcgpfitpred-method: Calculate the Square Root of the Mean Squared Prediction...

Description Usage Arguments Details Value See Also

Description

This calculates the square root of the mean squared prediction errer (RMSPE) for the predictions in a bcgpfitpred object.

Usage

1
2
## S4 method for signature 'bcgpfitpred'
rmspe(object, truth)

Arguments

truth

A numeric vector of length n_{pred}

x

An instance of class bcgpfitpred

Details

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}

Value

A single number representing the RMSPE

See Also

bcgpfitpred


cbdavis33/bcgp documentation built on Oct. 1, 2019, 8:07 a.m.