Calculate reconstruction metrics from the instrumental period
Usage
calculate_metrics(sim, obs, z, norm.fun = mean)
Arguments
sim
A vector of reconstruction output for instrumental period
obs
A vector of all observations
z
A vector of left out indices in cross validation
norm.fun
The function (unquoted name) used to calculate the normalizing constant. Default is mean(), but other functions such as sd() can also be used. THe function must take a vector as input and return a scalar as output, and must have an argument na.rm = TRUE.