StanTransformation: A Stan transformation

StanTransformationR Documentation

A Stan transformation

Description

A Stan transformation

A Stan transformation

Public fields

decl

The variable declaration.

code

The code that assigns to the declared variable.

origin

Either "data", "parameters", or "model".

Methods

Public methods


Method new()

Create a StanTransformation object.

Usage
StanTransformation$new(decl, origin = "model", code = "")
Arguments
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.


Method print()

Print

Usage
StanTransformation$print()

Method clone()

The objects of this class are cloneable with this method.

Usage
StanTransformation$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.


jtimonen/odemodeling documentation built on Sept. 15, 2024, 4:29 a.m.