get_formula_elements {neuralGAM} | R Documentation |
This function separates the model terms of a given formula into response, all_terms, non-parametric terms and parametric terms.
get_formula_elements(formula)
formula |
A formula object |
A list with the following elements:
y: The response variable
terms: A character vector with all model terms
np_terms: A character vector with non-parametric terms
p_terms: A character vector with parametric terms
np_formula: The formula for the non-parametric terms
p_formula: The formula for the parametric terms
formula: The original formula object