This R package contains pmf, cdf, quantile, and random number generation functions for the time-varying geometric distribution. The time-varying geometric distribution is derived from the geometric distribution and has a vector of success probabilities as its parameter. Whereas the geometric distribution has a constant probability of success over time and has no upper bound of support, the time-varying geometric distribution has a probability of success that changes over time. Additionally, to accommodate situations in which the event can only occur in $n$ days, after which success can not occur, the time-varying geometric distribution is right-truncated (it has a maximum possible value of the length, *n*, of the probability vector plus 1). When a time-varying geometric distributed variable has value *n+1*, this means the event did not occur in the first *n* time steps. For more detailed information on this package and the time-varying geometric distribution, please see the package vignette.

This R package contains PMF, CDF, quantile, and random number generation functions for the time-varying right-truncated geometric (tvgeom) distribution. The tvgeom distribution is derived from the geometric distribution and has a vector of success probabilities as its parameter. Whereas the geometric distribution has a constant probability of success over time and has no upper bound of support, the tvgeom distribution has a probability of success that changes over time. Additionally, to accommodate situations in which the event can only occur in $n$ days, after which success can not occur, the tvgeom distribution is right-truncated (it has a maximum possible value of the length, *n*, of the probability vector plus 1). When a tvgeom distributed variable has value *n+1*, this means the event did not occur in the first *n* time steps. For more detailed information on this package and the tvgeom distribution, please see the package vignette.

### Example

The following example demonstrates the relationship between the geometric distribution and the time-varying geometric distribution.