Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
st: RE: RE: RE: Undocumented limitation of describe (and hence -ds-) in Stata 10?
From
"Martin Weiss" <[email protected]>
To
<[email protected]>
Subject
st: RE: RE: RE: Undocumented limitation of describe (and hence -ds-) in Stata 10?
Date
Tue, 6 Apr 2010 19:22:14 +0200
<>
See also Nick`s http://www.stata.com/statalist/archive/2006-11/msg00769.html
HTH
Martin
-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Martin Weiss
Sent: Dienstag, 6. April 2010 19:16
To: [email protected]
Subject: st: RE: RE: Undocumented limitation of describe (and hence -ds-) in
Stata 10?
<>
And "Beware the evaluating equal sign" (NJC parlance :-) ):
http://www.stata-journal.com/article.html?article=pr0045
*******
clear
forvalues i = 1/30{
gen byte testvar`i' = .
}
d, varlist
di "`r(varlist)'"
local x "`r(varlist)'"
di `:length local x'
ma di
*******
HTH
Martin
-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Martin Weiss
Sent: Dienstag, 6. April 2010 19:11
To: [email protected]
Subject: st: RE: Undocumented limitation of describe (and hence -ds-) in
Stata 10?
<>
Just say - di "`r(varlist)'"-, whether Stata 10 or 11...
HTH
Martin
-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Michael I.
Lichter
Sent: Dienstag, 6. April 2010 19:06
To: [email protected]
Subject: st: Undocumented limitation of describe (and hence -ds-) in Stata
10?
I found out the hard way that the r(varlist) macro result returned by
-describe, varlist- (and hence -ds- and Nick Cox's -ds3-) is limited to
243 characters, at least on my computer running Stata 10. Is there a
Stata setting I need to change? The help page says something about
-maxvar-, but this doesn't seem like it should matter, and in any event
doubling -maxvar- has on effect on this result. If this is not a
settings issue, has it been fixed in Stata 11? Thanks.
-----
clear
forvalues i = 1/26 {
gen byte testvar`i' = .
}
d, varlist
di r(varlist)
local x = r(varlist)
di `:length local x'
-----
--
Michael I. Lichter, Ph.D. <[email protected]>
Research Assistant Professor & NRSA Fellow
UB Department of Family Medicine / Primary Care Research Institute
UB Clinical Center, 462 Grider Street, Buffalo, NY 14215
Office: CC 126 / Phone: 716-898-4751 / FAX: 716-898-3536
*
* 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/
*
* 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/