tvgeom-moments {tvgeom}R Documentation

Moments for the The Time-Varying (Right-Truncated) Geometric Distribution

Description

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

Usage

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

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

[Package tvgeom version 1.0.1 Index]