To translate a BUGS model to Stan, you need to know which
variables are data and which are parameters and you
need to know the shape (not size) of the data objects.
So McElreath must be using the formula list and data to convert
the BUGS-like spec.
McElreath must be leaning on R's internal formula syntax
for expressing a BUGS program as a sequence of formulas.
To do this outside of R would require a parser for BUGS.
BUGS also has deterministic nodes.
And there's also JAGS, which is slightly different syntactically.
We support most, but not quite all of the features of the
BUGS/JAGS languages --- they'd be easy to add (like
interpolation and the F distribution).
- Bob
> --
> You received this message because you are subscribed to the Google Groups "stan development mailing list" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
stan-dev+u...@googlegroups.com.
> For more options, visit
https://groups.google.com/d/optout.
>