Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: missing values with outsheet/outfile


From   Jean-Benoit Hardouin <[email protected]>
To   [email protected]
Subject   Re: st: missing values with outsheet/outfile
Date   Mon, 17 Oct 2005 14:44:09 +0200

Nick Cox a �crit :

-outfile- seems to use the Stata code for missing anyway.
Mmh That's right. I have certainely made an error when I have tested an exportation with this command. I don't understand ! Sorry !
Jean-Benoit


I guess the history with -outsheet- was that it produced files for reading into other software for which Stata conventions were irrelevant.
It sounds as if there should be an option
for -outsheet- to provide this. Recourse
to -tostring- may solve the problem, but at best it is a work-around (not that I have anything against -tostring-).
Nick [email protected]
Joseph Coveney



Jean-Benoit Hardouin wrote:

how can I obtain a point (.) instead a blank in the text file with -outsheet- or -outfile- for a numerical variable ?

--------------------------------------------------------------
------------------

You can use -tostring- just prior to -outsheet- in order to create a string
variable that contains a point whereever the numeric variable was missing.

*
* 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/




--
***************************************************************************
Jean-Benoit Hardouin
Biostatisticien
Observatoire R�gional de la Sant� du Centre
BP 2439
1, rue Porte Madeleine
45032 Orl�ans Cedex 1
t�l : 02 38 74 48 80
fax : 02 38 74 48 81
Email : [email protected]
**************************************************************************

*
*   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