Hi All,

I'm using asdoc to output stat results, it worked well with:
Code:
bys country: asdoc tabstat share, stat(N mean)
But when I change the subgroup with code:
Code:
bys company: asdoc tabstat share, stat(N mean)
An error occured:
Code:
option text() required
I tried change the code to:
Code:
bys company: asdoc tabstat share, text(Company Details) stat(N mean)
It didn't work, the same error appeared.

My guess is that it is because the string values in my "company" variable are too long, but I don't know how to solve it.

Any help would be appreciated. Thank you!

Best,
Craig