covariance: Covariance of two EDA objects.

View source: R/functions_corelation.R

covarianceR Documentation

Covariance of two EDA objects.

Description

Calculates covariance of two EDA objects. For numeric-type EDAs,Pearson, Spearman and Kendall covariances are available. Factor-type EDA objects are converted to the numeric ones prior to analysis.

Usage

covariance(eda_object, y, type = c("pearson", "spearman", "kendall"), ...)

Arguments

eda_object

an EDA object, created by eda.

y

an EDA object, created by eda.

type

which covariance is to be calculated: Pearson (pearson), Spearman (spearman), or Kendall TauB (kendall). Defaults to 'pearson'.

....

extra arguments passed to the correlation computing function (cov).

Value

an eTest object with the covariance coefficient.


PiotrTymoszuk/ExDA documentation built on Nov. 17, 2024, 5:46 p.m.