Description Usage Arguments Author(s)
Quoth the Raven "Caw, caw!"
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | caw(
Y,
X,
k = NULL,
cov_of_interest = ncol(X),
limmashrink = TRUE,
weight_func = ash_wrap,
weight_args = list(),
fa_func = pca_naive,
fa_args = list(),
scale_var = TRUE,
include_intercept = TRUE,
weight_init = c("all_null", "random", "limma"),
weight_func_input = c("summary2"),
degrees_freedom = NULL,
min_scale = 0.8
)
|
Y |
A matrix of numerics. These are the response variables where each column has its own variance. In a gene expression study, the rows are the individuals and the columns are the genes. |
X |
A matrix of numerics. The covariates of interest. |
k |
A non-negative integer.The number of unobserved confounders. If not specified and the R package sva is installed, then this function will estimate the number of hidden confounders using the methods of Buja and Eyuboglu (1992). |
cov_of_interest |
A vector of positive integers. The column numbers of the covariates in X whose coefficients you are interested in. The rest are considered nuisance parameters and are regressed out by OLS. |
limmashrink |
A logical. Should we apply hierarchical
shrinkage to the variances ( |
weight_func |
The function that returns the weights (or
lfdr's). Many forms of input are allowed. See
|
weight_args |
Additional arguments to pass to
|
fa_func |
A factor analysis function. The function must have
as inputs a numeric matrix |
fa_args |
A list. Additional arguments you want to pass to fa_func. |
scale_var |
A logical. Should we scale the variance
( |
include_intercept |
A logical. If |
weight_init |
A character. How should we initialize the
weights? The options are to initialize in the all-null setting
( |
weight_func_input |
The form of input for
|
degrees_freedom |
if |
min_scale |
The minimum estimate for the variance inflation term. |
David Gerard
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.