bravo

R 패키지 메타데이터와 수집 신호를 모아 봅니다.

Packages / CRAN / bravo

bravo

v4.0.0
Repository CRANLicense GPL-3Lifecycle activeNeeds compilation yes
DOI
10.32614/CRAN.package.bravo
Task views
Agricultural Science

Core Signals

첫 화면에서 판단해야 할 수집 신호를 먼저 배치합니다.

1
Task views
Agricultural Science

Supported Backends

DESCRIPTION에서 감지한 backend 관련 package입니다.

0
backend package 신호가 없습니다.

Quick Facts

기본 메타데이터를 작은 카드와 토큰으로 압축합니다.

profile
Repository
CRAN
Version
4.0.0
License
GPL-3
Lifecycle
active
Needs compilation
yes
Last observed
2026-05-30
CRAN
cran.r-project.org/package=bravo

Build fields

LinkingTo
1
Rcpp

수집 소스별 패키지 정보

1개 소스
CRAN
4.0.0
2026-05-30
License
GPL-3
Depends
R (>= 3.0.2), methods
Imports
Rcpp (>= 1.0.2), Matrix (>= 1.2-17),dplyr,parallel,doParallel,foreach,shiny,bslib,memuse,shinyjs
LinkingTo
Rcpp
Needs compilation
yes
Lifecycle
active
Last observed
2026-05-30 10:45:11

이 패키지가 의존하는 패키지

5개 표시전체 12개
PackageTypeSpec
methods
CRAN · 4.0.0 · 2026-05-30
Dependsmethods
bslib
CRAN · 4.0.0 · 2026-05-30
Importsbslib
doParallel
CRAN · 4.0.0 · 2026-05-30
ImportsdoParallel
dplyr
CRAN · 4.0.0 · 2026-05-30
Importsdplyr
foreach
CRAN · 4.0.0 · 2026-05-30
Importsforeach
1 / 3

이 패키지를 쓰는 패키지

0개 표시전체 0개
PackageTypeSpec
표시할 dependency edge가 없습니다.
1 / 1

패키지 페이지

All links
20
Repository
CRAN
Version
3.2.2
Collected
2026-05-21 11:32:33
Package page
https://cran.r-project.org/web/packages/bravo/index.html
DOI
10.32614/CRAN.package.bravo
CRAN checks
https://cran.r-project.org/web/checks/check_results_bravo.html
README
https://cran.r-project.org/web/packages/bravo/readme/README.html
Reference HTML
https://cran.r-project.org/web/packages/bravo/refman/bravo.html
Reference PDF
https://cran.r-project.org/web/packages/bravo/bravo.pdf
Source package
https://cran.r-project.org/src/contrib/bravo_3.2.2.tar.gz
Archive
https://CRAN.R-project.org/src/contrib/Archive/bravo
In views
Agriculture
Page fields
Author
Dongjin Li [aut, cre], Debarshi Chakraborty [aut], Somak Dutta [aut], Vivekananda Roy [ctb]
CRAN Checks
bravo results
DOI
10.32614/CRAN.package.bravo
In Views
Agriculture
License
GPL-3
LinkingTo
Rcpp
Maintainer
Dongjin Li <liyangxiaobei at gmail.com>
Materials
README
NeedsCompilation
yes
Old Sources
bravo archive
Package Source
bravo_3.2.2.tar.gz
Published
2024-10-29
Reference Manual
bravo.html , bravo.pdf
Version
3.2.2
Windows Binaries
r-devel: bravo_3.2.2.zip , r-release: bravo_3.2.2.zip , r-oldrel: bravo_3.2.2.zip
MacOS Binaries
r-release (arm64): bravo_3.2.2.tgz , r-oldrel (arm64): bravo_3.2.2.tgz , r-release (x86_64): bravo_3.2.2.tgz , r-oldrel (x86_64): bravo_3.2.2.tgz
Version
3.2.2
LinkingTo
Rcpp
Published
2024-10-29
DOI
10.32614/CRAN.package.bravo
Author
Dongjin Li [aut, cre], Debarshi Chakraborty [aut], Somak Dutta [aut], Vivekananda Roy [ctb]
Maintainer
Dongjin Li <liyangxiaobei at gmail.com>
License
GPL-3
NeedsCompilation
yes
Materials
README
In Views
Agriculture
CRAN Checks
bravo results
Reference Manual
bravo.html , bravo.pdf
Package Source
bravo_3.2.2.tar.gz
Windows Binaries
r-devel: bravo_3.2.2.zip , r-release: bravo_3.2.2.zip , r-oldrel: bravo_3.2.2.zip
MacOS Binaries
r-release (arm64): bravo_3.2.2.tgz , r-oldrel (arm64): bravo_3.2.2.tgz , r-release (x86_64): bravo_3.2.2.tgz , r-oldrel (x86_64): bravo_3.2.2.tgz
Old Sources
bravo archive
Page sections 3
Documentation
Heading
Documentation
Links
[{"label":"bravo.html","section":"","type":"","url":"https://cran.r-project.org/web/packages/bravo/refman/bravo.html"},{"label":"bravo.pdf","section":"","type":"","url":"https://cran.r-project.org/web/packages/bravo/bravo.pdf"}]
Text
Reference manual: bravo.html , bravo.pdf
Downloads
Heading
Downloads
Links
[{"label":"bravo_3.2.2.tar.gz","section":"","type":"","url":"https://cran.r-project.org/src/contrib/bravo_3.2.2.tar.gz"},{"label":"bravo_3.2.2.zip","section":"","type":"","url":"https://cran.r-project.org/bin/windows/contrib/4.7/bravo_3.2.2.zip"},{"label":"bravo_3.2.2.zip","section":"","type":"","url":"https://cran.r-project.org/bin/windows/contrib/4.6/bravo_3.2.2.zip"},{"label":"bravo_3.2.2.zip","section":"","type":"","url":"https://cran.r-project.org/bin/windows/contrib/4.5/bravo_3.2.2.zip"},{"label":"bravo_3.2.2.tgz","section":"","type":"","url":"https://cran.r-project.org/bin/macosx/sonoma-arm64/contrib/4.6/bravo_3.2.2.tgz"},{"label":"bravo_3.2.2.tgz","section":"","type":"","url":"https://cran.r-project.org/bin/macosx/big-sur-arm64/contrib/4.5/bravo_3.2.2.tgz"},{"label":"bravo_3.2.2.tgz","section":"","type":"","url":"https://cran.r-project.org/bin/macosx/big-sur-x86_64/contrib/4.6/bravo_3.2.2.tgz"},{"label":"bravo_3.2.2.tgz","section":"","type":"","url":"https://cran.r-project.org/bin/macosx/big-sur-x86_64/contrib/4.5/bravo_3.2.2.tgz"},{"label":"bravo archive","section":"","type":"","url":"https://CRAN.R-project.org/src/contrib/Archive/bravo"}]
Text
Package source: bravo_3.2.2.tar.gz Windows binaries: r-devel: bravo_3.2.2.zip , r-release: bravo_3.2.2.zip , r-oldrel: bravo_3.2.2.zip macOS binaries: r-release (arm64): bravo_3.2.2.tgz , r-oldrel (arm64): bravo_3.2.2.tgz , r-release (x86_64): bravo_3.2.2.tgz , r-oldrel (x86_64): bravo_3.2.2.tgz Old sources: bravo archive
Linking
Heading
Linking
Links
[{"label":"https://CRAN.R-project.org/package=bravo","section":"","type":"","url":"https://CRAN.R-project.org/package=bravo"}]
Text
Please use the canonical form https://CRAN.R-project.org/package=bravo to link to this page.
Materials 1
Documentation 2
Downloads 9
All page links 20

패키지 문서 원문

3 artifacts
field
README
CRAN · 3.2.2 · Materials · text/html · 861 · 2026-05-07
Title
README
Label
README
Text content
Text content
README code{white-space: pre-wrap;} span.smallcaps{font-variant: small-caps;} span.underline{text-decoration: underline;} div.column{display: inline-block; vertical-align: top; width: 50%;} div.hanging-indent{margin-left: 1.5em; text-indent: -1.5em;} ul.task-list{list-style: none;} bravo An R package that performs Bayesian iterated screening and/or variable selection for ultra-high dimensional Gaussian linear regression models
reference_manual_html
Reference manual HTML
CRAN · 3.2.2 · Documentation · text/html · 21,880 · 2026-05-07
Title
Help for package bravo
Label
Reference manual HTML
Text content
Text content
Help for package bravo const macros = { "\\R": "\\textsf{R}", "\\mbox": "\\text", "\\code": "\\texttt"}; function processMathHTML() { var l = document.getElementsByClassName('reqn'); for (let e of l) { katex.render(e.textContent, e, { throwOnError: false, macros }); } return; } Package {bravo} Contents bits mip.sven predict.sven sven Type: Package Title: Bayesian Screening and Variable Selection Version: 3.2.2 Maintainer: Dongjin Li <liyangxiaobei@gmail.com> Description: Performs Bayesian variable screening and selection for ultra-high dimensional linear regression models. License: GPL-3 Encoding: UTF-8 Depends: R (≥ 3.0.2), methods Imports: Rcpp (≥ 1.0.2), Matrix (≥ 1.2-17) LinkingTo: Rcpp NeedsCompilation: yes RoxygenNote: 7.3.1 Packaged: 2024-10-29 22:02:34 UTC; dongjl Author: Dongjin Li [aut, cre], Debarshi Chakraborty [aut], Somak Dutta [aut], Vivekananda Roy [ctb] Repository: CRAN Date/Publication: 2024-10-29 23:10:06 UTC Bayesian Iterated Screening (ultra-high, high or low dimensional). Description Perform Bayesian iterated screening in Gaussian regression models Usage bits(X, y, lam = 1, w = 0.5, pp = FALSE, max.var = nrow(X), verbose = TRUE) Arguments X An n\times p matrix. Sparse matrices are supported and every care is taken not to make copies of this (typically) giant matrix. No need to center or scale. y The response vector of length n . lam The slab precision parameter. Default: 1 . w The prior inclusion probability of each variable. Default: 1/2 . pp Boolean: If FALSE (default) the algorithm stops after including max.var many variables. If true, the posterior probability stopping rule is used. max.var The maximum number of variables to be included. verbose If TRUE (default) will show the variable index included in each iteration. Value A list with components model.pp An integer vector of the screened model. postprobs The sequence of posterior probabilities until the last included variable. lam The value of lam, the slab precision parameter. w The value of w, the prior inclusion probability. References Wang, R., Dutta, S., Roy, V. (2021) Bayesian iterative screening in ultra-high dimensional settings. https://arxiv.org/abs/2107.10175 Examples n=50; p=100; TrueBeta <- c(rep(5,3),rep(0,p-3)) rho <- 0.6 x1 <- matrix(rnorm(n*p), n, p) X <- sqrt(1-rho)*x1 + sqrt(rho)*rnorm(n) y <- 0.5 + X %*% TrueBeta + rnorm(n) res<-bits(X,y, pp=TRUE) res$model.pp # the vector of screened model res$postprobs # the log (unnormalized) posterior probabilities corresponding to the model.pp. Compute marginal inclusion probabilities from a fitted "sven" object. Description This function computes the marginal inclusion probabilities of all variables from a fitted "sven" object. Usage mip.sven(object, threshold = 0) Arguments object A fitted "sven" object threshold marginal inclusion probabilities above this threshold are stored. Default 0. Value The object returned is a data frame if the sven was run with a single matrix, or a list of two data frames if sven was run with a list of two matrices. The first column are the variable names (or numbers if column names of were absent). Only the nonzero marginal inclusion probabilities are stored. Author(s) Somak Dutta Maintainer: Somak Dutta <somakd@iastate.edu> Examples n <- 50; p <- 100; nonzero <- 3 trueidx <- 1:3 truebeta <- c(4,5,6) X <- matrix(rnorm(n*p), n, p) # n x p covariate matrix y <- 0.5 + X[,trueidx] %*% truebeta + rnorm(n) res <- sven(X=X, y=y) res$model.map # the MAP model mip.sven(res) Z <- matrix(rnorm(n*p), n, p) # another covariate matrix y2 = 0.5 + X[,trueidx] %*% truebeta + Z[,1:2] %*% c(-2,-2) + rnorm(n) res2 <- sven(X=list(X,Z), y=y2) mip.sven(res2) # two data frames, one for X and another for Z Make predictions from a fitted "sven" object. Description This function makes point predictions and computes prediction intervals from a fitted "sven" object. Usage ## S3 method for class 'sven' predict( object, newdata, model = c("WAM", "MAP"), interval = c("none", "MC", "Z"), return.draws = FALSE, Nsim = 10000, level = 0.95, alpha = 1 - level, ... ) Arguments object A fitted "sven" object newdata Matrix of new values for X at which predictions are to be made. Must be a matrix; can be sparse as in Matrix package. model The model to be used to make predictions. Model "MAP" gives the predictions calculated using the MAP model; model "WAM" gives the predictions calculated using the WAM. Default: "WAM". interval Type of interval calculation. If interval = "none" , only point predictions are returned; if interval = "MC" , Monte Carlo prediction intervals are returned; if interval = "Z" , Z prediction intervals are returned. return.draws only required if interval = "MC" . if TRUE , the Monte Carlo samples are returned. Default: FALSE . Nsim only required if interval = "MC" . The Monte Carlo sample size. Default: 10000. level Confidence level of the interval. Default: 0.95. alpha Type one error rate. Default: 1- level . ... Further arguments passed to or from other methods. Value The object returned depends on "interval" argument. If interval = "none" , the object is an \code{ncol(newdata)}\times 1 vector of the point predictions; otherwise, the object is an \code{ncol(newdata)}\times 3 matrix with the point predictions in the first column and the lower and upper bounds of prediction intervals in the second and third columns, respectively. if return.draws is TRUE , a list with the following components is returned: prediction vector or matrix as above mc.draws an \code{ncol(newdata)} \times \code{Nsim} matrix of the Monte Carlo samples Author(s) Dongjin Li and Somak Dutta Maintainer: Dongjin Li <dongjl@iastate.edu> References Li, D., Dutta, S., Roy, V.(2020) Model Based Screening Embedded Bayesian Variable Selection for Ultra-high Dimensional Settings http://arxiv.org/abs/2006.07561 Examples n = 80; p = 100; nonzero = 5 trueidx <- 1:5 nonzero.value <- c(0.50, 0.75, 1.00, 1.25, 1.50) TrueBeta = numeric(p) TrueBeta[trueidx] <- nonzero.value X <- matrix(rnorm(n*p), n, p) y <- 0.5 + X %*% TrueBeta + rnorm(n) res <- sven(X=X, y=y) newx <- matrix(rnorm(20*p), 20, p) # predicted values at a new data matrix using MAP model yhat <- predict(object = res, newdata = newx, model = "MAP", interval = "none") # 95% Monte Carlo prediction interval using WAM MC.interval <- predict(object = res, model = "WAM", newdata = newx, interval = "MC", level=0.95) # 95% Z-prediction interval using MAP model Z.interval <- predict(object = res, model = "MAP", newdata = newx, interval = "Z", level = 0.95) Selection of variables with embedded screening using Bayesian methods (SVEN) in Gaussian linear models (ultra-high, high or low dimensional). Description SVEN is an approach to selecting variables with embedded screening using a Bayesian hierarchical model. It is also a variable selection method in the spirit of the stochastic shotgun search algorithm. However, by embedding a unique model based screening and using fast Cholesky updates, SVEN produces a highly scalable algorithm to explore gigantic model spaces and rapidly identify the regions of high posterior probabilities. It outputs the log (unnormalized) posterior probability of a set of best (highest probability) models. For more details, see Li et al. (2023, https://doi.org/10.1080/10618600.2022.2074428) Usage sven( X, y, w = NULL, lam = NULL, Ntemp = 10, Tmax = NULL, Miter = 50, wam.threshold = 0.5, log.eps = -16, L = 20, verbose = FALSE ) Arguments X The n\times p covariate matrix or list of two matrices without intercept. The following classes are supported: matrix and dgCMatrix . Every care is taken not to make copies of these (typically) giant matrices. No need to center or scale these matrices manually. Scaling is performed implicitly and regression coefficient are returned on the original scale. Typically, in a combined GWAS-TWAS type analysis, X[[1]] should be a sparse matrix and X[[2]] should be a dense matrix. y The response vector of length n . No need to center or scal
section
bravo.pdf
CRAN · 3.2.2 · Documentation · application/pdf · 159,888 · 2026-05-07
Title
bravo.pdf
Label
bravo.pdf

Reference for bravo (3.2.2)

4개 topic
bits
Bayesian Iterated Screening (ultra-high, high or low dimensional).
CRAN · 3.2.2 · bravo/man/bits.Rd · 2026-05-07

Perform Bayesian iterated screening in Gaussian regression models

Aliases
bits
Usage
bits(X, y, lam = 1, w = 0.5, pp = FALSE, max.var = nrow(X), verbose = TRUE)
Arguments
X
An n p matrix. Sparse matrices are supported and every care is taken not to make copies of this (typically) giant matrix. No need to center or scale.
y
The response vector of length n.
lam
The slab precision parameter. Default: 1.
w
The prior inclusion probability of each variable. Default: 1/2.
pp
Boolean: If FALSE (default) the algorithm stops after including max.var many variables. If true, the posterior probability stopping rule is used.
max.var
The maximum number of variables to be included.
verbose
If TRUE (default) will show the variable index included in each iteration.
Value
A list with components model.ppAn integer vector of the screened model. postprobsThe sequence of posterior probabilities until the last included variable. lamThe value of lam, the slab precision parameter. wThe value of w, the prior inclusion probability.
Examples
n=50; p=100; TrueBeta <- c(rep(5,3),rep(0,p-3)) rho <- 0.6 x1 <- matrix(rnorm(n*p), n, p) X <- sqrt(1-rho)*x1 + sqrt(rho)*rnorm(n) y <- 0.5 + X %*% TrueBeta + rnorm(n) res<-bits(X,y, pp=TRUE) res$model.pp # the vector of screened model res$postprobs # the log (unnormalized) posterior probabilities corresponding to the model.pp.
References
Wang, R., Dutta, S., Roy, V. (2021) Bayesian iterative screening in ultra-high dimensional settings. https://arxiv.org/abs/2107.10175
mip.sven
Compute marginal inclusion probabilities from a fitted "sven" object.
CRAN · 3.2.2 · bravo/man/mip.sven.Rd · 2026-05-07

This function computes the marginal inclusion probabilities of all variables from a fitted "sven" object.

Aliases
mip.sven
Usage
mip.sven(object, threshold = 0)
Arguments
object
A fitted "sven" object
threshold
marginal inclusion probabilities above this threshold are stored. Default 0.
Value
The object returned is a data frame if the sven was run with a single matrix, or a list of two data frames if sven was run with a list of two matrices. The first column are the variable names (or numbers if column names of were absent). Only the nonzero marginal inclusion probabilities are stored.
Examples
n <- 50; p <- 100; nonzero <- 3 trueidx <- 1:3 truebeta <- c(4,5,6) X <- matrix(rnorm(n*p), n, p) # n x p covariate matrix y <- 0.5 + X[,trueidx] %*% truebeta + rnorm(n) res <- sven(X=X, y=y) res$model.map # the MAP model mip.sven(res) Z <- matrix(rnorm(n*p), n, p) # another covariate matrix y2 = 0.5 + X[,trueidx] %*% truebeta + Z[,1:2] %*% c(-2,-2) + rnorm(n) res2 <- sven(X=list(X,Z), y=y2) mip.sven(res2) # two data frames, one for X and another for Z
Author
Somak Dutta Maintainer: Somak Dutta <somakd@iastate.edu>
predict.sven
Make predictions from a fitted "sven" object.
CRAN · 3.2.2 · bravo/man/predict.sven.Rd · 2026-05-07

This function makes point predictions and computes prediction intervals from a fitted "sven" object.

Aliases
predict.sven
Usage
predictsven( object, newdata, model = c("WAM", "MAP"), interval = c("none", "MC", "Z"), return.draws = FALSE, Nsim = 10000, level = 0.95, alpha = 1 - level, ... )
Arguments
object
A fitted "sven" object
newdata
Matrix of new values for X at which predictions are to be made. Must be a matrix; can be sparse as in Matrix package.
model
The model to be used to make predictions. Model "MAP" gives the predictions calculated using the MAP model; model "WAM" gives the predictions calculated using the WAM. Default: "WAM".
interval
Type of interval calculation. If interval = "none", only point predictions are returned; if interval = "MC", Monte Carlo prediction intervals are returned; if interval = "Z", Z prediction intervals are returned.
return.draws
only required if interval = "MC". if TRUE, the Monte Carlo samples are returned. Default: FALSE.
Nsim
only required if interval = "MC". The Monte Carlo sample size. Default: 10000.
level
Confidence level of the interval. Default: 0.95.
alpha
Type one error rate. Default: 1-level.
...
Further arguments passed to or from other methods.
Value
The object returned depends on "interval" argument. If interval = "none", the object is an ncol(newdata) 1 vector of the point predictions; otherwise, the object is an ncol(newdata) 3 matrix with the point predictions in the first column and the lower and upper bounds of prediction intervals in the second and third columns, respectively. if return.draws is TRUE, a list with the following components is returned: predictionvector or matrix as above mc.drawsan ncol(newdata) Nsim matrix of the Monte Carlo samples
Examples
n = 80; p = 100; nonzero = 5 trueidx <- 1:5 nonzero.value <- c(0.50, 0.75, 1.00, 1.25, 1.50) TrueBeta = numeric(p) TrueBeta[trueidx] <- nonzero.value X <- matrix(rnorm(n*p), n, p) y <- 0.5 + X %*% TrueBeta + rnorm(n) res <- sven(X=X, y=y) newx <- matrix(rnorm(20*p), 20, p) # predicted values at a new data matrix using MAP model yhat <- predict(object = res, newdata = newx, model = "MAP", interval = "none") # 95% Monte Carlo prediction interval using WAM MC.interval <- predict(object = res, model = "WAM", newdata = newx, interval = "MC", level=0.95) # 95% Z-prediction interval using MAP model Z.interval <- predict(object = res, model = "MAP", newdata = newx, interval = "Z", level = 0.95)
Author
Dongjin Li and Somak Dutta Maintainer: Dongjin Li <dongjl@iastate.edu>
References
Li, D., Dutta, S., Roy, V.(2020) Model Based Screening Embedded Bayesian Variable Selection for Ultra-high Dimensional Settings http://arxiv.org/abs/2006.07561
sven
Selection of variables with embedded screening using Bayesian methods (SVEN) in Gaussian linear models (ultra-high, high...
CRAN · 3.2.2 · bravo/man/sven.Rd · 2026-05-07

SVEN is an approach to selecting variables with embedded screening using a Bayesian hierarchical model. It is also a variable selection method in the spirit of the stochastic shotgun search algorithm. However, by embedding a unique model based screening and using fast Cholesky updates, SVEN produces a highly scalable algorithm to explore gigantic model spaces and rapidly identify the regions of high posterior probabilities. It outputs the log (unnormalized) posterior probability of a set of best (highest probability) models. For more details, see Li et al. (2023, https://doi.org/10.1080/10618600.2022.2074428)

Aliases
sven
Usage
sven( X, y, w = NULL, lam = NULL, Ntemp = 10, Tmax = NULL, Miter = 50, wam.threshold = 0.5, log.eps = -16, L = 20, verbose = FALSE )
Arguments
X
The n p covariate matrix or list of two matrices without intercept. The following classes are supported: matrix and dgCMatrix. Every care is taken not to make copies of these (typically) giant matrices. No need to center or scale these matrices manually. Scaling is performed implicitly and regression coefficient are returned on the original scale. Typically, in a combined GWAS-TWAS type analysis, X[[1]] should be a sparse matrix and X[[2]] should be a dense matrix.
y
The response vector of length n. No need to center or scale.
w
The prior inclusion probability of each variable. Default: NULL, whence it is set as n/p if X is a matrix. Or (n/p_1,n/p_2) if $X$ is a list of two matrices with p_1 and p_2 columns.
lam
The slab precision parameter. Default: NULL, whence it is set as n/p^2 for as suggested by the theory of Li et al. (2023). Similarly, it's a vector of length two with values n/P_1^2 and n/p_2^2 when X is a list.
Ntemp
The number of temperatures. Default: 10.
Tmax
The maximum temperature. Default: p+ p.
Miter
The number of iterations per temperature. Default: 50.
wam.threshold
The threshold probability to select the covariates for WAM. A covariate will be included in WAM if its corresponding marginal inclusion probability is greater than the threshold. Default: 0.5.
log.eps
The tolerance to choose the number of top models. See detail. Default: -16.
L
The minimum number of neighboring models screened. Default: 20.
verbose
If FALSE, the function prints the current temperature SVEN is at; the default is TRUE.
Details
SVEN is developed based on a hierarchical Gaussian linear model with priors placed on the regression coefficients as well as on the model space as follows: y | X, _0,,,^2,w, N(_01 + X__,^2I_n) _i|_0,,^2,w, indep. N(0, _i^2/),~i=1,,p, (_0,^2)|,w,p p(_0,^2) 1/^2 _i|w, iid Bernoulli(w) where X_ is the n || submatrix of X consisting of those columns of X for which _i=1 and similarly, _ is the || subvector of corresponding to . Degenerate spike priors on inactive variables and Gaussian slab priors on active covariates makes the posterior probability (up to a normalizing constant) of a model P(|y) available in explicit form (Li et al., 2020). The variable selection starts from an empty model and updates the model according to the posterior probability of its neighboring models for some pre-specified number of iterations. In each iteration, the models with small probabilities are screened out in order to quickly identify the regions of high posterior probabilities. A temperature schedule is used to facilitate exploration of models separated by valleys in the posterior probability function, thus mitigate posterior multimodality associated with variable selection models. The default maximum temperature is guided by the asymptotic posterior model selection consistency results in Li et al. (2020). SVEN provides the maximum a posteriori (MAP) model as well as the weighted average model (WAM). WAM is obtained in the following way: (1) keep the best (highest probability) K distinct models ^(1),,^(K) with P(^(1)|y) P(^(K)|y) where K is chosen so that \P(^(K)|y)/P(^(1)|y)\ > log.eps; (2) assign the weights w_i = P(^(i)|y)/_k=1^K P(^(k)|y) to the model ^(i); (3) define the approximate marginal inclusion probabilities for the jth variable as _j = _k=1^K w_k I(^(k)_j = 1). Then, the WAM is defined as the model containing variables j with _j > wam.threshold. SVEN also provides all the top K models which are stored in an p K sparse matrix, along with their corresponding log (unnormalized) posterior probabilities. When X is a list with two matrices, say, W and Z, the above method is extended to ncol(W)+ncol(Z) dimensional regression. However, the hyperparameters lam and w are chosen separately for the two matrices, the default values being nrow(W)/ncol(W)^2 and nrow(Z)/ncol(Z)^2 for lam and sqrt(nrow(W))/ncol(W) and sqrt(nrow(Z))/ncol(Z) for w. The marginal inclusion probabities can be extracted by using the function mip.
Value
A list with components model.mapA vector of indices corresponding to the selected variables in the MAP model. model.wamA vector of indices corresponding to the selected variables in the WAM. model.topA sparse matrix storing the top models. beta.mapThe ridge estimator of regression coefficients in the MAP model. beta.wamThe ridge estimator of regression coefficients in the WAM. mip.mapThe marginal inclusion probabilities of the variables in the MAP model. mip.wamThe marginal inclusion probabilities of the variables in the WAM. pprob.mapThe log (unnormalized) posterior probability corresponding to the MAP model. pprob.topA vector of the log (unnormalized) posterior probabilities corresponding to the top models. statsAdditional statistics.
Examples
n <- 50; p <- 100; nonzero <- 3 trueidx <- 1:3 truebeta <- c(4,5,6) X <- matrix(rnorm(n*p), n, p) # n x p covariate matrix y <- 0.5 + X[,trueidx] %*% truebeta + rnorm(n) res <- sven(X=X, y=y) res$model.map # the MAP model Z <- matrix(rnorm(n*p), n, p) # another covariate matrix y2 = 0.5 + X[,trueidx] %*% truebeta + Z[,1:2] %*% c(-2,-2) + rnorm(n) res2 <- sven(X=list(X,Z), y=y2)
See also
[mip.sven()] for marginal inclusion probabilities, [predict.sven()](via [predict()]) for prediction for .
Author
Dongjin Li, Debarshi Chakraborty, and Somak Dutta Maintainer: Dongjin Li <liyangxiaobei@gmail.com>
References
Li, D., Dutta, S., and Roy, V. (2023). Model based screening embedded Bayesian variable selection for ultra-high dimensional settings. Journal of Computational and Graphical Statistics, 32(1), 61-73.

버전 이력

RepositoryVersionPublishedFirst seenLast seenDocs
CRAN4.0.02026-05-292026-05-30
CRAN3.2.22026-05-272026-05-27

보안

표시할 OSV 데이터가 없습니다.

문헌 신호

표시할 OpenAlex 데이터가 없습니다.