residuals.lcc: Extract Residuals from a Fitted lcc Model

View source: R/methods.R

residuals.lccR Documentation

Extract Residuals from a Fitted lcc Model

Description

Extracts residuals from the fitted longitudinal concordance correlation model represented by an lcc object. Different types of residuals can be obtained based on the specified type.

Usage

## S3 method for class 'lcc'
residuals(object, type = "response", ...)

Arguments

object

An object of class lcc, representing a fitted longitudinal concordance correlation function.

type

A character string specifying the type of residuals to extract. Options are "response" for residuals obtained by subtracting the fitted values from the response (default), "pearson" for "response" residuals divided by the estimated within-group standard error, and "normalized" for normalized residuals. Partial matching is used, so only the first character of the type is necessary.

...

Optional arguments passed to the residuals.lme function from the nlme package.

Details

The function provides a convenient way to examine the differences between observed and predicted values in the model. Understanding these residuals can be crucial for model diagnostics and validation. For more information, refer to the methods for nlme objects.

See Also

lcc, summary.lcc, coef.lcc, vcov.lcc

Examples

## Not run: 
fm1 <- lcc(data = hue, subject = "Fruit", resp = "H_mean",
           method = "Method", time = "Time", qf = 2, qr = 2)
residuals(fm1)

## End(Not run)


Prof-ThiagoOliveira/lcc documentation built on Dec. 9, 2023, 12:10 a.m.