R/partial.corr.R

"partial.corr" <-
function(vars, cond) {
  y <- data.matrix(vars)
  cor(residuals(lsfit(y=y, x=data.matrix(cond),
                      yname=dimnames(y)[[2]])))
}

Try the HH package in your browser

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

HH documentation built on Aug. 9, 2022, 5:08 p.m.