min.lcModels: Select the lcModel with the lowest metric value

Description Usage Arguments Value See Also Examples

Description

Select the lcModel with the lowest metric value

Usage

1
2
## S3 method for class 'lcModels'
min(x, name, ...)

Arguments

x

The lcModels object

name

The name of the internal metric.

...

Additional arguments.

Value

The lcModel with the lowest metric value

See Also

max.lcModels externalMetric

Examples

1
2
3
4
5
6
7
data(latrendData)
baseMethod <- lcMethodKML(response = "Y", id = "Id", time = "Time")
kml1 <- latrend(baseMethod, nClusters = 1, latrendData)
kml2 <- latrend(baseMethod, nClusters = 2, latrendData)
kml3 <- latrend(baseMethod, nClusters = 3, latrendData)
models <- lcModels(kml1, kml2, kml3)
min(models, 'WRSS')

latrend documentation built on April 14, 2021, 5:08 p.m.