Bookmark and Share

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]

Re: st: How to read a particular value in a variables then save it to macro?


From   David Elliott <[email protected]>
To   [email protected]
Subject   Re: st: How to read a particular value in a variables then save it to macro?
Date   Sun, 29 Aug 2010 14:21:40 -0300

And Allen, my apologies for initially believing otherwise.

David

And should you wish to edit your username:
Go to:
https://mail.google.com/mail/#settings/accounts
Find the:
"Send mail as" line and click "edit info" on the right.
You will be able to enter an alternate reply name.

On 29 August 2010 04:30, STATALIST STATALIST <[email protected]> wrote:
> Dear all,
>
> My apology for causing such a confusion, actually,  I just want to
> register a new email account for keeping the statalist discussion
> only. That is my only intent. Sorry for any inconvenience caused.
>
> Best Regards
> Allen
>
> 2010/8/29 David Elliott <[email protected]>:
>> Agreed, Jeph, and I did note Allen used his name in his closing and I
>> also know some users create special accounts for mailing lists (which
>> are notoriously trolled by spammers for email addresses).  I simply
>> take exception to the potential confusion arising from using Statalist
>> as a username.  Unlike simply having a different email account, it
>> provides the sender no additional benefit in distinguishing return
>> posts because they will be be named Statalist
>> <[email protected]> anyhow. Your own use of an email
>> account stata@spa... causes no confusion because you are still clearly
>> identified as yourself.
>>
>> Perhaps I'm just old and cranky and easily confused...
>>
>> DCE
>>
>> On 28 August 2010 19:39, Jeph Herrin <[email protected]> wrote:
>>> In Allen's defense (he did use his real name in the email), it's not
>>> unusual or illogical to have a separate email address for subscribing
>>> to lists. Thus, when I check my email on my cell phone I don't have to
>>> wade through hundreds of list messages, and there is less risk of my
>>> real email address getting to the junk mailers (I get about 1-2 junk
>>> email each day).
>>>
>>> cheers,
>>> Jeph
>>>
>>> On 8/28/2010 5:45 PM, David Elliott wrote:
>>>>
>>>> I'm not sure what was behind your intent when you chose an eMail
>>>> address of "[email protected]" and a name of STATALIST STATALIST.
>>>>  While no-one else has taken you to task, please understand that
>>>> having people open your posts because they look like they are official
>>>> communication from Statalist is a bit cheesy and if that was your
>>>> intent, it is an unbecoming subterfuge.
>>>>
>>>> If this was in no way your intention, then please excuse my tone.
>>>> Nonetheless, why not use your own name like nearly everyone else does?
>>>>
>>>> DC Elliott
>>>>
>>>> On 28 August 2010 09:29, STATALIST STATALIST<[email protected]>
>>>>  wrote:
>>>>>
>>>>> Dear All,
>>>>>
>>>>> I would like to know if it is possible to read and save a particular
>>>>> value in a dta file to macro. I mean one particular value of a
>>>>> variable rather than the "variable itself".
>>>>> I have a dataset of 2 columns and ten rows. One column has the
>>>>> column_name of X which has a value of 1 to 10. The first row is 1, the
>>>>> second is 2,.....
>>>>> And I have another column which has a column_name of STR which is made
>>>>> up of string, the first row is "a", the second is "b",.....
>>>>>
>>>>> Can I pinpoint one particular cell in this dataset and save the
>>>>> contents of this particular cell to a macro?
>>>>> eg I want to ask STATA to give me the value of STR  when X=2, the
>>>>> value should be "b".
>>>>>
>>>>> local temp = STR if X==2 (of course, it does not work and that's why I
>>>>> ask for help.)
>>>>>
>>>>> Thank you very much for your help and have a nice day.
>>>>> Allen
>>>>> *
>>>>> *   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/
>>>>
>>>>
>>>>
>>>> --
>>>> David Elliott
>>>>
>>>> Everything is theoretically impossible, until it is done.
>>>> Progress is made by lazy men looking for easier ways to do things.
>>>>  -- Robert A. Heinlein (American science-fiction Writer, 1907-1988)
>>>>
>>>> *
>>>> *   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/
>>>
>>
>>
>>
>> --
>> David Elliott
>>
>> Everything is theoretically impossible, until it is done.
>> Progress is made by lazy men looking for easier ways to do things.
>>  -- Robert A. Heinlein (American science-fiction Writer, 1907-1988)
>>
>> *
>> *   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/
>



-- 
David Elliott

Everything is theoretically impossible, until it is done.
Progress is made by lazy men looking for easier ways to do things.
 -- Robert A. Heinlein (American science-fiction Writer, 1907-1988)

*
*   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–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index