Description Usage Arguments Details Value Author(s) Examples
Given other parameters, this function estimates a mixing weight from the mode of its full conditional distribution function.
1 |
beta |
a (p*1) matrix of regression coefficients. |
Given other parameters, this function estimates a mixing weight from the mode of its full conditional distribution function. This function is called when use the independent prior of predictors (no prior on structured predictors).
Return a scalar value of a mixing weight.
Vitara Pungpapong, Min Zhang, Dabao Zhang
1 2 3 4 5 6 7 8 | data(simGaussian)
Y<-as.matrix(simGaussian[,1])
X<-as.matrix(simGaussian[,-1])
# Obtain initial values from lasso
data(initbetaGaussian)
beta<-as.matrix(initbetaGaussian)
# Estimate the mixing weight
w<-get.wprior(beta)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.