Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, is already up and running.

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

st: first -difference command

From   donsaane dontsi <>
To   "" <>
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

*   For searches and help try:

© Copyright 1996–2015 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index