Skip to content

Commit 320a828

Browse files
committed
Clarify what gets printed in the generated quantities block
1 parent fa274e3 commit 320a828

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

src/reference-manual/blocks.Rmd

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -565,4 +565,13 @@ After the generated quantities statements are executed, the constraints
565565
on the declared generated quantity variables are validated.
566566

567567
All variables declared as generated quantities are printed as part of
568-
the output.
568+
the output, unless they are declared in a nested block. For example:
569+
```stan
570+
generated quantities {
571+
int a; // added to the output
572+
573+
{
574+
int b; // not added to the output
575+
}
576+
}
577+
```

0 commit comments

Comments
 (0)