zpp_general | R Documentation |
This function computes the general version of the ZPP by simulating a number of trajectories (total number is given
by scenarios
) over n.days
time-steps, given an estimated GARCH model
zpp_general(
prices,
mean.model = list(armaOrder = c(0, 0)),
variance.model = list(garchOrder = c(1, 1)),
distribution.model = "norm",
n.days = 250,
scenarios = 20000
)
prices |
is a numeric vector containing the prices series |
mean.model |
is a list specifying the ARMA order for |
variance.model |
is a list containing the variance model specification for |
distribution.model |
is the conditional density to use for the innovations. See |
n.days |
is the number of time-steps |
scenarios |
is the total number fo trajectories |
zpp is the estimated ZPP
btc_data<-dat<-bitcoinity_download(currency="USD", data_type="price",
exchange="coinbase",time_length = "2y")
prices<-btc_data$avg
zpp<-zpp_general(prices)
zpp
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.