distribution: Compare distributions of two EDA objects or with a...

View source: R/functions_corelation.R

distributionR Documentation

Compare distributions of two EDA objects or with a theoretical distribution.

Description

For numeric-type EDAs: compares distributions of two EDA objects or of an EDA object with a user-specified theoretical distribution with Kolmorgov-Smirnov test (ks.test). For factor-type EDA objects: the distribution is compared via Chi squared test (chisq.test).

Usage

distribution(eda_object, y, ...)

Arguments

eda_object

an EDA object, created by eda.

y

form comparison of numeric distributions: an EDA object or a numeric vector form comparing two factors: another EDA object with the same levels.

...

extra arguments passed to ks.test.

Value

an eTest object with the D statistic and p value for numeric distribution or an eTest object with the Chi-squared, df and p value for categorical EDAs.


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