Skip to contents
-
annfactor()
- Calculate Annuity Factors with Survival and Cost-of-Living Adjustments
-
get_pv()
- Calculate Present Value Factor
-
get_pv_cf_roll()
- get_pv_cf_roll returns the remaining present value of future cash flows (cf) in every year forward
-
get_pv_gpmt()
- Calculate Present Value of a Growing Annuity Payment
-
get_pv_pmt()
- Calculate Present Value of an Annuity Payment
-
get_pvfs()
- Calculate Present Value of Future Salaries (PVFS)
-
npv()
- npv calculates the present value of future cashflows (cf)
-
pv()
- Present Value of a Growing Annuity
-
recur_grow()
- #' @export get_pvfs <- function(remaining_prob_vec, interest_vec, sal_vec) PVFS <- double(length = length(sal_vec)) for (i in 1:length(sal_vec)) remaining_prob_og <- remaining_prob_veci:length(remaining_prob_vec) remaining_prob <- remaining_prob_og / remaining_prob_og1 interest <- interest_veci sal <- sal_veci:length(sal_vec) sal_adjusted <- sal * remaining_prob PVFSi <- npv(interest, sal_adjusted) return(PVFS)
-
roll_pv()
- Rolling Present Value Calculation