resFull: Residuals of full model fit

Description Usage Arguments Value Author(s) See Also Examples

Description

Access the fitted full model residuals in an deFit object.

Usage

1
2
3
4
resFull(object)

## S4 method for signature 'deFit'
resFull(object)

Arguments

object

S4 object: deFit

Value

resFull returns a matrix of residuals from full model.

Author(s)

John Storey, Andrew Bass

See Also

fit_models

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
# 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 fit_models to get model fits
de_fit <- fit_models(de_obj)

# extract out the full residuals from the model fit
res_full <- resFull(de_fit)

StoreyLab/edge documentation built on May 9, 2019, 3:09 p.m.