HAL Formula: Convert formula or string to formula_HAL object.

formula_hal(formula, smoothness_orders, num_knots, X = NULL)

Arguments

formula

A formula_hal9001 object as outputted by h.

smoothness_orders

A default value for s if not provided explicitly to the function h.

num_knots

A default value for k if not provided explicitly to the function h.

X

Controls inheritance of the variable X from parent environment. When NULL (the default), such a variable is inherited.