betaf {FinAna} | R Documentation |
Calculating beta using common method or linear regression(OLS)
betaf(x,y,method)
x |
:a vector or a data.frame of rate of return of companies |
y |
:name of the independent variable |
method |
:method of calculation; method = 1 for a common expression of beta(see detail); method = 2 using linear regression to estimate the beta |
#betaf(appl,sp500)