GithubHelp home page GithubHelp logo

Comments (1)

bgoodri avatar bgoodri commented on July 24, 2024

@syclik Wherever you decide to put it, you can include the language based
on point (3) on README.md:

For each Stan file(s), such as foo.stan and bar.stan, there MUST be a
foo.data.R file and a bar.data.R file that use Stan's dump format in the
same subdirectory as the corresponding .stan file (even if foo.data.R is
the same as bar.data.R), regardless of whether foo.data.R contains
simulated or observed data. This naming convention is essential for
automated tools, such as the stan_demo function in the rstan package,
that are asked to run foo.stan and need to know where to get the objects
declared in the data block of foo.stan. It is essentially impossible for an
automated tool to infer that a misnamed file such as,
the_data_that_goes_with_foo.stan.R, contains the data that goes with
foo.stan. In addition, it is essentially impossible for an automated tool
to infer that the same data that were used in a previous chapter of a 500
page book are being reused for the Stan programs in a later chapter unless
the data are copied into the subdirectory of each chapter that they are
used. In addition, if you have a script in R or another language that
generates data to use with foo.stan, do not under any circumstances name
that file foo.data.R. Instead call it something like foo_generate_data.R
and save the results in a file called foo.data.R. It is essentially
impossible for an automated tool to infer how to call the functions in
foo_generate_data.R, so a human has to do that.

On Mon, Feb 22, 2016 at 8:59 AM, Daniel Lee [email protected]
wrote:

Use the readme as an example.


Reply to this email directly or view it on GitHub
#45.

from example-models.

Related Issues (20)

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.