Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
From | donsaane dontsi <donsaane@yahoo.fr> |
To | "statalist@hsphsun2.harvard.edu" <statalist@hsphsun2.harvard.edu> |
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/