Monday, December 21, 2009

Stata - generating lagged variable for panel data

Say you have a panel dataset with stu_id as the cross-section identifier, and year as the time series identifir. To create a lagged variable for numer:

bysort stu_id (year): gen write_lg=write[_n-1]

16 comments:

Anonymous said...

Hello!
You may probably be very curious to know how one can make real money on investments.
There is no need to invest much at first.
You may begin earning with a sum that usually is spent
on daily food, that's 20-100 dollars.
I have been participating in one company's work for several years,
and I'll be glad to share my secrets at my blog.

Please visit blog and send me private message to get the info.

P.S. I earn 1000-2000 per daily now.

http://theinvestblog.com [url=http://theinvestblog.com]Online Investment Blog[/url]

Anonymous said...

Good brief and this enter helped me alot in my college assignement. Say thank you you on your information.

Anonymous said...

Hello everyone!
I would like to burn a theme at this forum. There is such a thing, called HYIP, or High Yield Investment Program. It reminds of ponzy-like structure, but in rare cases one may happen to meet a company that really pays up to 2% daily not on invested money, but from real profits.

For several years , I make money with the help of these programs.
I don't have problems with money now, but there are heights that must be conquered . I make 2G daily, and I started with funny 500 bucks.
Right now, I managed to catch a guaranteed variant to make a sharp rise . Visit my blog to get additional info.

http://theinvestblog.com [url=http://theinvestblog.com]Online Investment Blog[/url]

Anonymous said...

Approvingly your article helped me very much in my college assignment. Hats off to you send, choice look progressive for more interdependent articles without delay as its one of my pick subject-matter to read.

viagra online said...

this kind of topic is good for people to learn more about it, and that people should be every day less ignorant, and medicine for this is the reading of issues like this

Anonymous said...

[url=http://loveepicentre.com/][img]http://loveepicentre.com/uploades/photos/7.jpg[/img][/url]
butterfish dating [url=http://loveepicentre.com/]teenagers phone dating[/url] large nipple woman dating
online dating vidoe acorn [url=http://loveepicentre.com]best austin online dating site[/url] teen dating violence statistics
single parenting and dating [url=http://loveepicentre.com/]adult dating in bemidji mn[/url] farmers dating michigan

Anonymous said...

gaming antivirus software http://buysoftwareonline.co.uk/fr/product-36175/Microsoft-Windows-Server-2003-R2-with-SP2-Enterprise-Edition act 2005 software [url=http://buysoftwareonline.co.uk/fr/category-100-108/Outils-de-l-Office?page=41]serial communication monitoring software dos[/url] best pocket pc keyboard software
[url=http://buysoftwareonline.co.uk/information-7/FAQ]FAQ - Software Store[/url] brass software instruments
[url=http://buysoftwareonline.co.uk/es/product-37375/Babylon-Pro-7-0][img]http://buyoem.co.uk/image/4.gif[/img][/url]

Anonymous said...

Hey there! I know this is kinda off topic but I was wondering
if you knew where I could find a captcha plugin for my comment form?
I'm using the same blog platform as yours and I'm having trouble
finding one? Thanks a lot!

Here is my site; direkt kredit ohne schufa

Anonymous said...

Fastidious answers in return of this query with real arguments and explaining everything
about that.

Also visit my page; onlineshop für schuhe

Anonymous said...

I blog quite often and I truly appreciate your content.
Your article has truly peaked my interest. I am going to
bookmark your site and keep checking for new details about once per week.
I subscribed to your RSS feed too.

My weblog - What To Wear To Look Your Best: Fashion Tips | Minnesota DFL House Caucus

Anonymous said...

Wonderful article! This is the type of information that are supposed
to be shared around the net. Disgrace on Google for not positioning this put up upper!
Come on over and visit my web site . Thanks =)

my blog post kinderschuhe online

Anonymous said...

An interesting discussion is worth comment. I believe that you need to publish more about this subject matter, it may not be a taboo matter but typically people don't discuss such issues. To the next! Best wishes!!

Visit my web page ... Email Console

Anonymous said...

I'm gone to convey my little brother, that he should also visit this web site on regular basis to take updated from newest news.

My page :: best seo experts india - www.xfire.com

Anonymous said...

I visited multiple web sites but the audio feature for audio songs
existing at this website is actually excellent.


Feel free to visit my web blog; online flight simulator

Anonymous said...

Hello, i think that i saw you visited my website so i came to return the
choose?.I am trying to find things to enhance my website!
I assume its adequate to use a few of your concepts!
!

My blog :: InstaForex

Anonymous said...

dating russian men http://loveepicentre.com/faq/ dating covant
married personals dating [url=http://loveepicentre.com/contact/]dating pakistan sex for muslims[/url] online dating layton ut
latex dating stories [url=http://loveepicentre.com/articles/]european men dating[/url] dating is a science too [url=http://loveepicentre.com/user/Gunju/]Gunju[/url] hispanic dating sites