Learn R Programming

⚠️There's a newer version (2.32.1) of this package.Take me there.

rstanarm (version 2.19.3)

Bayesian Applied Regression Modeling via Stan

Description

Estimates previously compiled regression models using the 'rstan' package, which provides the R interface to the Stan C++ library for Bayesian estimation. Users specify models via the customary R syntax with a formula and data.frame plus some additional arguments for priors.

Copy Link

Version

Install

install.packages('rstanarm')

Monthly Downloads

15,417

Version

2.19.3

License

GPL (>= 3)

Maintainer

Ben Goodrich

Last Published

February 11th, 2020

Functions in rstanarm (2.19.3)

available-models

Modeling functions available in rstanarm
as.matrix.stanreg

Extract the posterior sample
example_model

Example model
family.stanreg

family method for stanreg objects
QR-argument

The QR argument
bayes_R2.stanreg

Compute a Bayesian version of R-squared or LOO-adjusted R-squared for regression models.
available-algorithms

Estimation algorithms available for rstanarm models
example_jm

Example joint longitudinal and time-to-event model
family.stanmvreg

family method for stanmvreg objects
log_lik.stanreg

Pointwise log-likelihood matrix
loo_predict.stanreg

Compute weighted expectations using LOO
launch_shinystan.stanreg

Using the ShinyStan GUI with rstanarm models
adapt_delta

adapt_delta: Target average acceptance probability
kfold.stanreg

K-fold cross-validation
plot.stanreg

Plot method for stanreg objects
model.frame.stanreg

model.frame method for stanreg objects
model.matrix.stanreg

model.matrix method for stanreg objects
plot.predict.stanjm

Plot the estimated subject-specific or marginal longitudinal trajectory
loo.stanreg

Information criteria and cross-validation
plot.survfit.stanjm

Plot the estimated subject-specific or marginal survival function
formula.stanreg

formula method for stanreg objects
model.frame.stanmvreg

model.frame method for stanmvreg objects
rstanarm-package

Applied Regression Modeling via RStan
prior_summary.stanreg

Summarize the priors used for an rstanarm model
posterior_interval.stanreg

Posterior uncertainty intervals
se

Extract standard errors
priors

Prior distributions and options
posterior_predict.stanreg

Draw from posterior predictive distribution
posterior_linpred.stanreg

Posterior distribution of the linear predictor
predictive_error.stanreg

In-sample or out-of-sample predictive errors
print.stanreg

Print method for stanreg objects
get_y

Extract X, Y or Z from a stanreg object
stan_polr

Bayesian ordinal regression models via Stan
neg_binomial_2

Family function for negative binomial GLMs
pairs.stanreg

Pairs method for stanreg objects
nobs.stanmvreg

Methods for stanreg objects
rstanarm-deprecated

Deprecated functions
stanmvreg-methods

Methods for stanmvreg objects
rstanarm-datasets

Datasets for rstanarm examples
posterior_traj

Estimate the subject-specific or marginal longitudinal trajectory
posterior_survfit

Estimate subject-specific or standardised survival probabilities
print.survfit.stanjm

Generic print method for survfit.stanjm objects
stanreg-objects

Fitted model objects
pp_validate

Model validation via simulation
predictive_interval.stanreg

Predictive intervals
pp_check.stanreg

Graphical posterior predictive checks
stan_gamm4

Bayesian generalized linear additive models with optional group-specific terms via Stan
stan_aov

Bayesian regularized linear models via Stan
stan_clogit

Conditional logistic (clogit) regression models via Stan
terms.stanmvreg

terms method for stanmvreg objects
posterior_vs_prior

Juxtapose prior and posterior
stan_jm

Bayesian joint longitudinal and time-to-event models via Stan
predict.stanreg

Predict method for stanreg objects
ps_check

Graphical checks of the estimated survival function
stan_betareg

Bayesian beta regression models via Stan
reexports

Objects exported from other packages
terms.stanreg

terms method for stanreg objects
stan_biglm

Bayesian regularized linear but big models via Stan
stan_mvmer

Bayesian multivariate generalized linear models with correlated group-specific terms via Stan
stan_nlmer

Bayesian nonlinear models with group-specific terms via Stan
stanreg_list

Create lists of fitted model objects, combine them, or append new models to existing lists of models.
summary.stanreg

Summary method for stanreg objects
stan_glmer

Bayesian generalized linear models with group-specific terms via Stan
stan_glm

Bayesian generalized linear models via Stan