Description Usage Arguments Value Author(s) References See Also Examples
Runs sva
on the null and full models in
deSet
. See sva
for additional details.
1 2 3 4 |
object |
|
... |
Additional arguments for |
deSet
object where the surrogate variables
estimated by sva
are added to the full model and null model
matrices.
John Storey, Jeffrey Leek, Andrew Bass
Leek JT, Storey JD (2007) Capturing Heterogeneity in Gene Expression Studies by Surrogate Variable Analysis. PLoS Genet 3(9): e161. doi:10.1371/journal.pgen.0030161
Leek JT and Storey JD. (2008) A general framework for multiple testing dependence. Proceedings of the National Academy of Sciences, 105: 18718- 18723.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | # import data
library(splines)
data(kidney)
age <- kidney$age
sex <- kidney$sex
kidexpr <- kidney$kidexpr
cov <- data.frame(sex = sex, age = age)
# create models
null_model <- ~sex
full_model <- ~sex + ns(age, df = 4)
# create deSet object from data
de_obj <- build_models(data = kidexpr, cov = cov, null.model = null_model,
full.model = full_model)
# run surrogate variable analysis
de_sva <- apply_sva(de_obj)
# run odp/lrt with surrogate variables added
de_odp <- odp(de_sva, bs.its = 30)
summary(de_odp)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.