I have been using MSE and RMSE to assess performance of my model for calibration and validation purposes.
let l1 length series1
let l2 length series2
let l min (list l1 l2)
let minlist []
let maxlist []
if (l = l1) [ set minlist series1 set maxlist series2 ]
if (l = l2) [ set minlist series2 set maxlist series1 ]
set maxlist sublist maxlist 0 l
let sqd-errors (map [ [?1 ?2] -> (abs ?1 - ?2) ^ 2 ] maxlist minlist)
let mse (sum sqd-errors) / l
report mse
end
I modified this code to fit my simulation model, but I am ashamed to admit that I do not fully understand the code, and currently, problems are arising as I try to modify it to code other error parameters such as "index of agreement" or "Model efficiency"
My questions are,
1) why is it not
let sqd-errors (map [ [?1 ?2] -> (abs (?1 - ?2)) ^ 2 ] maxlist minlist)
instead of the original, which is
let sqd-errors (map [ [?1 ?2] -> (abs ?1 - ?2) ^ 2 ] maxlist minlist)
2) how do you guys calculate or code model performance parameters like MSE/RMSE/IoA etc.?
Thank you for your help.
Luke Kho