Learn R Programming

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

rstan (version 2.9.0-3)

R Interface to Stan

Description

User-facing R functions are provided by this package 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

69,697

Version

2.9.0-3

License

GPL (>= 3)

Maintainer

Ben Goodrich

Last Published

February 12th, 2016

Functions in rstan (2.9.0-3)

rstan_options

Set and read options used in RStan
Diagnostic plots

Diagnostic plots
stan_rdump

Dump the data for a Stan model to Rdump file in the limited format that Stan can read.
stan_version

Obtain the version of Stan
traceplot-methods

traceplot: draw the traces of the sample
Plots

ggplot2 for RStan
set_cppo

Defunct function to set the compiler optimization level
vb-methods

Run Stan's Variational Algorithm for Approximate Posterior Sampling
print

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

Construct a Stan model
monitor

Compute the summary for MCMC simulation samples and monitor the convergence
rstan_gg_options

Set default appearance options
read_rdump

Read data in an Rdump file to a list
extract-methods

extract: extract samples from fitted Stan model
lookup

Look up the Stan function that corresponds to a Rfunction or name.
sflist2stanfit

Merge a list of stanfit objects into one
log_prob-methods

model's log_prob and grad_log_prob functions
stan

Fit a model using Stan
plotting-functions

RStan Plotting Functions
stanfit-class

Class stanfit: fitted Stan model
rstan-package

RStan --- Rinterface to Stan
expose_stan_functions

Expose user-defined Stan functions to Rfor testing and simulation
rstan.package.skeleton

Create a Skeleton for a New Source Package with Stan Programs
read_stan_csv

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

Translate Stan model specification to C++ code
makeconf_path

Obtain the full path of file Makeconf
plot-methods

Plots for stanfit objects
extract_sparse_parts

Extract the compressed representation of a sparse matrix
stan_demo

Demonstrate examples included in Stan
sampling-methods

sampling: draw samples from Stan model
optimizing-methods

optimizing: obtain a point estimate by maximizing the joint posterior
stanmodel-class

Class representing model compiled from C++
pairs.stanfit

Create a matrix of output plots from a stanfit object
rstan-internal

Internal Functions and Methods
as.array

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