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

st: RE: How to generate preceding dates from a particular date

From   "Nick Cox" <>
To   <>
Subject   st: RE: How to generate preceding dates from a particular date
Date   Wed, 14 Apr 2004 23:13:49 +0100

If I understand this correctly, you have 
one dataset in memory, say 

. use data041004 

and observations are for people (say),  
with some identifier variable. If an 
identifier, say 

"William W. Gould, President"

exists in that dataset, you want to know 
if there are observations in other datasets 
with the same identifier. 

If this is the right description, you can do very 
little unless you combine these datasets into one, 
presumably with -append-. Stata can tell you 
some basic things about datasets not in memory, 
such as what variables they contain, but it 
will say nothing about individual observations. 
No local macro will help on this. 


> I have data by weekending dates where weekending is always 
> Saturday. For
> example, data sets go by data041004, data040304, data032704, 
> etc. When I use
> any particular data set, I would like to check with past 9 
> months of weekly
> data and see if any of the current records exists in previous 
> data sets. I
> would like to get any help on how to create the series of proceeding
> weekending dates. I tried to create a local variable with the current
> weekending date but couldn't convert it to date format and 
> subsequently, any
> preceding dates. 

*   For searches and help try:

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