StanTransformation | R Documentation |
A Stan transformation
A Stan transformation
decl
The variable declaration.
code
The code that assigns to the declared variable.
origin
Either "data"
, "parameters"
, or "model"
.
new()
Create a StanTransformation object.
StanTransformation$new(decl, origin = "model", code = "")
decl
The underlying variable.
origin
Must be either "data"
, "parameters"
, or "model"
.
code
The code that assigns to the declared variable. If this
doesn't include any assignments (with =
), the code is prepended
with paste0(decl$name, " = ")
. In this case also a semicolon is
added to the end if it is missing.
print()
StanTransformation$print()
clone()
The objects of this class are cloneable with this method.
StanTransformation$clone(deep = FALSE)
deep
Whether to make a deep clone.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.