ls estimation of each crosssection in panel data
Posted: Sat Nov 03, 2012 3:59 am
Hi everyone,
my workfile is set up as a dated panel structure. Let's say I have 3 crosssections for each of my two series (seriesA and seriesB) and I would like to estimate a Single Index Model (seriesA=constant + Beta*seriesB) for each crosssection. The only way I have found to do that is to change the sample for every crosssection. Therefore I would have to change the sample three times and following every change of the sample I would estimate the regression. For 3 crosssections that's no problem, but I will have between 100 and 200 in my real data set. So, is there any way that I could estimate a ls regression for each of my crosssections without changing the sample everytime?
Thanks a lot for help or suggestions.
my workfile is set up as a dated panel structure. Let's say I have 3 crosssections for each of my two series (seriesA and seriesB) and I would like to estimate a Single Index Model (seriesA=constant + Beta*seriesB) for each crosssection. The only way I have found to do that is to change the sample for every crosssection. Therefore I would have to change the sample three times and following every change of the sample I would estimate the regression. For 3 crosssections that's no problem, but I will have between 100 and 200 in my real data set. So, is there any way that I could estimate a ls regression for each of my crosssections without changing the sample everytime?
Thanks a lot for help or suggestions.