how to make a percent change?

#1
hello,

i would like to know how to make a percent change in one vector. fo exemple i have a series of time from 1995-2007 and i want to change this vector to percent ghange of growth.
it will be a lot of help if some one will answer

thanks alot
Tal
 
#2
hello,

i would like to know how to make a percent change in one vector. fo exemple i have a series of time from 1995-2007 and i want to change this vector to percent ghange of growth.
it will be a lot of help if some one will answer

thanks alot
Tal
If i understood- Lets say you have a variable x, and you want to know how it grew each year then -
g pct_x=(x/x[_n-1]-1)*100