Learn R Programming

lcc (version 3.2.2)

fitted.lcc: 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 lcc
fitted(object, type = "lcc", digits = NULL, ...)

Value

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

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).

See Also

lcc, summary.lcc, lccPlot

Examples

Run this code
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")

Run the code above in your browser using DataLab