
Last chance! 50% off unlimited learning
Sale ends in
ashn(betahat, sebetahat, mixcompdist = c("uniform", "halfuniform", "normal"), df = NULL, alpha = 4, ncores = FALSE, ...)
ash
the main function that this wrapper function is calling
beta = c(rep(0,100),rnorm(100))+0.2
sebetahat = abs(rnorm(200,0,1))
betahat = rnorm(200,beta,sebetahat)
beta.ashn = ashn(betahat, sebetahat,alpha=6)
#beta.ashn4 = ashn(betahat, sebetahat,alpha=6,ncores=4)
print(beta.ashn[[1]]) #best ash object
print(beta.ashn[[2]]) #corresponding mode (0 or some other values)
print(beta.ashn[[3]]) #log-likelihood for all models
Run the code above in your browser using DataLab