Package: BayesSIM 2.0.1

Seowoo Jung

BayesSIM: Integrated Interface of Bayesian Single Index Models using 'nimble'

Provides tools for fitting Bayesian single index models with flexible choices of priors for both the index and the link function. The package implements model estimation and posterior inference using efficient MCMC algorithms built on the 'nimble' framework, allowing users to specify, extend, and simulate models in a unified and reproducible manner. The following methods are implemented in the package: Antoniadis et al. (2004) <https://www.jstor.org/stable/24307224>, Wang (2009) <doi:10.1016/j.csda.2008.12.010>, Choi et al. (2011) <doi:10.1080/10485251003768019>, Dhara et al. (2019) <doi:10.1214/19-BA1170>, McGee et al. (2023) <doi:10.1111/biom.13569>.

Authors:Seowoo Jung [aut, cre], Eun-kyung Lee [aut]

BayesSIM_2.0.1.tar.gz
BayesSIM_2.0.1.zip(r-4.7-any)BayesSIM_2.0.1.zip(r-4.6-any)
BayesSIM_2.0.1.tar.gz(r-4.7-any)BayesSIM_2.0.1.tar.gz(r-4.6-any)
BayesSIM_2.0.1.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
BayesSIM/json (API)

# Install 'BayesSIM' in R:
install.packages('BayesSIM', repos = c('https://cran.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/seowoo-jung/bayessim/issues

Datasets:
  • concrete - UCI Concrete Compressive Strength
  • DATA1 - Simulated Single–Index Data

On CRAN:

Conda:

2.65 score 517 downloads 34 exports 47 dependencies

Last updated from:95cbf8f463. Checks:6 OK. Indexed: no.

TargetResultTimeFilesSyslog
linux-develOK365
source / vignettesOK235
linux-releaseOK327
windows-develOK368
windows-releaseOK391
wasm-releaseOK121

Exports:as_bsimBayesSIMBayesSIM_setupbsFisherbsFisher_setupbsPolarbsPolar_setupbsSpherebsSphere_setupbsSpikebsSpike_setupcompileModelAndMCMCgetCModelgetCSamplergetInitgetModelgetModelDefgetSamplergetVarMonitorgetWAICGOFgpFishergpFisher_setupgpPolargpPolar_setupgpPolarHighgpPolarHigh_setupgpSpheregpSphere_setupgpSpikegpSpike_setupinit_paramnimTraceplotprior_param

Dependencies:abindbackportscheckmateclicodacpp11distributionaldplyrfarvergenericsggplot2gluegtableigraphisobandlabelinglatticelifecycleloomagrittrMASSMatrixmatrixStatsmvtnormnimblenumDerivpatchworkpillarpkgconfigposteriorpracmapurrrR6RColorBrewerrlangS7scalesstringistringrtensorAtibbletidyrtidyselectutf8vctrsviridisLitewithr

Readme and manuals

Help Manual

Help pageTopics
Construct a Fitted Model Object from Model Setup and MCMC Outputas_bsim as_bsim.bsimSetup
Extract the Result Data.frameas.data.frame.bsimPred
Integrated Function for Bayesian Single-Index RegressionBayesSIM BayesSIM_setup print.bsim print.bsimSetup
Bayesian Single-Index Regression with B-Spline Link and von Mises-Fisher PriorbsFisher bsFisher_setup
Bayesian Single-Index Regression with B-Spline Link and One-to-One Polar TransformationbsPolar bsPolar_setup
Bayesian Single-Index Regression with B-Spline Link and Uniform Prior on Half-Unit SpherebsSphere bsSphere_setup
Bayesian Single-Index Regression with B-Spline Link and Spike-and-Slab PriorbsSpike bsSpike_setup
Extract Index Vector Coefficients from 'BayesSIM'coef.bsim
Compile a 'nimble' Model and Its MCMCcompileModelAndMCMC
UCI Concrete Compressive Strength (n = 1030, p = 8)concrete
Simulated Single–Index Data (n = 200, p = 4)DATA1
Extract Fitted Values from 'BayesSIM'fitted.bsim
Get nimbleModel and nimbleSampler Object from the Result of 'compileModelAndMCMC'getCModel getCModel.bsim getCSampler getCSampler.bsim getFunction getModel getSampler
Get Initial Value of the ModelgetInit
Get Definition of the ModelgetModelDef
Retrieve Monitorable VariablesgetVarMonitor
Compute Conditional WAIC for BSIMgetWAIC
Goodness of Fit for 'BayesSIM'GOF GOF.bsim
Bayesian Single-Index Regression with Gaussian Process Link and von Mises-Fisher PriorgpFisher gpFisher_setup
Bayesian Single-Index Regression with Gaussian Process Link and One-to-One Polar TransformationgpPolar gpPolarHigh gpPolarHigh_setup gpPolar_setup
Bayesian Single-Index Regression with Gaussian Process Link and Uniform Prior on Unit SpheregpSphere gpSphere_setup
Bayesian Single-Index Regression with Gaussian Process Link and Spike-and-Slab PriorgpSpike gpSpike_setup
Build an Initial Value List for BayesSIM Modelsinit_param
Traceplot for 'BayesSIM'nimTraceplot
Plot Method for 'BayesSIM'plot.bsim plot.bsimPred
Plot Method for 'BayesSIM_setup'plot.bsimSetup
Prediction Method for 'BayesSIM'predict.bsim print.bsimPred
Build a Prior List for BayesSIM Modelsprior_param
Extract Residuals from 'BayesSIM'residuals.bsim
Summarize 'BayesSIM'print.summary.bsim summary.bsim
Summarize Predictionsprint.summary.bsimPred summary.bsimPred
Summarize 'BayesSIM_setup'print.summary.bsimSetup summary.bsimSetup