fitted.lcc: Extract Fitted Values from an 'lcc' Object

View source: R/methods.R

fitted.lccR Documentation

Extract Fitted Values from an lcc Object

Description

Extracts and prints the fitted values from an object of class lcc, as returned by modeling functions. The function allows selection of different types of fitted values based on longitudinal data analysis.

Usage

## S3 method for class 'lcc'
fitted(object, type = "lcc", digits = NULL, ...)

Arguments

object

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

type

The type of fitted values to extract: "lcc" for longitudinal concordance correlation, "lpc" for longitudinal Pearson correlation, or "la" for longitudinal accuracy. Defaults to "lcc".

digits

Minimum number of significant digits to be printed. Default is NULL, which uses the default precision.

...

Additional arguments (currently not used).

Value

The function prints the fitted values and returns them as a data frame.

See Also

lcc, summary.lcc, lccPlot

Examples

data(hue)
fm1 <- lcc(data = hue, subject = "Fruit", resp = "H_mean",
           method = "Method", time = "Time", qf = 2, qr = 2,
           components = TRUE)
fitted(fm1)
fitted(fm1, type = "lpc")
fitted(fm1, type = "la")


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