Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, statalist.org is already up and running.


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

RE: st: length of a returned local using rclass


From   "Martin Weiss" <martin.weiss1@gmx.de>
To   <statalist@hsphsun2.harvard.edu>
Subject   RE: st: length of a returned local using rclass
Date   Tue, 6 Apr 2010 21:39:10 +0200

<>

The entry is called "saved results".

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 21:10
To: statalist@hsphsun2.harvard.edu
Subject: Re: st: length of a returned local using rclass

Antonis,

What entry in the base reference is that under? I'd like to look that up 
in the Stata 10 manuals. Thanks.

-ml

A Loumiotis wrote:
> Did you enclose your r(macro) in single quotes?
>
> Page 1673 of the Base Reference states the following technical note:
>
> For r(macro), you are supposed to refer to it in quotes: `r(macro)'.
> If, however, you omit the
> quotes in an expression context, Stata evaluates the macro and then
> pretends that it is the result of
> function-returning-string. There are side effects of this, the most
> important being that the result is
> trimmed to 80 characters.
>
> Antonis
>
> On Tue, Apr 6, 2010 at 12:46 PM, Miranda Kim <mk@mrc.soton.ac.uk> wrote:
>   
>> Hello,
>> When writing a small program that saved a string (list of variables)
using
>> -rclass- and -return local-, the list was prematurely truncated. I
therefore
>> wonder if there a limit to the number of characters that can be stored in
a
>> local macro using rclass, or if I should be looking for a bug in my code?
>> Many thanks,
>> Miranda
>>
>> *
>> *   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/
>   

-- 
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/

*
*   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/


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index