col_assoc: Compute column associations

Description Usage Arguments Value

View source: R/popmod.R

Description

Computes a matrix of associations (like R-squared or mutual information) of a collection of columns.

Usage

1
2
3
col_assoc(pm, target = NULL, given = NULL,
          statistic = c("mutual information", "R squared", "classic dep prob"),
          seed = NULL)

Arguments

pm

an edp_population_model object, from popmod

target

an optional list of column names, defaults to all columns

given

a list of values to condition on; list(a = 3) means to compute the association conditional on a being 3.

statistic

the name of the statistic to compute

seed

if set, an integer to pass to EDP as a random seed for this call

Value

a square matrix of column associations, where the edge length is length(target)


edpclient documentation built on May 2, 2019, 2:01 p.m.