Statalist The Stata Listserver


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: tsset on subsample of observations


From   "Robert Duval" <[email protected]>
To   [email protected]
Subject   st: tsset on subsample of observations
Date   Sat, 11 Nov 2006 15:21:17 -0500

Dear All,

Is there a way to tsset a subsample of my observations?

I want to perform operations that involve time series commands, but if
I consider my entire dataset I have repeated time values within the
panel.

I would like to Stata to tsset my observations for that subset of obs.
that are uniquely identified within each panel... something like:

tsset x y if unique==1

Is there a way to do this?

Otherwise I would be forced to drop the repeated observations, but
since I need those obs. for other exercises this will force me to save
datasets: one with duplicates and another one without them. Something
that seems highly inefficient.

Any help would be greatly appreciated.
robert
*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



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