PgivenFivary | R Documentation |
Compute P given F and i that varies
PgivenFivary(Fn, ik, k)
Fn |
numeric vector that contains the future value(s) at the end of a period n |
ik |
numeric vector that contains the effective interest rate(s) per period as a percent for the kth period |
k |
numeric vector that contains the kth period values |
P is expressed as
P = \frac{F_n}{\prod \limits_{k=1}^n{\left(1 + i_k\right)}}
the "present equivalent"
F_n
the "future cash flows subject to varying interest rates"
i_k
the "interest rate for the kth period"
the "number of interest periods"
PgivenFivary numeric vector that contains the present value(s)
Irucka Embry
r - Add a Column to a Dataframe From a List of Values - Stack Overflow answered by Matthew Plourde on Jun 21 2012. See https://stackoverflow.com/questions/11130037/add-a-column-to-a-dataframe-from-a-list-of-values/11130178.
r - Why does is.vector() return TRUE for list? - Stack Overflow answered by Andrie on May 17 2011. See https://stackoverflow.com/questions/6032772/why-does-is-vector-return-true-for-list/6032909.
William G. Sullivan, Elin M. Wicks, and C. Patrick Koelling, Engineering Economy, Fourteenth Edition, Upper Saddle River, New Jersey: Pearson/Prentice Hall, 2009, page 142, 162.
library(iemisc)
# Example for equation 4-31 from the Reference text (page 162)
PgivenFivary(Fn = 1000, ik = c(10, 12, 13, 10), k = 1)
# i1 is 10\%, i2 is 12\%, i3 is 14\%, and i4 is 10\% & k = 1 year
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.