Hi,
my dataset has data grouped in each hour for each day. I wish to randomly
draw with replacement from each day the vector in say "hour1", for example,
in hour1 in Aug 1:
price quantity
1 10
2 30
3 35
4 40
.
.
.
etc. which looks like a "supply function". I wish to draw the whole sequence
in the particular hour instead of a point. i.e., I wish to draw such
a "supply function" randomly from each day of August in "hour1", then
estimate the slope. For example, it may randomly draw from Aug2 the hour1, or
may randomly draw from Aug 15 the hour1. Repeat B times and get the mean of
the slope.
How can I draw the whole sequence in a particular hour?
Thanks a lot!
Hailing
*
* 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/