A Dynamic Present Value object has a name and a proscribed dataset.

class_dynpv(
  name = character(0),
  df = (function (.data = list(), row.names = NULL) 
 {
     if (is.null(row.names)) {
  
          list2DF(.data)
     }
     else {
         out <- list2DF(.data,
    length(row.names))
attr(out, "row.names") <- row.names
         out
     }

    })()
)

Arguments

name

Name of object (character string)

df

Dataframe of proscribed format, such as generated by dynpv() and futurepv().

Value

An object of class class_dynpv(), with additional properties:

  • ncoh Number of cohorts of uptaking patients

  • uptake Total number of uptaking patients

  • sum_by_coh Tibble of summarized calculation results for each uptake cohort

  • total Total present value

  • mean Average present value per uptaking patient (=total/uptake)