mi_kopt: Determine the Optimum K

Description Usage Arguments Examples

View source: R/mi_kopt.R

Description

Determine the Optimum K

Usage

1
2
mi_kopt(dt, var.d, var.c, global = TRUE, returnK = FALSE,
  progress = TRUE, k.series = NULL)

Arguments

dt

a data.frame object

var.d

the name of the discrete variable in quotations

var.c

the name of the continuouse variable in quotations

global

set as TRUE by default. Set to FALSE for specific MI

returnK

set as TRUE to return the 'optimal' k

progress

whether to show a progress bar (DEFAULT=TRUE)

k.series

the range of integers to scan through (DEFAULT=1:100)

Examples

1
2
3
4
library(miknn)

# determining I for a series of k
mi_kopt(iris, "Species","Sepal.Length", global = TRUE)

dbrookeUAB/miknn documentation built on Sept. 3, 2020, 9:47 a.m.