Computing HPR, the holding period return
hpr(ev, bv, cfr = 0)
ev
ending value
bv
beginning value
cfr
cash flow received
twrr
hpr2ear
hpr2mmy
hpr(ev=33,bv=30,cfr=0.5)