defineExternalMetric {latrend} | R Documentation |
Define an external metric for lcModels
Description
Define an external metric for lcModels
Usage
defineExternalMetric(
name,
fun,
warnIfExists = getOption("latrend.warnMetricOverride", TRUE)
)
Arguments
name |
The name of the metric. |
fun |
The function to compute the metric, accepting a lcModel object as input. |
warnIfExists |
Whether to output a warning when the metric is already defined. |
See Also
Other metric functions:
defineInternalMetric()
,
externalMetric()
,
getExternalMetricDefinition()
,
getExternalMetricNames()
,
getInternalMetricDefinition()
,
getInternalMetricNames()
,
metric()
[Package latrend version 1.6.1 Index]