Thanks David about the suggestion of dummy variables.
Actually I thought about that but the difficulty is that I am using
chronological months, rather than calendar months...
That is, I have monthly observations for 80+ years, and not the 12 calendar
months.
In that case, the number of coefficients is 10*1000*2... (1000 months) and
that makes it very messy.
----- Original Message -----
From: "David E Moore" <[email protected]>
To: <[email protected]>
Sent: Monday, June 28, 2004 6:22 PM
Subject: st: RE: Re: RE: Avoiding loops (the while loop)
> While I still don't quite understand the nature of your data and problem,
it
> seems to me that you should be able to manipulate the data so that
properly
> constructed dummy variables (to identify each month and portfolio) and
> interactions between pbeta and the appropriate dummy variables could give
you
> exactly what you want in a single regression. It would be large (10 x 12
x 2
> coefficients), but it should run considerably faster.
*
* 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/