Package: stanli 0.28.1

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.28.1.tar.gz
stanli_0.28.1.zip(r-4.7-x86_64)stanli_0.28.1.zip(r-4.7-arm64)stanli_0.28.1.zip(r-4.6-x86_64)stanli_0.28.1.zip(r-4.6-arm64)stanli_0.28.1.zip(r-4.5-x86_64)
stanli_0.28.1.tgz(r-4.6-x86_64)stanli_0.28.1.tgz(r-4.6-arm64)stanli_0.28.1.tgz(r-4.5-x86_64)stanli_0.28.1.tgz(r-4.5-arm64)
stanli_0.28.1.tar.gz(r-4.7-arm64)stanli_0.28.1.tar.gz(r-4.7-x86_64)stanli_0.28.1.tar.gz(r-4.6-arm64)stanli_0.28.1.tar.gz(r-4.6-x86_64)
stanli_0.28.1.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://r-multiverse.r-universe.dev', 'https://cloud.r-project.org'))

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

On CRAN:

Conda:

5.16 score 45 stars 35 exports 0 dependencies

Last updated from:6537b0ba3c (on v0.28.1). Checks:13 NOTE, 2 OK. Indexed: no.

TargetResultTimeFilesSyslog
linux-devel-arm64NOTE466
linux-devel-x86_64NOTE568
source / vignettesOK475
linux-release-arm64NOTE498
linux-release-x86_64NOTE446
macos-release-arm64NOTE246
macos-release-x86_64NOTE438
macos-oldrel-arm64NOTE356
macos-oldrel-x86_64NOTE369
windows-devel-arm64NOTE472
windows-devel-x86_64NOTE423
windows-release-arm64NOTE488
windows-release-x86_64NOTE345
windows-oldrel-x86_64NOTE288
wasm-releaseOK495

Exports:as_cstanfitas_draws_arrayas_rfitas_stanfitas_stanmodelbridgestan_datacstan_modelextractget_elapsed_timeget_sampler_paramslaplace_modellaplace_whitenlog_liklog_prob_gradlog_prob_hessianoptimize_modelparameter_annotationsparameter_namespathfinder_modelsample_cstansample_modelsample_moresample_nutpiestanli_availablestanli_build_idstanli_check_syntaxstanli_diagnosestanli_exact_lpstanli_installstanli_modelstanli_runtime_pathstanli_thread_safeunconstrainvariational_modelwhiten

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.stanfit as_stanfit.stanli_fit as_stanfit.stanli_stanfit
Run rstan-style code on stanlias_stanmodel
A model as BridgeStan databridgestan_data
Native CmdStanR-style model interfacecstan_model
Draws from a Laplace approximationlaplace_model
Laplace-whiten a model (experimental)laplace_whiten
Extract pointwise log likelihoodslog_lik log_lik.stanli_fit
Log density and gradientlog_prob_grad
Log density, gradient and Hessianlog_prob_hessian
Find the posterior mode by L-BFGSoptimize_model
Annotations on a model's parametersparameter_annotations
Names of a model's parametersparameter_names
Pathfinder variational inferencepathfinder_model
Sample with CmdStanR-style argumentssample_cstan
Sample a model with NUTSsample_model
Continue sampling from a fitsample_more
Sample with nutpiesample_nutpie
Is the stanli runtime available?stanli_available
Build id of the stanli runtimestanli_build_id
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 integrationsbridge_sampler.stanli_fit launch_shinystan.stanli_fit log_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
Whiten a model around a point (experimental)whiten