Description Usage Arguments Value Author(s) See Also Examples
Computes the hedge of a stock price series fetched form Yahoo! using one or more other stock price series also fetched form Yahoo!
1 | yhedge.pci(target, factors, start, end, na.rm=FALSE, ...)
|
target |
The ticker symbol of the stock price series that is to be modeled. |
factors |
A list of ticker symbols of stock price series to be used in modeling
|
start |
The starting date for which data is to be fetched, given in the format YYYYMMDD. Default: 2 years ago today. |
end |
The ending date for which data is to be fetched, given in the format YYYYMMDD. Default: today. |
na.rm |
If TRUE, then |
... |
Additional optional parameters to be passed to |
An S3
object of class pci.hedge
representing the best fit that
was found.
Matthew Clegg matthewcleggphd@gmail.com
Christopher Krauss christopher.krauss@fau.de
Jonas Rende jonas.rende@fau.de
1 2 3 4 5 6 | # Compute the best hedge of Coca-Cola using sector ETFS.
# sectorETFS <- c("XLB","XLE","XLF","XLI","XLK","XLP","XLU","XLV","XLY")
# hedge <- yhedge.pci("KO", sectorETFS)
# hedge
# test.pci(hedge$pci)
# plot(hedge)
|
Loading required package: partialAR
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.