bootCounterfactuals | R Documentation |
Function for computing the bootstrapped counterfactuals in the DiSCo method
bootCounterfactuals(result_t, t, mixture, weights, evgrid, grid)
result_t |
A list containing the results of the DiSCo_CI_iter function |
t |
The current time period |
mixture |
Logical, indicating whether to use the mixture of distributions approach instead.
See Section 4.3. in \insertCitegunsilius2023distributional;textualDiSCos. This approach minimizes the distance between the CDFs
instead of the quantile functions, and is preferred for categorical variables. When working with such variables, one should
also provide a list of support points in the |
grid |
Grid to recompute the CDF on if |
A list containing the bootstrapped counterfactuals
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.