Description Usage Arguments Details Value See Also
View source: R/adjust_functions.R
Adjust for latent factors, after rotationn
1 2 3 4 5 6 7 8 9 10 11 | adjust.latent(
corr.margin,
n,
X.cov,
Gamma,
Sigma,
method = c("rr", "nc", "lqs"),
psi = psi.huber,
nc = NULL,
nc.var.correction = TRUE
)
|
corr.margin |
marginal correlations, p*d1 matrix |
n |
sample size |
X.cov |
estimated second moment of X, d*d matrix |
Gamma |
estimated confounding effects, p*r matrix |
Sigma |
diagonal of the estimated noise covariance, p*1 vector |
method |
adjustment method |
psi |
derivative of the loss function in robust regression, choices are
|
nc |
position of the negative controls |
nc.var.correction |
correct asymptotic variance based on our formula |
The function essentially runs a regression of corr.margin
~ Gamma
.
The sample size n
is needed to have the right scale.
This function should only be called if you know what you are doing.
Most of the time you want to use the main function cate
to adjust for confounders.
a list of objects
estimated alpha, r*d1 matrix
estimated beta, p*d1 matrix
estimated row covariance of beta
, a length p vector
estimated column covariance of beta
, a d1*d1 matrix
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.