Although -disp- is an acceptable abbreviation
for -display-, -tabdisp- is the only name in
question here.
I am agnostic on this point, even though I have
on occasion been bitten by this. While you're
waiting for StataCorp to think about and possibly
do this, the check is not too difficult:
foreach v of var v1 v2 v3 {
bysort cess (`v') : assert `v'[1] == `v'[_N]
}
Nick
[email protected]
FEIVESON, ALAN
> I often like to use the -tabdisplay- command, but when I do, I
> sometimes have this lurking fear that the variables in the
> "cell" are not
> really constant, in which case using -tabdisplay- may give erroneous
> information. Of course I can check for constant variables by
> issuing other
> commands first, but this is a waste of time if they really
> are constant. So
> I would like to propose that -tabdiplay- be modified to give a warning
> message if a variable in the "cell" is not constant. e.g.
>
>
> . tabdisp sess,cell(v1 v2 v3)
> *** warning - v2 is not constant *****
*
* 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/