convert_ir | R Documentation |
This function converts between (primitive) period interest rates and (primitive) intraperiod interest rates. Here, a period is considered as the shortest term for monetary lending.
The primitive interest rate is defined as the interest rate when the money stock is adjusted to be constant under the assumption of monetary neutrality.
In the structural dynamic model, the period interest rate refers to the interest rate at which principal and interest are repaid at the beginning of the next period after borrowing money in the current period, while the intraperiod interest rate refers to the interest rate at which the principal and interest are repaid during the current period after borrowing money in the current period.
When the velocity of money is equal to one, these two types of interest rates are the same. When the velocity of money, namely vm, is greater than one, the intraperiod interest will be repaid in vm installments within the period, and there is usually a difference between the two types of interest rates.
convert_ir(ir, vm, to = c("period", "intraperiod"))
ir |
a vector consisting of period interest rates or intraperiod interest rates. |
vm |
a scalar, or a vector consisting of velocities of money. The velocity of money in each period is usually a positive integer. |
to |
type of conversion. Can be abbreviated. |
A vector consisting of intraperiod interest rates or period interest rates.
ir <- seq(0, 1, 0.1)
plot(ir, convert_ir(ir, 2, "period"), "b")
plot(ir, convert_ir(ir, 2, "intraperiod"), "b")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.