convergenceCriterion <- function(method)
{
switch(tolower(method),
`newton-raphson` = c(1L, 2L),
nr = c(1L, 2L),
bfgs = 0L,
bfgsr = c(1L, 2L),
`bfgs-r` = c(1L, 2L),
bhhh = c(1L, 2L),
`nelder-mead` = 0L,
nm = 0L,
sann = 0L)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.