Hi all,
I am trying to make a table using putdocx with standard Pearson correlation coefficients and significance.
I am able to get 2 tables in a Word using putdocx:
1: correlation coefficients
2: significance.
Example:
this look like this:
But my goal it get only one table like this:
Thanks in advance,
Regards
I am trying to make a table using putdocx with standard Pearson correlation coefficients and significance.
I am able to get 2 tables in a Word using putdocx:
1: correlation coefficients
2: significance.
Example:
Code:
clear all set more off sysuse auto putdocx begin pwcorr mpg price displacement rep78, sig mat C = r(C) matrix sig = r(sig) putdocx table table_name = matrix(C), rownames colnames nformat(%6.2f) putdocx table table_name = matrix(sig), rownames colnames nformat(%6.2f) putdocx save mydoc, replace
But my goal it get only one table like this:
Thanks in advance,
Regards
Comment