Learn R Programming

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

rstanarm (version 2.17.4)

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

11,880

Version

2.17.4

License

GPL (>= 3)

Maintainer

Last Published

April 13th, 2018

Functions in rstanarm (2.17.4)

example_jm

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

family method for stanreg objects
posterior_linpred.stanreg

Posterior distribution of the linear predictor
adapt_delta

Target average acceptance probability
prior_summary.stanreg

Summarize the priors used for an rstanarm model
rstanarm-datasets

Datasets for rstanarm examples
rstanarm-deprecated

Deprecated functions
model.frame.stanmvreg

model.frame method for stanmvreg objects
formula.stanreg

formula method for stanreg objects
model.frame.stanreg

model.frame method for stanreg objects
pairs.stanreg

Pairs method for stanreg objects
priors

Prior distributions and options
available-algorithms

Estimation algorithms available for rstanarm models
get_y

Extract X, Y or Z from a stanreg object
as.matrix.stanreg

Extract the posterior sample
posterior_predict.stanreg

Draw from posterior predictive distribution
loo.stanreg

Information criteria and cross-validation
loo_predict.stanreg

Compute weighted expectations using LOO
plot.predict.stanjm

Plot the estimated subject-specific or marginal longitudinal trajectory
posterior_survfit

Estimate subject-specific or standardised survival probabilities
predict.stanreg

Predict method for stanreg objects
predictive_error.stanreg

In-sample or out-of-sample predictive errors
posterior_traj

Estimate the subject-specific or marginal longitudinal trajectory
ps_check

Graphical checks of the estimated survival function
print.stanreg

Print method for stanreg objects
posterior_vs_prior

Juxtapose prior and posterior
predictive_interval.stanreg

Predictive intervals
print.survfit.stanjm

Generic print method for survfit.stanjm objects
reexports

Objects exported from other packages
stanreg-methods

Methods for stanreg objects
stan_biglm

Bayesian regularized linear but big models via Stan
stan_betareg

Bayesian beta regression models via Stan
print.kfold

Various print methods
stanreg-objects

Fitted model objects
stan_clogit

Conditional logistic (clogit) regression models via Stan
stan_gamm4

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

Modeling functions available in rstanarm
stan_glm

Bayesian generalized linear models via Stan
bayes_R2.stanreg

Compute a Bayesian version of R-squared for regression models
model.matrix.stanreg

model.matrix method for stanreg objects
stanreg_list

Create a list of fitted model objects
stan_glmer

Bayesian generalized linear models with group-specific terms via Stan
summary.stanreg

Summary method for stanreg objects
neg_binomial_2

Family function for negative binomial GLMs
terms.stanmvreg

terms method for stanmvreg objects
stan_jm

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

terms method for stanreg objects
stan_aov

Bayesian regularized linear models via Stan
plot.stanreg

Plot method for stanreg objects
plot.survfit.stanjm

Plot the estimated subject-specific or marginal survival function
pp_validate

Model validation via simulation
pp_check.stanreg

Graphical posterior predictive checks
rstanarm-package

Applied Regression Modeling via RStan
se

Extract standard errors
stan_polr

Bayesian ordinal regression models via Stan
stanmvreg-methods

Methods for stanmvreg objects
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
example_model

Example model
launch_shinystan.stanreg

Using the ShinyStan GUI with rstanarm models
log_lik.stanreg

Pointwise log-likelihood matrix
family.stanmvreg

family method for stanmvreg objects
QR-argument

The QR argument
posterior_interval.stanreg

Posterior uncertainty intervals