Merge two StanModule or ParameterList objects.
Usage
merge(x, y, ...)
# S4 method for class 'StanModule,StanModule'
merge(x, y, stan_blocks = STAN_BLOCKS, ...)
# S4 method for class 'ParameterList,ParameterList'
merge(x, y)
# S4 method for class 'StanModel,NULL'
merge(x, y, ...)
# S4 method for class 'NULL,StanModel'
merge(x, y, ...)
# S4 method for class 'StanModule,NULL'
merge(x, y, ...)
# S4 method for class 'NULL,StanModule'
merge(x, y, ...)
# S4 method for class 'ParameterList,NULL'
merge(x, y, ...)
# S4 method for class 'NULL,ParameterList'
merge(x, y, ...)
# S4 method for class 'NULL,NULL'
merge(x, y, ...)Examples
x <- ParameterList(Parameter(prior_normal(0, 1), "x"))
y <- ParameterList(Parameter(prior_normal(0, 1), "y"))
merge(x, y)
#>
#> ParameterList Object:
#> x ~ normal(mu = 0, sigma = 1)
#> y ~ normal(mu = 0, sigma = 1)
#>
