I'm on a portfolio analysis, so I import an excel spreadsheet where the first column stand for Date of observation, from column B to column ABQ there are historical returns series for firms, one column per firm.
I need a loop in order to compute OLS coefficient and perform inferential analysis. rm is my indipendent variable. After that, how may I save coefficient for each company in order to study a portfolio coefficient?
I need a loop in order to compute OLS coefficient and perform inferential analysis. rm is my indipendent variable. After that, how may I save coefficient for each company in order to study a portfolio coefficient?
Comment