| list_g_functions | R Documentation |
Returns a data frame describing each non-intercept g-function group from the
model equation, including degree, factor count, graph dimensionality, and
the number of terms. The g-function notation is
{}^{f}g^{j}_{k} where f = number of factor variables
(top-left), j = degree of interaction (top-right), k = position within the
degree group (bottom-right).
list_g_functions(earth_result)
earth_result |
An object of class |
A data frame with columns:
Integer. Sequential index (1-based).
Character. Variable names in the group.
Integer. Degree of the g-function (top-right superscript).
Integer. Position within the degree (bottom-right subscript).
Integer. Number of factor variables (top-left superscript).
Integer. Graph dimensionality (degree minus factor count).
Integer. Number of terms in the group.
result <- fit_earth(mtcars, "mpg", c("cyl", "disp", "hp", "wt"))
list_g_functions(result)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.