greta-dev / greta-dev/greta

Improve documentation on non-independent sampling using greta_array()

Open
#571 0 comments 0 reactions 0 assignees View on GitHub
documentation
Dominant language
C++
Stars
607
Forks
67
Avg merge
3d 8h
Merged PRs (30d)
1

Description

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))
```

resulting in

```
$x
, , 1
[,1] [,2] [,3]
[1,] -1.036807 -0.414638 0.7169058

$y
, , 1
[,1] [,2] [,3]
[1,] 0.2973163 0.2973163 0.2973163
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.