#' Best Beta
#'
#'
#' @description Best parameter for penalty
#'
#' @param data vector of data points
#'
#' @return best penalty value
#' @export
#'
#' @examples
#' best_beta(c(0,1,1,2,2,3))
best_beta <- function(data)
{
n <- length(data)
return (2*var(data)*log(n))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.