Check that the vector of numbers of changepoints is conformable to integers greater than 1.

check_nchangepoints(nchangepoints)

Arguments

nchangepoints

Vector of the number of changepoints to evaluate.

Value

An error message is thrown if nchangepoints is not proper, else NULL.

Examples

  check_nchangepoints(0)
  check_nchangepoints(2)