Learn R Programming

emax.glm (version 0.1.2)

select_best: Select the best parameters from a set of results

Description

Select the best parameters from a set of results

Return the optimal model based on BIC scores

Usage

select_best(small.em)

select_best(small.em)

Arguments

small.em

A 'small.em' object

Value

The parameters of the best model, as judged by log-likelihood.

Examples

Run this code
# NOT RUN {
x <- model.matrix(~ factor(wool) + factor(tension), warpbreaks)
y <- warpbreaks$breaks

warm_up <- small.em(x = x, y = y, K = 2, b.init = "random", sample.size = 20)

select_best(warm_up)

# }

Run the code above in your browser using DataLab