<>
Where levels.ado checks via
********
capture assert `varlist' == int(`varlist') if `touse'
if _rc {
di as err "`varlist' contains non-integer values"
exit 459
********
levelsof.ado merely -tabulate-s, which is possible for non-integers...
HTH
Martin
-----Ursprüngliche Nachricht-----
Von: [email protected]
[mailto:[email protected]] Im Auftrag von Martin Weiss
Gesendet: Dienstag, 22. September 2009 11:53
An: [email protected]
Betreff: AW: st: AW: why is this graph all over the place?
<>
"-levels- and -levelsof- had, and have, the same functionality, so any
other guesses are off target."
Why does -levels- make Stata choke, then, in this example, where -levelsof-
does not?
*************
clear*
input x
1
2
3
4.5
end
compress
list, noobs
levelsof x
levels x
*************
HTH
Martin
-----Ursprüngliche Nachricht-----
Von: [email protected]
[mailto:[email protected]] Im Auftrag von Nick Cox
Gesendet: Dienstag, 22. September 2009 11:33
An: [email protected]
Betreff: RE: st: AW: why is this graph all over the place?
-levelsof- was -levels- was -vallist-.
That is, a user-written command called -vallist- was rewritten as
-levels- which was then adopted by StataCorp within the life-time of
Stata 8. In Stata 9 the name was changed to -levelsof- because the name
"levels" seemed too good to use on that command.
My guess is that it was imagined that the name might reappear for a
different purpose as part of the factor variables project.
-levels- and -levelsof- had, and have, the same functionality, so any
other guesses are off target.
Nick
[email protected]
Nirina F
Replacing it with -levelsof- made it work!
Martin Weiss
> See, just when I thought I knew Stata: -levels- is not the
abbreviation for
> -levelsof-, it is an out-of-date command, apparently with limited
> functionality.
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/