Hello Stata Corp.

While trying out the new collect and table commands in Stata 17 I discovered a bug. When trying to compile the dyndoc I get the following error:

option statistic() not allowed
r(198);
r(198);

Here is the content of the md-file:

Code:
Testing with tabstat

<<dd_do>>
clear all
sysuse auto
tabstat weight , by(rep78) statistic(mean)
<</dd_do>>

Testing with table

<<dd_do>>
table rep78 , statistic(mean weight)
<</dd_do>>

Done testing
If I comment out the "table..." command or delete the statistic() option it will run smoothly. I've tried this on two different Stata 17 installations and still get the same error message.

Regards
Joakim