chisq_pvalues: Compute Chi-squared p-values

View source: R/associations.R

chisq_pvaluesR Documentation

Compute Chi-squared p-values

Description

Compute Chi-squared p-values

Usage

chisq_pvalues(
  m_data,
  response,
  adjust_method = "fdr",
  mlog10_transform = TRUE,
  n_cores = 1,
  ...
)

Arguments

m_data

Data matrix of observations by variables

response

Response vector of length the number of observations

adjust_method

Multiple testing p-value adjustment method. Passed to stats::p.adjust. 'fdr' by default.

mlog10_transform

Logical, transform p-values by minus log10. True by default.

n_cores

Number of cores

...

Passed to stats::chisq.test

Value

Chi-squared p-values


snplinkage documentation built on Sept. 11, 2024, 6:02 p.m.