Package: stanli 0.20.0

Sean Talts

stanli: The Stan Language Interpreter

Compile and sample Stan models without a C++ toolchain. Stan models are lowered to a graph of operations over precompiled 'stan-math' kernels rather than translated to C++ and compiled, so preparing a model takes milliseconds instead of minutes. Provides adaptive Hamiltonian Monte Carlo with the diagnostics a Bayesian workflow needs (rank-normalized split R-hat, bulk and tail effective sample size, E-BFMI), and L-BFGS optimization. The runtime library is downloaded on first use rather than bundled; see stanli_install().

Authors:Sean Talts [aut, cre]

stanli_0.20.0.tar.gz
stanli_0.20.0.zip(r-4.7-x86_64)stanli_0.20.0.zip(r-4.7-arm64)stanli_0.20.0.zip(r-4.6-x86_64)stanli_0.20.0.zip(r-4.6-arm64)stanli_0.20.0.zip(r-4.5-x86_64)
stanli_0.20.0.tgz(r-4.6-x86_64)stanli_0.20.0.tgz(r-4.6-arm64)stanli_0.20.0.tgz(r-4.5-x86_64)stanli_0.20.0.tgz(r-4.5-arm64)
stanli_0.20.0.tar.gz(r-4.7-arm64)stanli_0.20.0.tar.gz(r-4.7-x86_64)stanli_0.20.0.tar.gz(r-4.6-arm64)stanli_0.20.0.tar.gz(r-4.6-x86_64)
stanli_0.20.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION
card.svg |card.png
stanli/json (API)

# Install 'stanli' in R:
install.packages('stanli', repos = c('https://staffanbetner.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/seantalts/stanli/issues

On CRAN:

Conda:

4.76 score 16 stars 18 scripts 25 exports 0 dependencies

Last updated from:b92871e168. Checks:13 OK, 2 ERROR. Indexed: no.

TargetResultTimeFilesSyslog
linux-devel-arm64OK266
linux-devel-x86_64OK299
source / vignettesOK324
linux-release-arm64OK247
linux-release-x86_64OK291
macos-release-arm64OK101
macos-release-x86_64OK344
macos-oldrel-arm64OK107
macos-oldrel-x86_64OK334
windows-devel-arm64ERROR268
windows-devel-x86_64OK164
windows-release-arm64ERROR312
windows-release-x86_64OK138
windows-oldrel-x86_64OK122
wasm-releaseOK281

Exports:as_cstanfitas_draws_arrayas_rfitas_stanfitcstan_modelextractget_elapsed_timeget_sampler_paramslaplace_modellog_liklog_prob_gradoptimize_modelpathfinder_modelsample_cstansample_modelstanli_availablestanli_check_syntaxstanli_diagnosestanli_exact_lpstanli_installstanli_modelstanli_runtime_pathstanli_thread_safeunconstrainvariational_model

Dependencies:

Readme and manuals

Help Manual

Help pageTopics
Native CmdStanR-style fit interfaceas_cstanfit print.stanli_cstanfit summary.stanli_cstanfit
Convert a fit to a draws arrayas_draws_array
Native R fit interfaceas_rfit extract get_elapsed_time get_sampler_params summary.stanli_rfit
Convert draws to an RStan fit without compilationas_stanfit as_stanfit.stanli_fit as_stanfit.stanli_stanfit
Native CmdStanR-style model interfacecstan_model
Draws from a Laplace approximationlaplace_model
Extract pointwise log likelihoodslog_lik log_lik.stanli_fit
Log density and gradientlog_prob_grad
Find the posterior mode by L-BFGSoptimize_model
Pathfinder variational inferencepathfinder_model
Sample with CmdStanR-style argumentssample_cstan
Sample a model with NUTSsample_model
Is the stanli runtime available?stanli_available
Check Stan code for syntax and type errorsstanli_check_syntax
Convergence diagnosticsstanli_diagnose
Does this build report CmdStan's `lp__` exactly?stanli_exact_lp
Download the stanli runtimestanli_install
Compile a Stan modelstanli_model
Where the stanli runtime livesstanli_runtime_path
Can this build run chains in parallel threads?stanli_thread_safe
R workflow integrationslog_posterior.stanli_fit loo.stanli_fit loo_compare.stanli_fit neff_ratio.stanli_fit nuts_params.stanli_fit rhat.stanli_fit stanli-ecosystem tidy_draws.stanli_fit
Posterior summarysummary.stanli_fit
Starting values on the constrained scale, as the free vectorunconstrain
Variational inference with ADVIvariational_model