Description Usage Arguments Value References Examples
Calculates beta for a ticker symbol based on the previous 50 daily gains.
1 | beta_trailing50(ticker, bench = "SPY", ...)
|
ticker |
Character string with ticker symbols that Yahoo! Finance recognizes. |
bench |
Character string with ticker symbol for benchmark. |
... |
Arguments to pass to |
Numeric value.
Ryan, J.A. and Ulrich, J.M. (2017) quantmod: Quantitative Financial Modelling Framework. R package version 0.4-12, https://CRAN.R-project.org/package=quantmod.
1 2 3 4 5 | ## Not run:
# Calculate TLT's beta based on the previous 50 daily gains
beta_trailing50("TLT")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.