#' @title wrapper for ash for shrinkage DSC
#'
#' @description Runs ash to compute betahat values
#' @details None
#'
#' @param input a list with elements betahat and sebetahat
#' @param args a list containing other additional arguments to ash
#'
#' @return output the results of the ash call
#'
library(ashr)
ash.wrapper=function(input,args=NULL){
if(is.null(args)){
args=list(mixcompdist="halfuniform",method="fdr")
}
res = do.call(ash, args= c(list(betahat=input$betahat,sebetahat=input$sebetahat),args))
return(res)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.