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

Re: st: xtreg with lag

From   Andrea Molinari <>
Subject   Re: st: xtreg with lag
Date   Tue, 18 Oct 2005 09:44:52 +0100


Try first to -tsset-

tsset indiv time

indiv will be your cross-section dimension (although it has to be a 
number, not a string!)

and time is your time dimension

Hope that helps,

Quoting Dirk Nachbar <>:

> Dear all
> I want to do a panel regression where I have also a lag on the rhs of
> the 
> equation, but trying 
> xtreg y l.y 
> doesn't work. also i cannot generate a lag variable. how should i do
> it?
> thanks
> Dirk Nachbar
> Assistant Economist
> Pensim2
> Department for Work and Pensions
> Level 4, The Adelphi
> 1-11 John Adam St
> WC2N 6HT London
> 020 796 22705
> **********************************************************************
> This document is strictly confidential and is intended only for use
> by the addressee. 
> If you are not the intended recipient, any disclosure, copying,
> distribution or other 
> action taken in reliance of the information contained in this e-mail
> is strictly prohibited.
> Any views expressed by the sender of this message are not necessarily
> those of the Department 
> for Work and Pensions.
> If you have received this transmission in error, please use the reply
> function to tell us 
> and then permanently delete what you have received.
> Please note: Incoming and outgoing e-mail messages are routinely
> monitored for compliance 
> with our policy on the use of electronic communications.
> **********************************************************************
> The original of this email was scanned for viruses by the Government
> Secure Intranet (GSi) virus scanning service supplied exclusively by
> Energis in partnership with MessageLabs.
> On leaving the GSi this email was certified virus-free

Andrea Molinari
PhD in Economics student
University of Sussex
*   For searches and help try:

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