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
observations
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
other
reasons.
If the assumption is not true, press Break, save the data, and
drop the observations that are to be excluded. Be sure that
the
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.
Nick
[email protected]
Martin Weiss
" And sometimes a longer message would just seem patronising and not
really
helpful."
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