R/chao.sd.R

Defines functions chao.sd

Documented in chao.sd

chao.sd <-
function(x) {
  f.one <- sum(x[x==1])
  f.two <- sum(x[x==2])
  gamma <- f.two*(0.25*(f.one/f.two)^4+(f.one/f.two)^3+0.5*(f.one/f.two)^2)
  return(sqrt(gamma))
}

Try the fossil package in your browser

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

fossil documentation built on March 23, 2020, 5:06 p.m.