pair_ace | R Documentation |
Calculates the maximal correlation coefficient from alternating conditional expectations algorithm for every variable pair in a dataset.
pair_ace(d, handle.na = TRUE, ...)
d |
A dataframe |
handle.na |
If TRUE uses pairwise complete observations, otherwise NAs not handled. |
... |
other arguments |
The maximal correlation is calculated using alternating conditional expectations
algorithm which find the transformations of variables such that the squared correlation
is maximised. The ace
function from acepack
package is used for the
calculation.
A tibble of class pairwise
with a maximal correlation from the alternating conditional expectations
algorithm for every variable pair
Breiman, Leo, and Jerome H. Friedman. "Estimating optimal transformations for multiple regression and correlation." Journal of the American statistical Association 80.391 (1985): 580-598.
pair_ace(iris)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.