R/h.R

Defines functions h

h = function(lambda, d, Xs, const, entropy, del, weight.scale, G.scale, intercept){
  return(t(Xs) %*% (Xs * (d  / weight.scale^2  / G.scale * gprimeinv(
    drop(Xs %*% lambda / weight.scale / G.scale), 
  entropy = entropy,
  del = del, intercept = intercept))))
}

Try the GECal package in your browser

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

GECal documentation built on Aug. 8, 2025, 6:37 p.m.