Description Usage Arguments Value Note Author(s) References Examples
Calculate beta for a ticker symbol based on the previous 50 daily gains. The function loads historical prices from Yahoo! Finance and calculates beta by regressing the fund's gains vs. the benchmark's gains and extracting the slope.
1 | beta.trailing50(ticker, benchmark.ticker = "SPY", ...)
|
ticker |
Ticker symbol for fund that you want to calculate beta for. |
benchmark.ticker |
Ticker symbol for benchmark fund. |
... |
Arguments to pass to |
Numeric value indicating the trailing 50-day beta.
NA
Dane R. Van Domelen
Acknowledgment: This material is based upon work supported by the National Science Foundation Graduate Research Fellowship under Grant No. DGE-0940903.
1 2 | # Calculate TLT's beta based on the previous 50 daily gains
# beta.trailing50("TLT")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.