get_formula_elements: Extract formula elements

View source: R/formula.R

get_formula_elementsR Documentation

Extract formula elements

Description

This function separates the model terms of a given formula into response, all_terms, non-parametric terms and parametric terms.

Usage

get_formula_elements(formula)

Arguments

formula

A formula object

Value

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


neuralGAM documentation built on June 22, 2024, 6:55 p.m.