Hello Stata guys,
I have some issue with data for my master thesis. I hope that you can help.
My data is structured in the following way. I have a period from 31-01-2000 to 31-12-2013 where I have 400 unique observations. Not all of the obersvations have the same periods i.e. some are present trought the whole time serie, some are only existing for 3 years.
However, I have to regress a four factor model on each observation i.e. simply running an OLS regression for each observation trought the time serie that are present for this observation.
Can anybody help me with a code or other commands that makes this relative easy in STATA?
The commands/code should simply run the same regression on all uniquie observation. The data lenght of the data used in each regression is dependent on the lengt of the time serie for that particular obseravtions.
It is fine if I get 400 regression overview in STATA.
The bad way to solve this issue would be to run these 400 regression manually
Best,
René
I have some issue with data for my master thesis. I hope that you can help.
My data is structured in the following way. I have a period from 31-01-2000 to 31-12-2013 where I have 400 unique observations. Not all of the obersvations have the same periods i.e. some are present trought the whole time serie, some are only existing for 3 years.
However, I have to regress a four factor model on each observation i.e. simply running an OLS regression for each observation trought the time serie that are present for this observation.
Can anybody help me with a code or other commands that makes this relative easy in STATA?
The commands/code should simply run the same regression on all uniquie observation. The data lenght of the data used in each regression is dependent on the lengt of the time serie for that particular obseravtions.
It is fine if I get 400 regression overview in STATA.
The bad way to solve this issue would be to run these 400 regression manually

Best,
René
Comment