Learn R Programming

edge (version 2.4.2)

fitFull: Fitted data from the full model

Description

Access the fitted data from the full model in a deFit object.

Usage

fitFull(object)

## S3 method for class 'deFit': fitFull(object)

Arguments

object
S4 object: deFit

Value

  • fitFull returns a matrix of fitted values from full model.

See Also

fit_models

Examples

Run this code
# 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 fitted values for full model
fitted_full <- fitFull(de_fit)

Run the code above in your browser using DataLab