tvgeom-moments: Moments for the The Time-Varying (Right-Truncated) Geometric...

Description Usage Arguments Value Examples

Description

Functions to calculate first moment tvgeom_mean() and second central moment tvgeom_var() for the time-varying geometric distribution.

Usage

1
2
3
tvgeom_mean(prob)

tvgeom_var(prob)

Arguments

prob

vector of the probability of success for each trial/time step.

Value

tvgeom_mean returns the moment (the mean), and tvgeom_var returns the second central moment (the variance).

Examples

1
2
tvgeom_mean(prob = rep(0.1, 5))
tvgeom_var(prob = rep(0.1, 5))

tvgeom documentation built on Dec. 10, 2019, 5:11 p.m.