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

Re: Re: st: A query on handling monthly data


From   Badri Narayanan Gopalakrishnan <[email protected]>
To   [email protected]
Subject   Re: Re: st: A query on handling monthly data
Date   Wed, 11 Jan 2006 13:19:04 +0530

Thanks a lot for the suggestion. It worked out perfectly.
But, I still have a query. Is it necessary to fillin, or would it be
fine to allow the time series variable with gaps, say, to estimate
SUR? I need to know about this because, though it's implicit that the
observations for which data is not available should have been zero,
I'm reluctant to do this, as it could as well have been because of
missing data!

Date: Tue, 10 Jan 2006 08:20:56 -0500
From: austin nichols <[email protected]>
Subject: Re: st: A query on handling monthly data

1. Given existing variables year and month,
. gen newdate=(year-1960)*12+month-1
. format newdate %tm

2. I assume you mean panel, i.e. you want the initial value for some
variable, say agehead, for each household (each cross-section means
looking over all households at a given point in time), and I assume
you have a household ID.
. bys hhid (newdate): gen init_agehead=agehead[1]

See -fillin- for  how to fill in the missing zero values you describe
in the first paragraph below.



--
With Warm Regards,
Badri Narayanan G.,
Indira Gandhi Institute of Development Research,
Gen. Vaidya Marg, Goregaon (East),
Mumbai-400065

*
*   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