Learn R Programming

cold (version 2.0-3)

resid-methods: Methods for function residd

Description

Methods for function resid extracting residual values of a fitted model object from class cold.

Usage

# S4 method for cold
resid(object, type = c( "pearson","response","null"),...)

Arguments

object

an object of class cold.

type

an optional character string specifying the type of residuals to be used. Two types are allowed: pearson and response. Defaults to "pearson".

...

other arguments.

Methods

signature(object="cold"):

residuals for cold object.

Examples

Run this code
# NOT RUN {
#####  data = seizure

seiz1M <- cold(y ~ lage + lbase + v4 + trt + trt:lbase, data = seizure, 
start = NULL, dependence = "AR1")

resid(seiz1M)[1:16]

# }

Run the code above in your browser using DataLab