It parses the order and checks the integrity of the order input.
parse_order(orders, order_name, kz, restriction = FALSE)
A numeric vector of the same length as the total number of
variables (excluding the fixed ones). If the input is order
or
max_order
it should only contain positive integers or 0. If the
input is fixed_order
it should also contain the value '-1'
indicating that a specific order should not be fixed. An integer could be
provided if all variables are of the same order (or all '-1' in the case of
fixed_order
).
The name of the function argument that is passed into
order
.
An integer. The number of dependent and independent variables.
When the input in orders
is either order
or
max_order
it should be FALSE
(default). When the input is
fixed_order
it should be '-1' indicating that the input in
orders
is a restriction for the 'order' of the model (either upper
bound or fixed order).
A numeric vector of the same length as the total number of variables (excluding the fixed ones).