betaCoef {edge} | R Documentation

## Regression coefficients from full model fit

### Description

Access the full model fitted coefficients of a `deFit` object.

### Usage

    betaCoef(object)

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

### Arguments

`object` | `S4 object`: `deFit`

### Value

`betaCoef` returns the regression coefficients for the full model fit.

### Author(s)

John Storey, Andrew Bass

### See Also

`fit_models`

### 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)

    # run fit_models to get model fits
    de_fit <- fit_models(de_obj)

    # extract beta coefficients
    beta <- betaCoef(de_fit)

[Package edge version 2.18.0 Index]