Description Usage Arguments Value Author(s) See Also Examples
These generic functions access and set the null matrix for
deSet
object.
1 2 3 4 5 6 7 8 9 | nullMatrix(object)
nullMatrix(object) <- value
## S4 method for signature 'deSet'
nullMatrix(object)
## S4 replacement method for signature 'deSet'
nullMatrix(object) <- value
|
object |
|
value |
|
nullMatrix
returns the value of the null model matrix.
John Storey, Andrew Bass
deSet
, fullModel
and
fullModel
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | # 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)
# extract the null model as a matrix
mat_null <- nullMatrix(de_obj)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.