We should improve some checks here or the errors are extremely generic: e.g., trying to match to a reference plan that doesn't exist gives: ``` Error in plan_mat[, plan] : subscript out of bounds ```
We should improve some checks here or the errors are extremely generic:
e.g., trying to match to a reference plan that doesn't exist gives: