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

Re: st: Collapsing dataset

From   Rafal Raciborski <[email protected]>
To   [email protected]
Subject   Re: st: Collapsing dataset
Date   Wed, 20 Jul 2005 14:02:53 -0400

Assuming the date variable is already in date format:

collapse (desired.statistics) Var1, by(Date)


sort Date
by Date: keep if _n==1

Is this what you want?


Rafal Raciborski
Graduate student
Department of Political Science
Emory University
301 Tarbutton Hall
1555 Dickey Drive
Atlanta, GA 30322
404-378-9826 (home)
[email protected] (e-mail)

*   For searches and help try:

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