chi2tab: Table of 'chisq.test()' test for several explanatory...

Description Usage Arguments Value

View source: R/chi2tab.R

Description

Performs the function chisq.test() for the main.var and var.

Usage

1
chi2tab(data, main.var, var, nb.dec = 1)

Arguments

data

The database.

main.var

string. The categorical variable against the variable will be compared.

var

string. The categorical variable to compare with.

nb.dec

digit. Number of decimals for the percentage.

Value

table with n (percentage) per level and p-value of chi2 test.


LilithF/doMIsaul documentation built on Dec. 17, 2021, 12:08 a.m.