Function assesses whether input dimensions match. In the following, n is the number of observations / forecasts. Scalar values may be repeated to match the length of the other input. Allowed options are therefore:
observedis vector of length 1 or length npredictedis:a vector of of length 1 or length n
a matrix with n rows and 1 column
Arguments
- observed
Input to be checked. Should be a factor of length n with exactly two levels, holding the observed values. The highest factor level is assumed to be the reference level. This means that
predictedrepresents the probability that the observed value is equal to the highest factor level.- predicted
Input to be checked.
predictedshould be a vector of length n, holding probabilities. Alternatively,predictedcan be a matrix of size n x 1. Values represent the probability that the corresponding value inobservedwill be equal to the highest available factor level.