mse_g {clustra}R Documentation

Various Loss functions used internally by clustra

Description

Various Loss functions used internally by clustra

Usage

mse_g(pred, id, response)

mae_g(pred, id, response)

mme_g(pred, id, response)

mxe_g(pred, id, response)

Arguments

pred

Vector of predicted values.

id

Integer vector of group assignments.

response

Vector of response values.

Value

A numeric value. For mse_g(), returns the mean-squared error. For mae_g(), returns mean absolute error. For mme_g(), returns median absolute error. For mxe_g(), returns the maximum absolute error.


[Package clustra version 0.2.1 Index]