powered by
Compute internal model metric(s)
# S4 method for lcModel metric(object, name = c("AIC", "BIC", "WRSS", "APPA"), ...)# S4 method for list metric(object, name, drop = TRUE)# S4 method for lcModels metric(object, name, drop = TRUE)
# S4 method for list metric(object, name, drop = TRUE)
# S4 method for lcModels metric(object, name, drop = TRUE)
The lcModel, lcModels, or list of lcModel objects to compute the metrics for.
lcModel
lcModels
list
The name(s) of the metric(s) to compute.
Additional arguments.
Whether to drop the matrix dimensions in case of a single model output.
For metric(lcModel): A named numeric vector with the computed model metrics.
metric(lcModel)
numeric
For metric(list): A data.frame with a metric per column.
metric(list)
data.frame
For metric(lcModels): A data.frame with a metric per column.
metric(lcModels)
externalMetric min.lcModels max.lcModels
Other metric functions: defineExternalMetric(), defineInternalMetric(), externalMetric,lcModel,lcModel-method, getExternalMetricDefinition(), getExternalMetricNames(), getInternalMetricDefinition(), getInternalMetricNames()
defineExternalMetric()
defineInternalMetric()
externalMetric,lcModel,lcModel-method
getExternalMetricDefinition()
getExternalMetricNames()
getInternalMetricDefinition()
getInternalMetricNames()
# NOT RUN { data(latrendData) model <- latrend(lcMethodLcmmGMM(Y ~ Time + (1 | Id), id = "Id", time = "Time"), latrendData) bic <- metric(model, "BIC") ic <- metric(model, c("AIC", "BIC")) # }
Run the code above in your browser using DataLab