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

st: RE: RE: warning for -tabdisplay-

From   "FEIVESON, ALAN H. (AL) (JSC-SK) (NASA)" <>
To   "''" <>
Subject   st: RE: RE: warning for -tabdisplay-
Date   Tue, 2 Aug 2005 10:49:30 -0500

Nick - Thanks for your suggestion. I thought about making my own version of
-tabdisp- and putting this in, but I can't find code for tabdisp.ado in the
ado folders of Stata. Do you know if it exists as part of some larger file? 


-----Original Message-----
[] On Behalf Of Nick Cox
Sent: Thursday, July 28, 2005 12:39 PM
Subject: st: RE: warning for -tabdisplay-

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] } 


> 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:
*   For searches and help try:

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