tvgeom-moments {tvgeom} | R Documentation |
Functions to calculate first moment tvgeom_mean()
and second central
moment tvgeom_var()
for the time-varying geometric distribution.
tvgeom_mean(prob)
tvgeom_var(prob)
prob |
vector of the probability of success for each trial/time step. |
tvgeom_mean
returns the moment (the mean), and
tvgeom_var
returns the second central moment (the variance).
tvgeom_mean(prob = rep(0.1, 5))
tvgeom_var(prob = rep(0.1, 5))