Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: RE: generating percentage data set


From   Michael Carney<[email protected]>
To   [email protected]
Subject   Re: st: RE: generating percentage data set
Date   Tue, 30 Jul 2002 10:42:50 -0700

I think I would likely consider it a formula: i'd like to generate a new
variable in which each observation of the variable price, for example, is
subrtacted from its previous observation. E.g., if obs1 in "price" is 100 and
obs2 is 75 i would like the first observation in "change in price" to be -25,
and so forth.

Mike

On Tue, 30 Jul 2002 18:01:09 +0100 Nick Cox <[email protected]> wrote:

Michael Carney

> If I have two columns, one for the percentage of a year for 
> which an option is good and another column for the corresponging 
> price, how can I manipulate the
> data to create a "change in price / change in time" column? 
> any help would be appreciated. 

Are you asking for a formula or algorithm? 

Or do you have some formula or algorithm? 
 
If so, please tell us what it is. 
 
> also, does anyone know of any stata help manuals/resources 
> that deal with how
> to use stata for primarily financial/economic data?

Books on Stata 

http://www.stata.com/bookstore/statabooks.html

Resources 

http://www.stata.com/links/resources1.html

If anybody knows anything not on these lists, 
please tell Stata Corp. 
*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/

*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index