#' Estimate confidence interval from scaled lasso.
#'
#' @param shiftpunct a \code{shiftpunct} object with method \code{scaledlasso}.
#' @param alpha_conf the confidence level.
#' @param method \code{score system} or \code{colwise inverse}.
#' @param ... further argument...
#'
#' @return a \code{shiftconf} object.
#' @export
#'
estimate_confint <- function(shiftpunct, alpha_conf = 0.05,
method = c("score system", "colwise inverse"),
...){
method <- match.arg(method)
stopifnot(inherits(shiftpunct, "shiftpunct"))
obj <- switch(method,
"score system" = confint_scoresystem(
x = shiftpunct, ...),
"colwise inverse" = confint_colwiseinverse(
x = shiftpunct, ...)
)
obj <- as_shiftconf(obj, shiftpunct, alpha_conf = alpha_conf)
obj$optim_info$supp_arg <- list(...)
return(obj)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.