R/pool_stats.R

weighted_avg <- function(weight, value) {
    weighted.mean(value, weight)
}

WAC <- function(balances = balance, rates = rate) {
    weighted_avg(balances, rates)
}

WAM <- function(balances, term) {
    weighted_avg(balances, term)
}

WALA <- function(balances, age) {
    weighted_avg(balances, age)
}

WAL <- function(balance, ...) {
    
}
rds64/mortgage documentation built on May 28, 2019, 5:39 p.m.