Comments (1)
@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.
- @syclik https://github.com/syclik: decide where this document
should go- @bgoodri https://github.com/bgoodri write the requirements in a
clear language that can be understood by contributors and reviewers for
what is required.- @bgoodri https://github.com/bgoodri some justification for these
requirements? Maybe there's a simpler way to accomplish the same thing with
less requirements.—
Reply to this email directly or view it on GitHub
#45.
from example-models.
Related Issues (20)
- `stan_demo` example 500 not working HOT 4
- Missing function in Introduction
- Error in BPA Ch.10 js_super.stan with possible fix HOT 1
- rats ref link at top of stan files is broken
- Add .data.R files for knitr models HOT 1
- Rdump format
- Reorganize the stan example repository HOT 13
- sampling() fails in Lotka-Volterra example HOT 3
- Lotka-Volterra example not running HOT 1
- BUGS Background Information for Litter Example HOT 1
- Failed to build Lotka Vollterra on Mac OS / clang HOT 9
- reduce_sum case study will be out of date once new cmdstanr pull gets merged
- Example script `fit_nyc_bym2.R` to use model `bym2_offset_only.stan` doesn't work HOT 1
- Subtle error in some capture-recapture likelihoods HOT 3
- [Error] Validate transformed params
- Survey.stan example from Cognitive Modeling - Expected end of file after end of generated quantities block. HOT 9
- Which book/chapter HOT 1
- updates to ARM model for normal_id_glm - variable name "cov" should be "x_as_mat" or something like that HOT 6
- add Python scripts to BYM12 case study
- Parameter names for stan file HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from example-models.