get_S_causal_steps {shapr} | R Documentation |
Get the steps for generating MC samples for coalitions following a causal ordering
Description
Get the steps for generating MC samples for coalitions following a causal ordering
Usage
get_S_causal_steps(S, causal_ordering, confounding, as_string = FALSE)
Arguments
S |
Integer matrix of dimension |
causal_ordering |
List.
Not applicable for (regular) non-causal or asymmetric explanations.
|
confounding |
Logical vector.
Not applicable for (regular) non-causal or asymmetric explanations.
|
as_string |
Boolean. If the returned object is to be a list of lists of integers or a list of vectors of strings. |
Value
Depends on the value of the parameter as_string
. If a string, then results[j]
is a vector specifying
the process of generating the samples for coalition j
. The length of results[j]
is the number of steps, and
results[j][i]
is a string of the form features_to_sample|features_to_condition_on
. If the
features_to_condition_on
part is blank, then we are to sample from the marginal distribution.
For as_string == FALSE
, then we rather return a vector where results[[j]][[i]]
contains the elements
Sbar
and S
representing the features to sample and condition on, respectively.
Author(s)
Lars Henry Berge Olsen