I am using:


gen ycc_table=.
replace ycc_table=year if evnt3w==1


by country ( ycc_table ), sort: gen ycc_count =_n if ycc_table!=.
tabdisp country ycc_count, cell(ycc_table)


or just:

table country ycc_count, c(mean ycc_table )


which creates the following table:



Array






I want to save this table as .tex file but I doesn't work. Is there a way to save this table as latex file?