Package: modelSelection 1.0.7
modelSelection: High-Dimensional Model Selection
Model selection and averaging for regression, generalized linear models, generalized additive models, graphical models and mixtures, focusing on Bayesian model selection and information criteria (Bayesian information criterion etc.). See Rossell (2025) <doi:10.5281/zenodo.17119597> (see the URL field below for its URL) for a hands-on book describing the methods, examples and suggested citations if you use the package.
Authors:
modelSelection_1.0.7.tar.gz
modelSelection_1.0.7.zip(r-4.7)modelSelection_1.0.7.zip(r-4.6)modelSelection_1.0.7.zip(r-4.5)
modelSelection_1.0.7.tgz(r-4.6-x86_64)modelSelection_1.0.7.tgz(r-4.6-arm64)modelSelection_1.0.7.tgz(r-4.5-x86_64)modelSelection_1.0.7.tgz(r-4.5-arm64)
modelSelection_1.0.7.tar.gz(r-4.7-arm64)modelSelection_1.0.7.tar.gz(r-4.7-x86_64)modelSelection_1.0.7.tar.gz(r-4.6-arm64)modelSelection_1.0.7.tar.gz(r-4.6-x86_64)
modelSelection_1.0.7.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
card.svg |card.png
modelSelection/json (API)
| # Install 'modelSelection' in R: |
| install.packages('modelSelection', repos = c('https://davidrusi.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/davidrusi/modelselection/issues
Last updated from:ce4f321b68. Checks:13 OK. Indexed: yes.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel-arm64 | OK | 252 | ||
| linux-devel-x86_64 | OK | 268 | ||
| source / vignettes | OK | 263 | ||
| linux-release-arm64 | OK | 256 | ||
| linux-release-x86_64 | OK | 268 | ||
| macos-release-arm64 | OK | 142 | ||
| macos-release-x86_64 | OK | 359 | ||
| macos-oldrel-arm64 | OK | 180 | ||
| macos-oldrel-x86_64 | OK | 505 | ||
| windows-devel | OK | 284 | ||
| windows-release | OK | 271 | ||
| windows-oldrel | OK | 309 | ||
| wasm-release | OK | 184 |
Exports:aicbbPriorbestAICbestAIC_fastbestBICbestBIC_fastbestEBICbestEBIC_fastbestICbestIC_fastbfnormmixbicbinomPriorcilcoefByModeldalaplddirdemomdemomigmargdimomdiwishdmomdmomigmargdpostNIWemomprioreprodexponentialpriorgroupemompriorgroupimompriorgroupmompriorgroupzellnerprioricicarplusprioricovigpriorimompriorlocalnulltestlocalnulltest_fdalocalnulltest_fda_givenknotslocalnulltest_givenknotsmarginalLikelihoodmarginalNIWmodelbbpriormodelbinompriormodelcomplexpriormodelSelectionmodelSelection_eBayesmodelSelectionGGMmodelSelectionGGM_eBayesmodelunifpriormompriornormalidpriorpalaplpemompemomigmargpimomplotpriorpmompmomigmargpostProbpostSamplespriorp2gqimomqmomralaplrnlprpostNIWunifPriorzellnerprior
Dependencies:clicodetoolscpp11dplyrfarverforeachgenericsggplot2glmnetgluegtableintervalsisobanditeratorsL0LearnlabelinglatticelifecyclemagrittrMASSMatrixMatrixGenericsmatrixStatsmclustmgcvmvtnormncvregnlmepillarpkgconfigplyrpracmaR6RColorBrewerRcppRcppArmadilloRcppEigenreshape2rlangS7scalesshapesparseMatrixStatsstringistringrsurvivaltibbletidyselectutf8vctrsviridisLitewithr
Readme and manuals
Help Manual
| Help page | Topics |
|---|---|
| Priors on model space for variable selection problems | bbPrior binomPrior unifPrior |
| Model with best AIC, BIC, EBIC or other general information criteria (getIC) | bestAIC bestAIC_fast bestBIC bestBIC_fast bestEBIC bestEBIC_fast bestIC bestIC_fast |
| Number of Normal mixture components under Normal-IW and Non-local priors | bfnormmix |
| Treatment effect estimation for linear models via Confounder Importance Learning using non-local priors. | cil |
| Density and random draws from the asymmetric Laplace distribution | dalapl palapl ralapl |
| Dirichlet density | ddir |
| Density for Inverse Wishart distribution | diwish |
| Non-local prior density, cdf and quantile functions. | demom demom,data.frame-method demom,matrix-method demom,vector-method demom-methods demomigmarg dimom dmom dmomigmarg pemom pemomigmarg pimom pmom pmomigmarg qimom qmom |
| Posterior Normal-IWishart density | dpostNIW rpostNIW |
| Expectation of a product of powers of Normal or T random variables | eprod |
| Class "icfit" | icfit icfit-class icfit.coef icfit.predict icfit.summary show,icfit-method |
| Extract estimated inverse covariance | icov |
| Local variable selection | localnulltest localnulltest_fda localnulltest_fda_givenknots localnulltest_givenknots |
| Marginal (or integrated) likelihood density of the observed data for an individual model handled by modelSelection (regression, GLM, GAM, accelerated failure time, regression with Normal, two-piece Normal, Laplace or two-piece Laplace residuals | marginalLikelihood |
| Marginal likelihood under a multivariate Normal likelihood and a conjugate Normal-inverse Wishart prior. | marginalNIW marginalNIW,matrix,missing,missing,missing,missing-method marginalNIW,matrix,missing,missing,missing,vector-method marginalNIW,missing,ANY,matrix,numeric,missing-method marginalNIW,missing,list,list,numeric,missing-method marginalNIW-methods |
| Class "mixturebf" | coef.mixturebf mixturebf mixturebf-class show,mixturebf-method |
| Bayesian variable selection for generalized linear and generalized additive models. | modelsearchBlockDiag modelSelection modelSelection_eBayes |
| Bayesian variable selection for Gaussian graphical models | modelSelectionGGM modelSelectionGGM_eBayes |
| Class "msfit_ggm" | msfit_ggm msfit_ggm-class msfit_ggm.coef show,msfit_ggm-method |
| Class "msfit" | coefByModel coefByModel,msfit-method coefByModel-methods msfit msfit-class msfit.coef msfit.plot msfit.predict show,msfit-method |
| Class "msPriorSpec" | aic bic bicprior emomprior exponentialprior groupemomprior groupimomprior groupmomprior groupzellnerprior ic icarplusprior igprior imomprior modelbbprior modelbinomprior modelcomplexprior modelunifprior momprior msPriorSpec msPriorSpec-class normalidprior zellnerprior |
| Plot estimated marginal prior inclusion probabilities | plotprior plotprior,cilfit-method plotprior-methods |
| Obtain posterior model probabilities | postProb postProb,cilfit-method postProb,localtest-method postProb,mixturebf-method postProb,msfit-method postProb,msfit_ggm-method postProb-methods |
| Extract posterior samples from an object | postSamples postSamples,mixturebf-method postSamples-methods |
| Moment and inverse moment prior elicitation | priorp2g |
| Posterior sampling for regression parameters | rnlp rnlp,ANY,matrix,missing,missing,missing,character,character-method rnlp,ANY,matrix,missing,missing,missing,missing,missing-method rnlp,ANY,matrix,missing,missing,msfit,missing,missing-method rnlp,missing,missing,missing,missing,msfit,missing,missing-method rnlp,missing,missing,numeric,matrix,missing,missing,missing-method rnlp-methods |
