Description Usage Arguments Value Author(s) See Also
This function tests whether a user-defined function fa_func
is compatible
for use in ruvb
. Let n be the number of samples, p be the number of genes,
m be the number of control genes, and q be the number of covariates.
In general, fa_func
needs to take as input
Y21
a q by m matrix of numerics, Y31
a (n - q) by m matrix of numerics,
Y32
a (n - q) by (p - m) matrix of numerics, and k
a positive integer
that is the rank of the factor model if assuming a factor model.
fa_func
also needs to return Y22_array
a three-way array whose first two dimensions are
k and (p - m).
1 | fa_tester_ruvb(fa_func, fa_args = list())
|
fa_func |
The factor analysis function. |
fa_args |
Additional arguments to pass to fa_func. |
A list with some or all of the following elements:
ok
A logical. A value of TRUE
means the function is OK. A value of
FALSE
means the function is not OK.
why
A string vector giving the reason(s) why the function is not OK if ok = FALSE
.
input
A list of input values to help you debug.
David Gerard
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.