Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Turning off missing data notications

    I am doing some data management in which the following code generates masses of missing data generation messages. This is just a little test, but eventually there will be thousands of them,.I want to turn them off. I don't see an option for generate that would do it. I suspect that the answer is in SET OUTPUT, the help file for which reads: " set output specifies the output to be displayed. It is useful only in programs and even then is seldom used." By trial and error I found that set output inform turns off the messages but I am wondering if that is the best way to do it. If it is, perhaps it could be more fully documented.

    Code:
    . forvalues i = 1/10 {
      2. gen code`i' = word(clean,`i')
      3. }
    (1 missing value generated)
    (1 missing value generated)
    (1 missing value generated)
    (3 missing values generated)
    (3 missing values generated)
    (3 missing values generated)
    Richard T. Campbell
    Emeritus Professor of Biostatistics and Sociology
    University of Illinois at Chicago

  • #2
    You could use quietly to suppress the terminal output.

    Comment

    Working...
    X