tidy_mine_output: Tidy the output of minerva::mine

Description Usage Arguments Value Examples

View source: R/tidymine.R

Description

Tidy the output of minerva::mine

Usage

1
tidy_mine_output(mine_output, predictor_variable_names)

Arguments

mine_output

The output from running minerva::mine

predictor_variable_names

A vector of the variable names used as $x$ in minerva::mine.

Value

A tidy tibble of MINE statistics.

Examples

1
2
3
4
5
6
x <- mlb_2008[,-c(1:3)]
excl <- which(diag(var(x)) < 1e-5) # exclude variables with low variance
x <- x[,-excl]
y <- dat$SALARY
minerva_result <- minerva::mine(x = x, y = y)
tidy_mine_output(minerva_result, x)

joekroese/tidymine documentation built on Aug. 25, 2020, 12:06 a.m.