new_shapley {ShapleyOutlier}R Documentation

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)

Arguments

phi

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

mu_tilde

Optional. A pp-dimensional vector (or a n×pn \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).

Value

Named list of class shapley, containing the input parameters.


[Package ShapleyOutlier version 0.1.1 Index]