measure_degenerate: Measure if reached limit of iterations

Description Usage Arguments Value See Also Examples

View source: R/measure_degenerate.R

Description

A degenerate 'measure' of convergence, which simply returns whether to continue if the limit of the number of iterations has been reached, or not.

Usage

1
measure_degenerate(X, Y, X_init, indicator, env = parent.frame())

Arguments

X

named list; imputed values, in order of appearance by row in original data, of each variable (named) from one iteration within missForest procedure.

Y

named list; imputed values, in order of appearance by row in origina data, of each variable (named) from the iteration within the missForest procedure succeeding that used to determine X.

X_init

data.frame; a data set including any of numeric, logical, integer, factor and ordered data types, to be used as the initial state of the missForest procedure.

indicator

named list; an indicator of the missing (=T) or not-missing (=F) status of the columns of X_init.

env

environment; environment of the calling function perform_missforest

Value

named numeric; zero when the limit on number of iterations has been reached, otherwise the current iteration.

See Also

smirf

Examples

1
2
3
4
5
## Not run: 
# simply pass to smirf
smirf(iris, stop.measure=measure_degenerate)

## End(Not run)

stephematician/miForang documentation built on July 23, 2019, 5:11 p.m.