shapley_sampled: Compute Sampled Shapley/Owen Value Decompositions

View source: R/shapley.R

shapley_sampledR Documentation

Compute Sampled Shapley/Owen Value Decompositions

Description

Compute Sampled Shapley/Owen Value Decompositions

Usage

shapley_sampled(
  vfun,
  factors,
  outcomes = "value",
  last_n = 100,
  precision = 1e-04,
  max_iter = 1e+06,
  silent = FALSE,
  ...
)

Arguments

vfun

A value function.

factors

A vector of factors, passed to vfun. List for Owen values is allowed, but only one level.

outcomes

Column names for outcome values (usually this is only one).

last_n

An integer that specifies on how many values the standard deviation of the last samples is calculated.

precision

The stopping criterion.

max_iter

Maximum number of samples to be drawn for each factor. Should be reasonably large and usually doesn't matter. To adjust computation speed, it is preferred to adjust precision.

silent

If FALSE (the default), prints a progress bar.

...

Additional arguments passed to vfun.


elbersb/shapley documentation built on Jan. 17, 2024, 1:59 a.m.