association_statistic_for_factors: Compute the association statistic for factor variables

View source: R/visualization-functions.R

association_statistic_for_factorsR Documentation

Compute the association statistic for factor variables

Description

Returns the Cramer's V estimate and the P-value from the Pearson chi-square score between two variables.

Usage

association_statistic_for_factors(
  factors,
  clean_metadata,
  na_action = "remove"
)

Arguments

factors

A vector of factor variables.

clean_metadata

A data frame with sample identifiers as rownames and variables as factors or numeric as determined by "sageseqr::clean_covariates()".

na_action

Defaults to removing rows with missing values.


Sage-Bionetworks/sageseqr documentation built on June 13, 2024, 2:11 p.m.