Notice: On March 31, it was **announced** that Statalist is moving from an email list to a **forum**. The old list will shut down on April 23, and its replacement, **statalist.org** is already up and running.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

From |
"Michael I. Lichter" <mlichter@buffalo.edu> |

To |
statalist@hsphsun2.harvard.edu |

Subject |
Re: st: RE: RE: RE: Undocumented limitation of describe (and hence -ds-) in Stata 10? |

Date |
Tue, 06 Apr 2010 15:08:05 -0400 |

Michael I. Lichter wrote:

Thanks, Martin, that does solve my problem.On the question of documentation, though, I don't see anything in theprogrammer's manual entry on macros regarding limitations on how manycharacters can be copied from one macro to another with the equalssign. I don't have access to Nick's article, unfortunately, so I don'tknow if he indicates where this is documented.I also don't see anything explaining why/how r(varlist) and other r()macros are sometimes treated like local macros and sometimes not. It'snot obvious to me why the first command below is valid while thesecond is not:local x "`r(varlist)'" di `:length local r(varlist)' Thanks again. Michael Martin Weiss wrote:<>See also Nick`shttp://www.stata.com/statalist/archive/2006-11/msg00769.htmlHTH Martin -----Original Message----- From: owner-statalist@hsphsun2.harvard.edu [mailto:owner-statalist@hsphsun2.harvard.edu] On Behalf Of Martin Weiss Sent: Dienstag, 6. April 2010 19:16 To: statalist@hsphsun2.harvard.eduSubject: st: RE: RE: Undocumented limitation of describe (and hence-ds-) inStata 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: owner-statalist@hsphsun2.harvard.edu [mailto:owner-statalist@hsphsun2.harvard.edu] On Behalf Of Martin Weiss Sent: Dienstag, 6. April 2010 19:11 To: statalist@hsphsun2.harvard.edu 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: owner-statalist@hsphsun2.harvard.edu [mailto:owner-statalist@hsphsun2.harvard.edu] On Behalf Of Michael I. Lichter Sent: Dienstag, 6. April 2010 19:06 To: statalist@hsphsun2.harvard.eduSubject: st: Undocumented limitation of describe (and hence -ds-) inStata10?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 limitedto 243 characters, at least on my computer running Stata 10. Is therea Stata setting I need to change? The help page says something about-maxvar-, but this doesn't seem like it should matter, and in anyevent doubling -maxvar- has on effect on this result. If this is nota 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. <mlichter@buffalo.edu> 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/

**References**:**st: Undocumented limitation of describe (and hence -ds-) in Stata 10?***From:*"Michael I. Lichter" <mlichter@buffalo.edu>

**st: RE: Undocumented limitation of describe (and hence -ds-) in Stata 10?***From:*"Martin Weiss" <martin.weiss1@gmx.de>

**st: RE: RE: Undocumented limitation of describe (and hence -ds-) in Stata 10?***From:*"Martin Weiss" <martin.weiss1@gmx.de>

**st: RE: RE: RE: Undocumented limitation of describe (and hence -ds-) in Stata 10?***From:*"Martin Weiss" <martin.weiss1@gmx.de>

**Re: st: RE: RE: RE: Undocumented limitation of describe (and hence -ds-) in Stata 10?***From:*"Michael I. Lichter" <mlichter@buffalo.edu>

- Prev by Date:
**Re: st: RE: RE: RE: Undocumented limitation of describe (and hence -ds-) in Stata 10?** - Next by Date:
**Re: st: length of a returned local using rclass** - Previous by thread:
**Re: st: RE: RE: RE: Undocumented limitation of describe (and hence -ds-) in Stata 10?** - Next by thread:
**RE: st: RE: RE: RE: Undocumented limitation of describe (and hence -ds-) in Stata 10?** - Index(es):