Learn R Programming

zebu (version 0.2.2.0)

chisqtest: Chi-squared test

Description

Chi-squared test: statistical significance of (global) chi-squared statistic and (local) chi-squared residuals

Usage

chisqtest(x, p_adjust = "BH")

Value

chisqtest returns an S3 object of class

lassie and chisqtest. Adds the following to the lassie object x:

  • global_p: global association p-value.

  • local_p: array of local association p-values.

Arguments

x

lassie S3 object.

p_adjust

multiple testing correction method. (see p.adjust.methods for a list of methods).

See Also

lassie

Examples

Run this code

# Calling lassie on cars dataset
las <- lassie(cars, continuous = colnames(cars), measure = "chisq")

# Permutation test using default settings
chisqtest(las)

Run the code above in your browser using DataLab