Hello,
I am struggling with figuring out how to create column headers that will export via putdocx. Similar to the provided final exam example, I wanted to be able to add a column header that identifies which variable the summary stastistics belong to (in final exam example there is a non-diabetes and diabetes header over the N, Mean, and SD).
I was able to figure out that you can add a multi-level column header using colnames, but then it doesn't seem to export to putdocx. For example using the final exam matrix colnames MATRIX NAME="N" "Non-Diabetes:mean" "SD" "N" Diabetes:SD" "N" would create an additional row with the non-diabetes and diabetes column headers. However, they don't export to the word doc (I included rownames colnames). Perhaps there is a way to export to putdocx? Other another strategy entirely?
Any guidance would be much appreciated!
Thanks!
Ilana