lcModels {latrend}R Documentation

Construct a list of lcModel objects

Description

A general overview of the lcModels class can be found here.

The lcModels() function creates a flat (named) list of lcModel objects. Duplicates are preserved.

Usage

lcModels(...)

Arguments

...

lcModel, lcModels, or a recursive list of lcModel objects. Arguments may be named.

Value

A lcModels object containing all specified lcModel objects.

Functionality

See Also

Other lcModels functions: as.lcModels(), lcModels-class, max.lcModels(), min.lcModels(), plotMetric(), print.lcModels(), subset.lcModels()

Examples


lmkmMethod <- lcMethodLMKM(Y ~ Time, id = "Id", time = "Time")
lmkmModel <- latrend(lmkmMethod, latrendData)
rngMethod <- lcMethodRandom("Y", id = "Id", time = "Time")
rngModel <- latrend(rngMethod, latrendData)

lcModels(lmkmModel, rngModel)

lcModels(defaults = c(lmkmModel, rngModel))

[Package latrend version 1.6.1 Index]