ARDL (version 0.1.0)

parse_order: Order parser

Description

It parses the order and checks the integrity of the order input.

Usage

parse_order(orders, order_name, kz, restriction = FALSE)

Arguments

orders

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).

order_name

The name of the function argument that is passed into order.

kz

An integer. The number of dependent and independent variables.

restriction

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).

Value

A numeric vector of the same length as the total number of variables (excluding the fixed ones).

See Also

parse_formula