R/var.ml.R

Defines functions var.ml

var.ml <-
function(N,S,k) {
  Ck <- 1-(1-k)^S
  num <- Ck*k*(1-k)
  num <- num*num
  den <- N*(1-2*k)*Ck*Ck + k*N*Ck*(1-((1-k)^S)*(1+k*S)) + N*S*((1-k)^S)*(Ck-S)*(k^2)
  Vk <- num/den
  return(Vk)
}

Try the MLpreemption package in your browser

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

MLpreemption documentation built on Feb. 11, 2021, 5:07 p.m.