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

st: Couldn't Create Lag Variable in STATA

From   [email protected]
To   [email protected]
Subject   st: Couldn't Create Lag Variable in STATA
Date   Thu, 11 Mar 2004 22:33:01 -0500


I have a dataset I couldn't create lag variable. The details are as follows:

It is a variable for each state and each year. So what I did was:

sort state year
gen V1=V[_n-1]

However, what I got in STATA is
weights not allowed 

Anyone have any idea what is going on? How can I create a lag variable in this case?

Thank you very much.

Introducing the New Netscape Internet Service. 
Only $9.95 a month -- Sign up today at

Netscape. Just the Net You Need. 

New! Netscape Toolbar for Internet Explorer
Search from anywhere on the Web and block those annoying pop-ups.
Download now at
*   For searches and help try:

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