matrix_chisq: Perform 1vAll factor analysis given a factor matrix and group...

View source: R/Utilities.R

matrix_chisqR Documentation

Perform 1vAll factor analysis given a factor matrix and group definition

Description

Given indices in cluster_ii, compute the chisq test on every column for values in cluster_ii vs the rest.

Usage

matrix_chisq(factorDF, cluster_ii)

Arguments

factorDF

dataframe of factors

cluster_ii

numeric vector - indices denoting the group to be compared

Value

pval - numeric vector, pvalue for each column

stat - numeric vector, test statistic (Cramer's V) for each column


YosefLab/VISION documentation built on June 14, 2024, 5:27 p.m.