Description Usage Arguments Value
View source: R/orthogonalize-columns.r
Orthogonalize the independent variables, specified by a formula so that they will be orthogonal to one another. Orthogonalization is done via an iterative Gram-Schmidt process beginning with the left-most independent variable after pivoting to ensure numerical stability.
1 2 3 4 5 6 7 | orthogonalize_columns(
x,
form = NULL,
imp_ordering = NULL,
drop_colinear = TRUE,
order_pivot = TRUE
)
|
x |
a data.frame. |
form |
the model description. If missing, then a formula is generated based on numeric groupings (see group_numeric_vars). If no grouping exists, then orthogonalization is performed for the entire data frame. |
imp_ordering |
column names of x ordered by their importance. (default NULL - #' no importance ordering) |
drop_colinear |
should colinear columns be dropped? (default TRUE) |
order_pivot |
should the columns of the return be orderd by the pivot? (default TRUE) |
The return is the data frame with colums specified by the formula and an orthogonalized independent variables.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.