Nothing
.get.optim.args = function(object, tol)
{
method = object$method ## Which method of function optim(...)
lower = -Inf
upper = Inf
if ( is.null(method) )
method = ifelse(is.null(object$lower), "BFGS", "L-BFGS-B")
if ( method == "L-BFGS-B" ) ## Put bounds on parameters. bounds are only for estimate of theta
{
lower = object$lower
upper = object$upper
if ( (is.null(lower) | is.null(upper)) || (length(lower) != length(upper)) )
{
warning("User must specify both 'lower' and 'upper' (both of same length) to use optim method='L-BFGS-B'.\nSwitching to 'BFGS'.")
method = "BFGS"
lower=-Inf
upper=Inf
}
}
if ( method == "BFGS" )
control.list = list(abstol=tol, maxit=200)
else
control.list = list(factr=tol/.Machine$double.eps, maxit=200)
return( list( method=method, lower=lower, upper=upper, tol=tol, control.list=control.list ) )
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.