[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: st: AW: maximum number of characters in do file

From   "Nick Cox" <>
To   <>
Subject   RE: st: AW: maximum number of characters in do file
Date   Thu, 26 Mar 2009 15:49:08 -0000

Good example, except that I was talking explicitly there about error
messages, and this is a warning, not an error message. This is the kind
of thing, which will be very familiar to many: 

Warning:  Since summarize is not an estimation command or does not set
          e(sample), bootstrap has no way to determine which
          are used in calculating the statistics and so assumes that all
          observations are used.  This means no observations will be
          excluded from the resampling because of missing values or

          If the assumption is not true, press Break, save the data, and
          drop the observations that are to be excluded.  Be sure that
          dataset in memory contains only the relevant data.

As said, I imagine the adhockery here is that otherwise many users would
be confused or in error about what they were getting. But you can turn
this off, and (at a moderately higher level) write a wrapper that always
turned it off. 


Martin Weiss

" And sometimes a longer message would just seem patronising and not

The only time that Stata deviates from this laudable practice is in the
warning triggered by non-estimation commands being fed to -bs-:

sysuse auto, clear
bs r(mean): su pr

Nick Cox

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