plot.curvir {curvir} | R Documentation |
Plot method for curvir reserve demand models
Description
Plot a reserve demand curve estimated using curve
.
Plot a non-parametric reserve demand curve estimated using npcurve
.
Usage
## S3 method for class 'curvir'
plot(
x,
ploty = c(FALSE, TRUE),
plotq = c(TRUE, FALSE),
usemean = c(FALSE, TRUE),
prcmp = c(FALSE, TRUE),
useline = c(FALSE, TRUE),
main = NULL,
pch = 20,
...
)
## S3 method for class 'npcurvir'
plot(
x,
ploty = c(FALSE, TRUE),
plotq = c(TRUE, FALSE),
usemean = c(FALSE, TRUE),
prcmp = c(FALSE, TRUE),
useline = c(FALSE, TRUE),
main = NULL,
pch = 20,
...
)
Arguments
x |
A model fit with |
ploty |
Logical ( |
plotq |
Logical ( |
usemean |
Logical ( |
prcmp |
Logical ( |
useline |
Logical ( |
main |
Use to overide the default plot title. |
pch |
Use to overide the dafault marker type for points. |
... |
Additional inputs (currently unused). |
Value
No returned value. Produces a plot of the estimated curve.
Methods (by class)
-
plot(curvir)
: Plot parametric curves -
plot(npcurvir)
: Plot non-parametric curves
Author(s)
Nikolaos Kourentzes, nikolaos@kourentzes.com
References
Chen, Z., Kourentzes, N., & Veyrune, R. (2023). Modeling the Reserve Demand to Facilitate Central Bank Operations. IMF Working Papers, 2023(179).
See Also
Examples
# Use ECB example data
rate <- ecb$rate
x <- ecb$x[,1,drop=FALSE]
fit <- curve(x,rate)
plot(fit)
# Use ECB example data
rate <- ecb$rate
x <- ecb$x[,1,drop=FALSE]
fit <- npcurve(x,rate)
plot(fit)