Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: comparing the values at different observations

From   "Clive Nicholas" <[email protected]>
To   [email protected]
Subject   Re: st: comparing the values at different observations
Date   Mon, 18 Jul 2005 00:14:46 +0100 (BST)

Sarah Smith wrote:

> I wonder how I can compare the values of a variable, say var1, at
> different observations? (In particular I want to the regression below)
> while var1(at line 2) = var1(at line 10 ) {
> regress y x in 2/10
> }

This may not be the most ideal solution, but if you can set up your
observations as if they were individual time-periods, you may find Kit
Baum's -rollreg-, downloadable from SSC, useful here:

. findit rollreg

for more.

CLIVE NICHOLAS        |t: 0(044)7903 397793
Politics              |e: [email protected]
Newcastle University  |

Whereever you go and whatever you do, just remember this. No matter how
many like you, admire you, love you or adore you, the number of people
turning up to your funeral will be largely determined by local weather

*   For searches and help try:

© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index