batch_chisq: Batch Chi-square Tests

Description Usage Arguments Examples

View source: R/batch_chisq.R

Description

A wrapper for chisq_wrap to enable batch processing of Chi-square tests of association between one DV and a vector of at least 1 IV.

Usage

1
batch_chisq(df, DV, IV, ...)

Arguments

df

The data frame that contains the IV and DV

DV

A column name containing a factor variable, will be the columns of the chi-sq contingecy tables.

IV

A vector of column names of length(IV) >= 1 containing factor variables.

...

pases options to the child functions, e.g. the number of replicates to use in simulation B = 1000.

Examples

1
2
batch_chisq(df = testdata, DV = "extortion_victim",
            IV = c("bribe_victim", "size"))

prestevez/vicarp documentation built on Jan. 28, 2020, 1:56 p.m.