ewaff.sva | R Documentation |
Provide a function to manually compute surrogate variables, using the same syntax for submission of a ewaff.sites call
ewaff.sva(
formula,
variable.of.interest,
methylation,
data,
family = gaussian,
n.sv = 10,
most.variable = NULL,
random.subset = 0.05,
algorithm = "sva",
...
)
formula |
An object of class |
variable.of.interest |
Name of variable in the GLM model formula for which to save summary statistics. |
methylation |
DNA methylation matrix, one row per CpG site, one column per sample. |
data |
Data frame providing variables referenced in model formula. |
family |
(Default: gaussian). |
n.sv |
Number of surrogate variables to compute (Default: 10). |
most.variable |
Generate surrogate variables from the given most variable CpG sites rather than the whole matrix (Default: NULL). |
random.subset |
Generate surrogate variables from the given percentage of randomly selected CpG sites rather than the whole matrix (Default: 0.05, i.e. 5 percent). |
algorithm |
Algorithm to use, either "sva" or "smartsva" (Default: "sva"). |
Note: surrogate variables are computed using sva
Matrix containing surrogate variables computed
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.