Learn R Programming

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

rstan (version 2.11.1)

R Interface to Stan

Description

User-facing R functions are provided to parse, compile, test, estimate, and analyze Stan models by accessing the header-only Stan library provided by the 'StanHeaders' package. The Stan project develops a probabilistic programming language that implements full Bayesian statistical inference via Markov Chain Monte Carlo, rough Bayesian inference via variational approximation, and (optionally penalized) maximum likelihood estimation via optimization. In all three cases, automatic differentiation is used to quickly and accurately evaluate gradients without burdening the user with the need to derive the partial derivatives.

Copy Link

Version

Install

install.packages('rstan')

Monthly Downloads

64,748

Version

2.11.1

License

GPL (>= 3)

Maintainer

Ben Goodrich

Last Published

July 29th, 2016

Functions in rstan (2.11.1)

lookup

Look up the Stan function that corresponds to a R function or name.
monitor

Compute summaries of MCMC draws and monitor convergence
read_rdump

Read data in an R dump file to a list
makeconf_path

Obtain the full path of file Makeconf
As.mcmc.list

Create an mcmc.list from a stanfit object
sflist2stanfit

Merge a list of stanfit objects into one
read_stan_csv

Read CSV files of samples generated by (R)Stan into a stanfit object
rstan_gg_options

Set default appearance options
rstan.package.skeleton

Create a Skeleton for a New Source Package with Stan Programs
rstan-internal

Internal Functions and Methods
rstan-package

RStan --- R interface to Stan
set_cppo

Defunct function to set the compiler optimization level
Diagnostic plots

RStan Diagnostic plots
stan_demo

Demonstrate examples included in Stan
stan_model

Construct a Stan model
Plots

ggplot2 for RStan
stan_rdump

Dump the data for a Stan model to R dump file in the limited format that Stan can read.
pairs.stanfit

Create a matrix of output plots from a stanfit object
stan

Fit a model using Stan
plot-methods

Plots for stanfit objects
extract

Extract samples from a fitted Stan model
stanc

Translate Stan model specification to C++ code
stan_version

Obtain the version of Stan
log_prob-methods

Model's log_prob and grad_log_prob functions
stanfit-class

Class stanfit: fitted Stan model
vb

Run Stan's variational algorithm for approximate posterior sampling
summary-methods

Summary method for stanfit objects
traceplot

Markov chain traceplots
as.array

Create array, matrix, or data.frame objects from samples in a stanfit object
stanmodel-class

Class representing model compiled from C++
optimizing

Obtain a point estimate by maximizing the joint posterior
expose_stan_functions

Expose user-defined Stan functions to R for testing and simulation
sampling

Draw samples from a Stan model
extract_sparse_parts

Extract the compressed representation of a sparse matrix
rstan-plotting-functions

RStan Plotting Functions
print

Print a summary for a fitted model represented by a stanfit object
rstan_options

Set and read options used in RStan