plot.curvir | R Documentation |
Plot a reserve demand curve estimated using curve
.
Plot a non-parametric reserve demand curve estimated using npcurve
.
## 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,
...
)
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). |
No returned value. Produces a plot of the estimated curve.
plot(curvir)
: Plot parametric curves
plot(npcurvir)
: Plot non-parametric curves
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
.
npcurve
.
# 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.