Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
From | "arosella" <arosella@irccsdebellis.it> |
To | statalist@hsphsun2.harvard.edu |
Subject | st: Results to file problem |
Date | Thu, 6 Dec 2012 09:50:04 +0100 |
Hi All, I'm using Stata 12.1 on W7 and trying to write a txt file after the command -dstdize- Here my code: webuse hbp generate pop=1 file open myfile1 using "E:\Alberto\tab_sep.txt", write replace set more off file write myfile1 "Tasa Cruda" _tab "Tasa Ajustada" /// _tab "SE Tasa Ajus" _tab "LowerCI" /// _tab "UpperCI" dstdize hbp pop age race sex, by(city year) file write myfile1 (r(crude)) /// _tab (r(adj)) /// _tab (r(se)) /// _tab (r(lb)) /// _tab (r(ub)) file close myfile1 set more on And here the erro I get: . file write myfile1 (r(crude)) /// > _tab (r(adj)) /// > _tab (r(se)) /// > _tab (r(lb)) /// > _tab (r(ub)) type mismatch r(109); Can I get you help? Thank you Alberto R. Osella Laboratorio di Epidemiologia e Biostatistica IRCCS Saverio de Bellis Via Turi, 27 70013 Castellana Grotte (BA) Italia tel: +39 0804994655 fax: +39 0804994650 e-mail: arosella@irccsdebellis.it * * For searches and help try: * http://www.stata.com/help.cgi?search * http://www.stata.com/support/faqs/resources/statalist-faq/ * http://www.ats.ucla.edu/stat/stata/