powered by
Functions to calculate first moment tvgeom_mean() and second central moment tvgeom_var() for the time-varying geometric distribution.
tvgeom_mean()
tvgeom_var()
tvgeom_mean(prob)tvgeom_var(prob)
tvgeom_var(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
tvgeom_var
# NOT RUN { tvgeom_mean(prob = rep(0.1, 5)) tvgeom_var(prob = rep(0.1, 5)) # }
Run the code above in your browser using DataLab