powered by
This function generates random deviates from dirichlet laplace shrinkage prior and can plot the distribution function.
dlprior(hyper = 1/2, p = 1e+05, plt = TRUE, min = -5, max = 5, sigma = 1)
important hyperparameter that related to posterior shrinkage scales and prior distribution
number of observations
whether to plot the dirichlet laplace prior. default TRUE means plot the distribution
left point of the plot graph
right point of the plot graph
the value equals to normal noises' standard deviations
A p*1 vector. p observations from the distribution
# NOT RUN { {theta=dlprior(hyper=1/2,p=100000,plt=TRUE,min=-5,max=5,sigma=1)} # }
Run the code above in your browser using DataLab