It should be stated in the documentation of greta_array(), that using the dim argument with a scalar data argument results in identical copies of all elements and not independent ones. Compare the output of
set.seed(1)
x <- normal(0,1,dim=3)
simulate(model(x))
y <- greta_array(normal(0,1),dim=3)
simulate(model(y))
It should be stated in the documentation of
greta_array()
, that using thedim
argument with a scalar data argument results in identical copies of all elements and not independent ones. Compare the output ofresulting in