Statalist The Stata Listserver


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: summation (+ absolute value) formula


From   "west--\@libero\.it" <[email protected]>
To   "statalist" <[email protected]>
Subject   st: summation (+ absolute value) formula
Date   Tue, 7 Nov 2006 22:21:58 +0100

I need some help, thank you in advance. 

Given a variable (taken from a set of n variables in a panel), called "Pippo", I need to compute the following formula:

Somma_(i=t-2 to t) of Absolute_value[(Pippo(i) - Pippo(i-1))/Pippo(i-1)]


ATB,

D.







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