Nothing
#' Checks whether the model has converged
#'
#' @param ddf.model ddf object
#' @return boolean
#' @author Laura Marshall
#'
check.convergence <- function(ddf.model){
model.type <- ddf.model$method
converged <- NULL
if(model.type%in%c("ds")){
if(ddf.model$ds$converge == 0){
converged <- TRUE
}else{
converged <- FALSE
}
}else if(model.type%in%c("trial", "trial.fi", "io", "io.fi")){
converged <- ddf.model$mr$mr$converged
}
return(converged)
}
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.