Test whether the number of dimensions of terms in the same parameter are consistent.
Value
A logical vector indicating whether the number of dimensions is consistent.
Examples
consistent_term(term("alpha[1]", "alpha[3]", "beta[1,1]", "beta[2,1]"))
#> [1] TRUE TRUE TRUE TRUE
consistent_term(term("alpha[1]", NA_term_, "beta[1,1]", "beta[2]"))
#> [1] TRUE NA FALSE FALSE