Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


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

st: copying last reported value


From   mai7777 <[email protected]>
To   [email protected]
Subject   st: copying last reported value
Date   Sat, 19 Feb 2011 20:11:56 +0200

Hi,
I am trying to create the var "div_ave" below which is basically the
last reported value of "div" by "date" and "id", and I'm just blanking
out for some reason. Your help is appreciated.

date		id		div		div_ave
1		1		.		.
2		1		0.2		0.2
3		1		.		0.2
4		1		.		0.2
5		1		.		0.2
6		1		.		0.2
7		1		.		0.2
8		1		0.3		0.3
9		1		.		0.3
10		1		.		0.3
1		2		.		.
2		2		.		.
3		2		0.1		0.1
4		2		.		0.1
5		2		.		0.1
6		2		.		0.1
7		2		0.5		0.5
8		2		.		0.5
9		2		.		0.5
10		2		.		0.5

Thanks,
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index