GetMetrics: GetMetrix returns the Root Mean Square Error between y - XB,...

View source: R/MIXTURE.DEBUG_V0.1.R

GetMetricsR Documentation

GetMetrix returns the Root Mean Square Error between y - XB, with unnormalized B>0 (absolute) or normalized sum(B)==1 (proportions)

Description

GetMetrix returns the Root Mean Square Error between y - XB, with unnormalized B>0 (absolute) or normalized sum(B)==1 (proportions)

Usage

GetMetrics(
  obj,
  metric = c("all", "RMSE", "R"),
  type = c("proportion", "absolute")
)

Arguments

obj

an object of class MIXTURE (see MIXTURE)

metric

: (character) "all" all the metrics (type ignored), "RMSE": (see GetRMSE), "R": (see GetCorrelation)

type

a character string "proportion" or "absolute". short word is allowed (default: "proportions")

Value

if "all" : ACCmetric matrix, otherwise see GetRMSE or GetCorrelation


elmerfer/MIXTURE documentation built on Aug. 20, 2024, 8:03 p.m.