Description Usage Arguments Examples
Calculating beta using common method or linear regression(OLS)
1 | 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 |
1 | #betaf(appl,sp500)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.