factor.allpairs.test: Creates all 2-combinations of factor variables within a given...

Description Usage Arguments Value Examples

Description

Creates all 2-combinations of factor variables within a given scope and measures their relative information to an output variable

Usage

1
2
factor.allpairs.test(data, vars.list, var.output, max.factors = Inf,
  return.list = FALSE, parallel = FALSE)

Arguments

data

A data frame

vars.list

A list of pairs (variable.name,variable.type) such as those produced by allvariables.manual.review

var.output

The name of the variable output

max.factors

An integer; factors with more factors than this integer are not taken into account

return.list

(defaults to TRUE) If TRUE, the function returns a list of one-line dataframes; if FALSE, it returns a concatenated dataframe sorted by decreasing value of RI.combined

parallel

(defaults to FALSE) If TRUE, dispatches factor pairs in parallel

Value

A list

Examples

1
2
3
list.pairs <- list(c("cyl","factor"),c("vs","factor"),c("am","factor"),
                   c("gear","factor"),c("carb","factor"))
factor.allpairs.test(mtcars,list.pairs,"mpg")

ahdxb/data.exploration documentation built on May 11, 2019, 11:31 p.m.