Hello everyone, I was hoping someone could help me with an issue with dyndoc on Stata version 18.0
1. I have a .txt file called objective1.txt which contains my stata commands enclosed with dynamic tags.
2. One of the codes in the .txt file is to produce a table using the dtable command:
dtable, continuous(age, statistics(mean sd)) continuous(timeia, statistics(median q1 q3)) factor(agegroup gender finaldiagnosis iaduration, statistics(fvfrequency fvpercent)) by(fm) title("Supplementary Table 1")
3. When I run the stata command dyndoc objective1.txt, Stata stops at the above code and issues the ff error: no variables defined in option by ()
4. When I run the same code in Stata do-file (without dyndoc tags), it works well.
Can anyone please help me out - not sure what the error could be.
Thanks.
1. I have a .txt file called objective1.txt which contains my stata commands enclosed with dynamic tags.
2. One of the codes in the .txt file is to produce a table using the dtable command:
dtable, continuous(age, statistics(mean sd)) continuous(timeia, statistics(median q1 q3)) factor(agegroup gender finaldiagnosis iaduration, statistics(fvfrequency fvpercent)) by(fm) title("Supplementary Table 1")
3. When I run the stata command dyndoc objective1.txt, Stata stops at the above code and issues the ff error: no variables defined in option by ()
4. When I run the same code in Stata do-file (without dyndoc tags), it works well.
Can anyone please help me out - not sure what the error could be.
Thanks.
Comment