Compute internal model metric(s)
Compute internal model metric(s)
## S4 method for signature 'lcModel'
metric(object, name = c("AIC", "BIC", "WRSS", "APPA"), ...)
## S4 method for signature 'list'
metric(object, name, drop = TRUE)
## S4 method for signature 'lcModels'
metric(object, name, drop = TRUE)object |
The |
name |
The name(s) of the metric(s) to compute. |
... |
Additional arguments. |
drop |
Whether to return a |
For metric(lcModel): A named numeric vector with the computed model metrics.
For metric(list): A data.frame with a metric per column.
For metric(lcModels): A data.frame with a metric per column.
Other metric functions:
defineExternalMetric(),
defineInternalMetric(),
externalMetric,lcModel,lcModel-method,
getExternalMetricDefinition(),
getExternalMetricNames(),
getInternalMetricDefinition(),
getInternalMetricNames()
data(latrendData)
model <- latrend(lcMethodLcmmGMM(fixed = Y ~ Time, mixture = ~ Time,
id = "Id", time = "Time"), latrendData)
bic <- metric(model, "BIC")
ic <- metric(model, c("AIC", "BIC"))Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.