rstan2.32.6 package

R Interface to Stan

As.mcmc.list

Create an mcmc.list from a stanfit object

check_hmc_diagnostics

Check HMC diagnostics after sampling

expose_stan_functions

Expose user-defined Stan functions to for testing and simulation

extract_sparse_parts

Extract the compressed representation of a sparse matrix

lookup

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

makeconf_path

Obtain the full path of file Makeconf

monitor

Compute summaries of MCMC draws and monitor convergence

nlist

Created named lists

plotting-functions

RStan Plotting Functions

print.stanfit

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

read_rdump

Read data in an dump file to a list

Rhat

Convergence and efficiency diagnostics for Markov Chains

rstan-internal

Internal Functions and Methods

rstan.package.skeleton

Create a Skeleton for a New Source Package with Stan Programs

rstan

RStan --- the interface to Stan

rstan_options

Set and read options used in RStan

sbc

Simulation Based Calibration (sbc)

set_cppo

Defunct function to set the compiler optimization level

sflist2stanfit

Merge a list of stanfit objects into one

stan

Fit a model with Stan

stan_csv

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

stan_demo

Demonstrate examples included in Stan

stan_model

Construct a Stan model

stan_plot

ggplot2 for RStan

stan_plot_diagnostics

RStan Diagnostic plots

stan_plot_options

Set default appearance options

stan_rdump

Dump the data for a Stan model to dump file in the limited format that...

stan_version

Obtain the version of Stan

stanc

Translate Stan model specification to C++ code

stanfit-class

Class stanfit: fitted Stan model

stanfit-method-extract

Extract samples from a fitted Stan model

stanfit-method-logprob

log_prob and grad_log_prob functions

stanfit-method-loo-moment-match

Moment matching for efficient approximate leave-one-out cross-validati...

stanfit-method-loo

Approximate leave-one-out cross-validation

stanfit-method-pairs

Create a matrix of output plots from a stanfit object

stanfit-method-plot

Plots for stanfit objects

stanfit-method-summary

Summary method for stanfit objects

stanfit-method-traceplot

Markov chain traceplots

stanfit2array-method

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

stanmodel-class

Class representing model compiled from C++

stanmodel-method-gqs

Draw samples of generated quantities from a Stan model

stanmodel-method-optimizing

Obtain a point estimate by maximizing the joint posterior

stanmodel-method-sampling

Draw samples from a Stan model

stanmodel-method-vb

Run Stan's variational algorithm for approximate posterior sampling

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.

  • Maintainer: Ben Goodrich
  • License: GPL (>= 3)
  • Last published: 2024-03-05