Learn R Programming

gptoolsStan

gptoolsStan is a minimal package to publish Stan code for efficient Gaussian process inference. The package can be used with the cmdstanr interface for Stan in R.

Getting Started

  1. Install cmdstanr if you haven't already (see here for details).
  2. Install this package by running install.packages("gptoolsStan").
  3. Compile your first model.
library(cmdstanr)
library(gptoolsStan)

model <- cmdstan_model(
  stan_file="path/to/your/model.stan",
  include_paths=gptools_include_path(),
)

For an end-to-end example, see this vignette. More comprehensive documentation, including many examples, is available although using the cmdstanpy interface for Python.

Copy Link

Version

Install

install.packages('gptoolsStan')

Monthly Downloads

572

Version

0.2.0

License

MIT + file LICENSE

Maintainer

Till Hoffmann

Last Published

December 12th, 2024

Functions in gptoolsStan (0.2.0)

gptools_include_path

Get the 'gptoolsStan' include path for compiling 'Stan' programs.