Hi all,
I have a large longitudinal dataset and I created already all the tables I need using the command foreach. The syntax I used is this one: (I only put a few of the variables as an example)
foreach x in ///
A001_ A002_ A003_ G040_ G041_ G043_ G051_ {
table country,c(m `x'1 m `x'2 m `x'3 m `x'4) format(%5.2f) missing
}
In which the statistics I indicated are the different waves of the dataset. In this way I would have the tables with the percentage of the variables I want for every country and for every year.
My problem is now to export all these tables in an excel format, since now I only have them saved in a log file. Would you know how to do it?
I have a large longitudinal dataset and I created already all the tables I need using the command foreach. The syntax I used is this one: (I only put a few of the variables as an example)
foreach x in ///
A001_ A002_ A003_ G040_ G041_ G043_ G051_ {
table country,c(m `x'1 m `x'2 m `x'3 m `x'4) format(%5.2f) missing
}
In which the statistics I indicated are the different waves of the dataset. In this way I would have the tables with the percentage of the variables I want for every country and for every year.
My problem is now to export all these tables in an excel format, since now I only have them saved in a log file. Would you know how to do it?
Comment