R/confband_Sigma_hat.R

Defines functions confband_Sigma_hat

confband_Sigma_hat <- function(x, fnw, func, w, a, b, ...){
  n <- length(x)
  fkw <- sapply(1:a, function(k) func(x[seq(from = (k - 1)*b + 1, to = k*b)], ...)(w))
  Sigma_hat <- tcrossprod(fkw - fnw)*b/(a - 1)
  return(Sigma_hat)
}

Try the distfreereg package in your browser

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

distfreereg documentation built on April 4, 2025, 12:30 a.m.