Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: AW: Transfer scalars into table


From   "Martin Weiss" <[email protected]>
To   <[email protected]>
Subject   st: AW: Transfer scalars into table
Date   Thu, 14 Feb 2008 15:15:30 +0100

-Findit esttab- makes just that a breeze...

Martin Weiss
_________________________________________________________________

Diplom-Kaufmann Martin Weiss
Mohlstrasse 36
Room 415
72074 Tuebingen
Germany

Fon: 0049-7071-2978184

Home: http://www.wiwi.uni-tuebingen.de/cms/index.php?id=1130

Publications: http://www.wiwi.uni-tuebingen.de/cms/index.php?id=1131

SSRN: http://papers.ssrn.com/sol3/cf_dev/AbsByAuth.cfm?per_id=669945

-----Urspr�ngliche Nachricht-----
Von: [email protected]
[mailto:[email protected]] Im Auftrag von Mentzakis,
Emmanouil
Gesendet: Donnerstag, 14. Februar 2008 15:03
An: [email protected]
Betreff: st: Transfer scalars into table

Dear all, 
 
Within a loop a number of scalars are created (as in the exmple below).
How can I put them in a table and export it to a word file?

 
***********                   
* example *                   
***********                   
clear                                              
sysuse auto                   
global vars "foreign weight length"                   
                   
reg price $vars                   
foreach x of global vars {                   
  scalar `x'_log = _b[`x']                   
  dis "`x'_log=" "     " `x'_log                   
}                   
                   
Thank you 
Manos

*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index