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

st: manipulating data

From   Michael Carney <>
To, <>
Subject   st: manipulating data
Date   Mon, 01 Dec 2003 12:04:54 -0500

I have a column of daily percentage returns on a security, I would like to make a column of cumulative prices. For example, I plan to fix a beginning value of 100 to the security. If the return for obs 1 were 5% and obs2 10% I would like the new column to have, as its obs 1, $105 and obs 2: 105*(1+.10) and so on. Any help would be greatly appreciated.

--Mike Carney
*   For searches and help try:

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