Skip to contents

Merge two StanModule or ParameterList objects.

Usage

merge(x, y, ...)

# S4 method for StanModule,StanModule
merge(x, y, stan_blocks = STAN_BLOCKS, ...)

# S4 method for ParameterList,ParameterList
merge(x, y)

# S4 method for StanModel,NULL
merge(x, y, ...)

# S4 method for NULL,StanModel
merge(x, y, ...)

# S4 method for StanModule,NULL
merge(x, y, ...)

# S4 method for NULL,StanModule
merge(x, y, ...)

# S4 method for ParameterList,NULL
merge(x, y, ...)

# S4 method for NULL,ParameterList
merge(x, y, ...)

# S4 method for NULL,NULL
merge(x, y, ...)

Arguments

x

first module.

y

second module.

...

additional arguments.

stan_blocks

(list)
reference list of stan blocks.