Learn R Programming

sensitivity (version 1.30.1)

correlRatio: Correlation Ratio

Description

correlRatio computes the correlation ratio between a quantitative variable and a qualitative variable

Usage

correlRatio(X, y)

Value

The value of the correlation ratio

Arguments

X

a vector containing the quantitative variable.

y

a vector containing the qualitative variable (e.g. a factor).

Author

Bertrand Iooss

References

L. Clouvel, B. Iooss, V. Chabridon, M. Il Idrissi and F. Robin, 2024, An overview of variance-based importance measures in the linear regression context: comparative analyses and numerical tests, Preprint. https://hal.science/hal-04102053

Examples

Run this code
x <- runif(100)
y <- round(x)
correlRatio(x,y)

Run the code above in your browser using DataLab