Learn R Programming

gremlin (version 0.1.0.1)

residuals.gremlin: Residuals of class ‘gremlin’

Description

Residuals of class ‘gremlin’.

Usage

# S3 method for gremlin
residuals(object, type = "response", scaled = FALSE,
  ...)

Arguments

object

An object of class ‘gremlin’.

type

The type of residuals which should be returned. Only implement “response” currently. Can be abbreviated.

scaled

Logical value indicating whether to scale residuals by the residual standard deviation.

Additional arguments.

Value

A numeric vector of residuals.

Examples

Run this code
# NOT RUN {
mod11 <- gremlinR(WWG11 ~ sex - 1,
random = ~ calf,
data = Mrode11,
Gstart = matrix(0.1), Rstart = matrix(0.4),
maxit = 50, v = 2, algit = "EM")
residuals(mod11)
# }

Run the code above in your browser using DataLab