fullMatrix {edge} | R Documentation

## Matrix representation of full model

### Description

These generic functions access and set the full matrix for `deSet` object.

### Usage

    fullMatrix(object)

    fullMatrix(object) <- value

    ## S4 method for signature 'deSet'
    fullMatrix(object)

    ## S4 replacement method for signature 'deSet'
    fullMatrix(object) <- value

### Arguments

`object` | `S4 object`: `deSet`
`value` | `matrix`: full model matrix where the columns are the covariates and rows are observations

### Value

`fullMatrix` returns the value of the full model matrix.

### Author(s)

Andrew Bass, John Storey

### See Also

`deSet`, `fullModel`

### Examples

    # 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 full model equation as a matrix
    mat_full <- fullMatrix(de_obj)

[Package edge version 2.18.0 Index]