Calculates correlation / covariance between Y and X, holding control constant
par_cor(Y, X, control = NULL, wgt = rep(1, length(Y)))
outcome vector (must be numeric without NA's).
numeric data frame or matrix of factors to be considered.
numeric data frame or matrix of factors to control for. these are factors that we can't consider while looking for the optimal intervention (e.g. race).
an optional vector of weights.
data frame with partial correlations, partial covariance & p-values.