Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Add Columns "Total" and "Frequency" for collect tab

    Hi,

    I have the next table made with collect table:

    collect table priority1 priority2, statistic(proportion, across(priority2)) total(priority1) nformat(%6.3f) // nototal
    collect label levels priority1 1 "Education" 2 "Food" 3 "Law" 4 "Infrastr" 5 "Underrep" 6 "Climate" 7 "Health" 8 "Pollution"
    collect label levels priority2 2 "Food" 3 "Law" 4 "Infrastr" 5 "Underrep" 6 "Climate" 7 "Health" 8 "Pollution" 9 "Power"
    collect title "`title'"
    collect style cell border_block, border(right, pattern(nil))
    collect style cell border_block, border( top, pattern(double))
    collect preview
    collect export "tab_a2.tex", append tableonly

    Could I add two columns at the end showing the total count and fraction of the overall total, and also fill in zeros in the superdiagonal entries?

    Thanks!

    Click image for larger version

Name:	Screenshot 2024-09-05 at 10.43.11.png
Views:	1
Size:	231.1 KB
ID:	1763103
Working...
X