monobin.run: Run monobin algorithm for the selected inputs

Description Usage Arguments Value Examples

View source: R/99_HELPERS.R

Description

Run monobin algorithm for the selected inputs

Usage

1
monobin.run(algo, target.n, rf, sc, args.e, db)

Arguments

algo

Binning algorithm from monobin package.

target.n

Selected target.

rf

Vector of a selected numeric risk factors.

sc

Numeric vector of special case values.

args.e

Argument elements of the selected monobin function.

db

Data frame of target and numeric risk factors.

Value

Returns a list of two data frame. The first data frame contains the results of implemented binning algorithm, while the second one contains transformed risk factors.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
if 	(interactive()) {
	tbls <- withProgress(message = "Running the binning algorithm", 
					   value = 0, {
			  	  suppressWarnings(
			  	  monobin.run(algo = bin.algo, 
						  target.n = isolate(input$trg.select), 
						  rf = isolate(input$rf.select), 
						  sc = scr.check.res[[1]], 
						  args.e = args.e, 
						  db = isolate(rv$db))
		  )})

	}

monobinShiny documentation built on Nov. 22, 2021, 9:07 a.m.