Coder Social home page Coder Social logo

cmdstanr's Introduction

CmdStanR

CRAN status Unit tests Codecov test coverage

Overview

CmdStanR is a lightweight interface to Stan for R users (see CmdStanPy for Python).

If you are new to CmdStanR we recommend starting with these vignettes:

Goals

  • A clean interface to Stan services so that CmdStanR can keep up with Stan releases.

  • R code that doesn't interface directly with C++, only calls compiled executables.

  • Modularity: CmdStanR runs Stan's algorithms and lets downstream modules do the analysis.

  • Flexible BSD-3 license.

Installation

Installing the R package

You can install the latest beta release of the cmdstanr R package with

# we recommend running this is a fresh R session or restarting your current session
install.packages("cmdstanr", repos = c("https://mc-stan.org/r-packages/", getOption("repos")))

This does not install the vignettes, which take a long time to build, but they are always available online at https://mc-stan.org/cmdstanr/articles/.

To instead install the latest development version of the package from GitHub use

# install.packages("remotes")
remotes::install_github("stan-dev/cmdstanr")

Installing CmdStan

If you don't already have CmdStan installed then, in addition to installing the R package, it is also necessary to install CmdStan using CmdStanR's install_cmdstan() function. A suitable C++ toolchain is also required. Instructions are provided in the Getting started with CmdStanR vignette.

Contributing

There is a lot of work still to be done and contributions are very welcome! If you are interested in contributing please comment on an open issue or open a new one if none are applicable.

License

CmdStanR, like CmdStan and the core Stan C++ code, is licensed under the following licenses:

cmdstanr's People

Contributors

rok-cesnovar avatar jgabry avatar andrjohns avatar bbbales2 avatar jsocolar avatar dependabot[bot] avatar mike-lawrence avatar hsbadr avatar johnlees avatar bearloga avatar martinmodrak avatar paul-buerkner avatar weshinsley avatar sbfnk avatar mcol avatar mkyhos avatar tcuongd avatar erictleung avatar nicokist avatar carltra avatar williamlai2 avatar matsuurakentaro avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.