zpp_norm_garch11 | R Documentation |
This function computes the closed-form normal ZPP assuming the price-differenced series follows a model with constant mean and GARCH(1,1) errors
zpp_norm_garch11(prices, n.days = 250)
prices |
is a numeric vector containing the prices series |
n.days |
is the number of time-steps |
closed.zpp.garch is the estimated closed-form normal ZPP
library(rugarch)
btc_data<-dat<-bitcoinity_download(currency="USD", data_type="price",
exchange="coinbase",time_length = "2y")
prices<-btc_data$avg
zpp.norm.garch11<-zpp_norm_garch11(prices)
zpp.norm.garch11
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.