Hi,
I have created 4 paragraphs using putdocx and used scalars from summary results to input the values I want example below:
However, for one of my variables (double format) the summary result is n=33,415 yet when I open the document created it says 2. Every other results has worked so wondering if the issue is with the variable rather than my coding, which is exactly the same as all my other lines. I'll list below in case I am missing something still:
Any help is appreciated, thanks in advance!
Rhian
I have created 4 paragraphs using putdocx and used scalars from summary results to input the values I want example below:
Code:
count if DEPR==1 | DEPR==0
scalar totalpts = r(N)
putdocx begin, pagesize(A4) font("Times New Roman", 11, black)
putdocx paragraph, font("Times New Roman", 12, black) halign(both)
putdocx text ("Data was analysed for")
putdocx text (totalpts), nformat(%8.0fc)
putdocx text (" patients......XXXX.")
putdocx save "test", replace
Code:
putdocx begin, pagesize(A4) font("Times New Roman", 11, black)
putdocx paragraph, font("Times New Roman", 12, black) halign(both)
tab ASA if DEPR==1 & ASA==1, matcell(ASACounts)
scalar ASA = string(ASACounts[1,1])
putdocx text (ASA)
Rhian

Comment