Description Usage Arguments Value Examples
Functions to calculate first moment tvgeom_mean()
and second central
moment tvgeom_var()
for the time-varying geometric distribution.
1 2 3 | 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).
1 2 | tvgeom_mean(prob = rep(0.1, 5))
tvgeom_var(prob = rep(0.1, 5))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.