Skip to content

Commit e2b9eee

Browse files
committed
Minor doc edits
1 parent 5fc9384 commit e2b9eee

File tree

4 files changed

+28
-13
lines changed

4 files changed

+28
-13
lines changed

R/dynamic.R

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,18 @@
2020
#'
2121
#' Calculate present value for a payoff with dynamic (lifecycle) pricing and dynamic uptake (stacked cohorts).
2222
#'
23-
#' Let us partition time as follows.
23+
#' Suppose payoffs in relation to patients receiving treatment (such as costs or health outcomes) occur over timesteps \eqn{t=1, ..., T}. Let us partition time as follows.
2424
#'
25-
#' - Suppose \eqn{j=1,...,T} indexes the time at which the patient begins treatment, where \eqn{T} is the time horizon of the decision-maker.
25+
#' - Suppose \eqn{j=1,...,T} indexes the time at which the patient begins treatment.
2626
#' - Suppose \eqn{k=1,...,T} indexes time since initiating treatment.
2727
#'
28-
#' In general, \eqn{t=j+k-1}, and we are interested in \eqn{t=1,...,T}.
28+
#' In general, \eqn{t=j+k-1}, and we are interested in the set of \eqn{(j,k)} such that \eqn{1 \leq t \leq T}.
29+
#'
30+
#' For example, \eqn{t=3} comprises:
31+
#'
32+
#' - patients who are in the third timestep of treatment that began in timestep 1: (j,k)=(1,3);
33+
#' - patients who are in the second timestep of treatment that began in timestep 2, (j,k)=(2,2); and
34+
#' - patients who are in the first timestep of treatment that began in timestep 3, (j,k)=(3,1)
2935
#'
3036
#' The [Present Value](https://en.wikipedia.org/wiki/Present_value) of a cashflow \eqn{p_k} for the \eqn{u_j} patients who began treatment at time \eqn{j} and who are in their \eqn{k}th timestep of treatment is as follows
3137
#' \deqn{PV(j,k,l) = u_j \cdot p_k \cdot R_{j+k+l-1} \cdot (1+i)^{2-j-k}}

README.Rmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ knitr::opts_chunk$set(
2323

2424
The goal of *dynamicpv* is to evaluate present values and cost-effectiveness with dynamic pricing and uptake.
2525

26-
Through the `dynamicpv::dynpv()` function, the package provides calculations of the present values of costs, life years, QALYs or other payoffs allowing for dynamic uptake (also known as multiple cohorts) and dynamic pricing (also known as life-cycle). The starting point is a conventional cohort cost-effectiveness model, such as one computed using the [heemod](https://cran.r-project.org/package=heemod) package.
26+
Through the [dynpv()](https://msdllcpapers.github.io/dynacem/reference/dynpv.html) function, the package provides calculations of the present values of costs, life years, QALYs or other payoffs allowing for dynamic uptake (also known as multiple cohorts) and dynamic pricing (also known as life-cycle). The starting point is a conventional cohort cost-effectiveness model, such as one computed using the [heemod](https://cran.r-project.org/package=heemod) package.
2727

2828
## Installation
2929

README.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,14 @@ coverage](https://codecov.io/gh/MSDLLCpapers/dynacem/graph/badge.svg)](https://a
1515
The goal of *dynamicpv* is to evaluate present values and
1616
cost-effectiveness with dynamic pricing and uptake.
1717

18-
Through the `dynamicpv::dynpv()` function, the package provides
19-
calculations of the present values of costs, life years, QALYs or other
20-
payoffs allowing for dynamic uptake (also known as multiple cohorts) and
21-
dynamic pricing (also known as life-cycle). The starting point is a
22-
conventional cohort cost-effectiveness model, such as one computed using
23-
the [heemod](https://cran.r-project.org/package=heemod) package.
18+
Through the
19+
[dynpv()](https://msdllcpapers.github.io/dynacem/reference/dynpv.html)
20+
function, the package provides calculations of the present values of
21+
costs, life years, QALYs or other payoffs allowing for dynamic uptake
22+
(also known as multiple cohorts) and dynamic pricing (also known as
23+
life-cycle). The starting point is a conventional cohort
24+
cost-effectiveness model, such as one computed using the
25+
[heemod](https://cran.r-project.org/package=heemod) package.
2426

2527
## Installation
2628

man/dynpv.Rd

Lines changed: 10 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)