Description Usage Arguments Value See Also Examples
View source: R/useful_commands.R
The following function is used to validate the predicted observations with the actual values.
| 1 | spT.validation(z, zhat, names=FALSE)
 | 
| z | The original values (matrix or vector). | 
| zhat | The predicted values (matrix or vector). | 
| names | Logical, if TRUE then print the names of the validation statistics. | 
| MSE | Mean Squared Error. | 
| RMSE | Root Mean Squared Error. | 
| MAE | Mean Absolute Error. | 
| MAPE | Mean Absolute Percentage Error. | 
| BIAS | Bias. | 
| rBIAS | Relative Bias. | 
| rMSEP | Relative Mean Separation. | 
| 1 2 3 4 5 6 7 8 9 10 | ##
# Create `x', which is the true values.
# Create `y', which is the predicted values.
x <- rnorm(10,5,0.1)
y <- rnorm(10,5,1)
spT.validation(x, y)
##
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.