corRatio: Correlation Ratio

Description Usage Arguments Details Author(s) References See Also Examples

View source: R/corRatio.R

Description

Calculates the correlation ratio between a quantitaive variable and a qualitative variable

Usage

1
  corRatio(variable, group)

Arguments

variable

a single quantitative variable

group

vector or factor with group memberships (qualitative variable)

Details

No missing values are allowed

Author(s)

Gaston Sanchez

References

Tenenhaus, M. (2007) Statistique. Dunod, Paris.

See Also

FRatio, discPower

Examples

1
2
3
4
5
6
7
8
## Not run: 
  # iris dataset
  data(iris)

  # correlation ratio between Petal-Length and Species
  corRatio(iris$Petal.Length, iris$Species)
  
## End(Not run)

Example output

[1] 0.9413717

DiscriMiner documentation built on May 1, 2019, 10:32 p.m.