Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, statalist.org is already up and running.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: Regression with different firms


From   Fernando Rios Avila <f.rios.a@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: Regression with different firms
Date   Thu, 9 Aug 2012 14:01:33 -0400

Felix,
Look at -help reshape-
HTH
Fernando
On Thu, Aug 9, 2012 at 1:58 PM, felix kreppel <felix.kreppel@gmx.de> wrote:
>
> Hello,
>
> I have regression problem:
>
> I have a dataset consisting of yearly firm returns (for firm1-firm3) and the volatility of each firm in that month(std1-std3) and a data on a monthly market return (market_return) over a specific timepriod.
>
> No I want to estimate the following regression over the whole time period:
>
> return_firm_i = a*std_i + b* market_return
>
> Its not a problem to do this with only one firm:
>
> regress firm1 std1 market_return, robust
>
> However, I want to do this for the whole dataset and estimate single coefficients.
>
> Could somebody help me?
>
>
> My dataset looks like this:
>
> date    firm1 firm2 firm3 std1 std2 std3 market_return
> 1985    0.03   0.04  0.05  0.3  0.4  0.5    0.6
> 1986   ..
> 1987    ...
>
> Thanks in advance!
>
> *
> *   For searches and help try:
> *   http://www.stata.com/help.cgi?search
> *   http://www.stata.com/support/statalist/faq
> *   http://www.ats.ucla.edu/stat/stata/
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index