Description Usage Arguments Value Examples
View source: R/rlib_matrix_ls.R
For each column i in X, solve Y_k = X_1i b_1i + X_2i b_2i + e as least squares problem and output estimated effect size and standard deviation
1 | matrixQTL_two_dim(Y, X1, X2, n)
|
Y |
response to regress against (dimension = N x K) |
X1 |
P predictors (as the first predictor) to perform regression separately (dimension = N x P) |
X2 |
P predictors (as the second predictor) to perform regression separately (dimension = N x P) |
n |
sample size (dimension = P x K) |
a list of summary statistics beta1_hat: estimated b1, b1_hat (dimension = K x P) beta1_se: standard deviation of b1_hat (dimension = K x P) beta2_hat: estimated b2, b2_hat (dimension = K x P) beta2_se: standard deviation of b2_hat (dimension = K x P)
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.