invcurve | R Documentation |
Calculate the predicted reserves given some rate, i.e., calculate the prediction of the inverse curve.
invcurve(
object,
ynew = NULL,
xnew = NULL,
dummynew = NULL,
warn = c(TRUE, FALSE)
)
object |
A model fit with |
ynew |
The input rate. If |
xnew |
The values for the additional regressors that were used in the curve fit. Must be a matrix, ordered (columns) as they were input in the fitting of the curve. The constant is dealt with automatically. Do not input the excess reserves. If |
dummynew |
The values for the indicator, if one was used in the fitting of the curve. If |
warn |
A logical ( |
Returns a vector of values of the predicted reserves
Nikolaos Kourentzes, nikolaos@kourentzes.com
Chen, Z., Kourentzes, N., & Veyrune, R. (2023). Modeling the Reserve Demand to Facilitate Central Bank Operations. IMF Working Papers, 2023(179).
curve
, and predict
.
# Use ECB example data
rate <- ecb$rate
x <- ecb$x[,1,drop=FALSE]
fit <- curve(x,rate,type="logistic")
invcurve(fit)
# Use a different input rate
invcurve(fit,ynew=0.1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.