inst/snippet/mom-life02.R

m <- mean(life01); m
n <- length(life01); n
v <- var(life01) * (n-1) / n; v
#alpha
m^2/v
#lambda
m/v

Try the fastR package in your browser

Any scripts or data that you put into this service are public.

fastR documentation built on May 2, 2019, 5:53 p.m.