Identification function for state-dependent quantiles
Identification function for state-dependent quantiles
Main alternative to estimating state-dependent quantiles based on the quantile identification function are state-dependent expectiles.
quantiles(x, y, stateVariable, theta, model,...)
Arguments
x: forecast
y: realization
stateVariable: state variable
theta: model parameter to be estimated
model: model function
...: ...
Examples
### estimate expectation of identification function for quantile forecastsset.seed(1)y <- rnorm(1000)x <- qnorm(0.6)# expectation of identification with quantile level 0.6 is zeromean(quantiles(x,y,0,0.6,constant))# expectation of identification function with different quantile level# (0.5 is the median) is not zeromean(quantiles(x,y,0,0.5, constant))