Learn R Programming

chillR (version 0.75)

RMSEP: Root Mean Square Error of Prediction (RMSEP)

Description

This function computes the Root Mean Square Error of Prediction (RMSEP), a commonly used measure for the predictive capacity of a model. It compares values predicted with a model with observed values.

Usage

RMSEP(predicted, observed, na.rm = FALSE)

Value

numeric value of the RMSEP.

Arguments

predicted

a numeric vector containing predicted values.

observed

a numeric vector of the same length as ```predicted``` containing observed values.

na.rm

Boolean parameter indicating whether NA values should be removed before the analysis

Author

Eike Luedeling

Examples

Run this code

predicted<-c(1,2,3,4,5,6,7,8,9,10)
observed<-c(1.5,1.8,3.3,3.9,4.4,6,7.5,9,11,10)

RMSEP(predicted,observed)

Run the code above in your browser using DataLab