Skip to content

Commit 6555834

Browse files
authored
Minor clarification to wording in submodel docs
1 parent 93b9868 commit 6555834

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

usage/submodels/index.qmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ sample(make_model([1, 2, 3], [1, 2, 3], :normal), NUTS(), 1000; progress=false)
261261
```
262262

263263
While this final example really showcases the composability of submodels, it also illustrates a minor syntactic drawback.
264-
In the case of the `family_model`, we do not care about its return value because it is not used anywhere else in the model.
264+
When we create a submodel from `family_model(ps.mu, y)`, in principle, we do not really care about its return value because it is not used anywhere else in the model.
265265
Ideally, we should therefore not need to place anything on the left-hand side of `to_submodel`.
266266
However, because the special behaviour of `to_submodel` relies on the tilde operator, and the tilde operator requires a left-hand side, we have to use a dummy variable (here `_n`).
267267

0 commit comments

Comments
 (0)