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]

st: FW: Stored Data after the calculation


From   "Martin Weiss" <martin.weiss1@gmx.de>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: FW: Stored Data after the calculation
Date   Sun, 28 Mar 2010 13:01:09 +0200

<>


Forwarded on behalf of Calchas. The original post to Statalist was probably
html, hence the bounce.


The -gen- statement gives Calchas a column of values with the desired sum,
so if Calchas wanted to, say, square those:

*******
gen sqttl_sum= ttl_sum*ttl_sum
*******


If this is not the intention, please state!


HTH
Martin

From: keeler james [mailto:keelercalchas@hotmail.com] 
Sent: Sonntag, 28. März 2010 12:48
To: martin.weiss1@gmx.de
Subject: Stored Data after the calculation

Dear Martin,

I send the following question to Statalist, but got bounced back. I then
search the list and found that you answered a similar Q before and hence I
wonder if you can help. Many thanks.

Calchas
________________________________________
From: keelercalchas@hotmail.com
To: statalist@hsphsun2.harvard.edu
Subject: Stored Data after the calculation
Date: Sat, 27 Mar 2010 18:59:04 +0000

Dear Statalist,
 
I use the command: 
 
gen ttl_sum= hse_expend + grocery + child_expend
 
This will give me the calculated values of ttl_sum, but how can I reuse the
calculated values of ttl_sum to do further calculations?
 
I know it is something relating to the command of stored data, i.e.:
 
local sth=r(N)
 
but this is only for a one value, what about saving and reusing the entire
column of ttl_sum? Really stuck at the moment and any help will be
appreciated.
 
Ta,
Calchas


________________________________________
Do you have a story that started on Hotmail? Tell us now 
________________________________________
Do you want a Hotmail account? Sign-up now - Free 
________________________________________
Do you have a story that started on Hotmail? Tell us now 
________________________________________
Do you want a Hotmail account? Sign-up now - Free 
________________________________________
Not got a Hotmail account? Sign-up now - Free 
________________________________________
We want to hear all your funny, exciting and crazy Hotmail stories. Tell us
now


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