Learn R Programming

ShapleyOutlier (version 0.1.2)

new_shapley: Class constructor for class shapley.

Description

This function creates an object of class shapley that is returned by the shapley function.

Usage

new_shapley(phi = numeric(), mu_tilde = NULL, non_centrality = NULL)

Value

Named list of class shapley, containing the input parameters.

Arguments

phi

A \(p\)-dimensional vector (or a \(n \times p\) matrix) containing the Shapley values (outlyingness-scores) of a \(p\)-dimensional data vector (or a \(n \times p\) data matrix).

mu_tilde

Optional. A \(p\)-dimensional vector (or a \(n \times p\) matrix) containing the alternative reference points based on the regular cells of the original observations.

non_centrality

Optional. The non-centrality parameters for the Chi-Squared distribution, which are given by mahlanobis(mu_tilde, mu, Sigma).