convergenceplot: convergencePlot function for visualizing genetic algorithm in...

Description Usage Arguments Details Examples

Description

This function plots convergence for gemm objects that were called with the "check.convergence" argument.

Usage

1
  convergencePlot(beta, fit.metric, ...)

Arguments

beta

matrix of BIC values for the best model in each generation.

fit.metric

selected metric for a given model, specified when gemm is run.

...

Additional arguments to be passed to lower level plotting functions.

Details

Generally does not work well with n.chains < 10.

Examples

1
2
3
4
  data(mtcars)
  gemm.model <- gemm(mpg ~ disp + hp, data = mtcars, check.convergence = TRUE,
    seed.metric = FALSE, n.chains = 3, n.gens = 3, n.beta = 200)
  with(gemm.model, convergencePlot(converge.fit.metric, fit.metric))

jchrszcz/gemmR documentation built on May 18, 2019, 10:24 p.m.