sse {valmetrics} | R Documentation |
sse
Description
Calculates the sum of squares for error (SSE) from observed and predicted values.
Usage
sse(o, p)
Arguments
o |
A numeric vector. Observed values. |
p |
A numeric vector. Predicted values. |
Details
Interpretation: smaller is better.
Value
Sum of squares for error (SSE).
Author(s)
Kristin Piikki, Johanna Wetterlind, Mats Soderstrom and Bo Stenberg, E-mail: kristin.piikki@slu.se
Examples
obs<-c(1:10)
pred<-c(1, 1 ,3, 2, 4, 5, 6, 8, 7, 10)
sse(o=obs, p=pred)
[Package valmetrics version 1.0.0 Index]