Description Usage Arguments Value Examples
View source: R/rlib_matrix_ls_with_mask.R
For each column i in X, solve Y_k = X_i b_i + e with M_k as mask (entries with M_k = 0 are excluded) and observations are weighted by W_k as least squares problem and output estimated effect size and standard deviation
1 | matrixQTL_with_mask_one_dim(Y, X, M, Weight = NULL)
|
Y |
response to regress against (dimension = N x K) |
X |
P predictors to perform regression separately (dimension = N x P) |
M |
mask for regression of Y_k (dimension = N x K) |
Weight |
weights for regression of Y_k (dimension = N x K; default = NULL) |
a list of summary statistics beta_hat: estimated b, b_hat (dimension = K x P) beta_se: standard deviation of b_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.