R/squaredIntEstim.R

Defines functions squaredIntEstim

Documented in squaredIntEstim

squaredIntEstim <- function(x, method = "unbiased"){
  res <- (mean(x))^2
  if (method == "unbiased"){  
    n <- length(x)
    res <- res - var(x)/n
  }
  return(res)
}

Try the sensitivity package in your browser

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

sensitivity documentation built on Sept. 11, 2024, 9:09 p.m.