Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: first -difference command


From   donsaane dontsi <[email protected]>
To   "[email protected]" <[email protected]>
Subject   st: first -difference command
Date   Fri, 16 Sep 2011 16:52:23 +0100 (BST)

Hi , 
 
I would like to run a first -difference method. I have a
dataset of two years : 2006-2009. To transform all my variables into difference
variables , does this command work for 2006 and 2009 : gen dx = x[_n]- x[_n-1]
?
 
Thanks for the help
 
 
dsd

*
*   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–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index