View source: R/DiSCo_per_iter.R
DiSCo_per_iter | R Documentation |
This function performs one iteration of the permutation test
DiSCo_per_iter(
c_df,
c_df.q,
t_df,
T0,
peridx,
evgrid,
idx,
grid_df,
M = 1000,
ww = 0,
qmethod = NULL,
qtype = 7,
q_min = 0,
q_max = 1,
simplex = FALSE,
mixture = FALSE
)
c_df |
List of control units |
c_df.q |
List of quantiles of control units |
t_df |
List of target unit |
idx |
Index of permuted target unit |
grid_df |
Grids to evaluate CDFs on, only needed when |
M |
Integer indicating the number of control quantiles to use in the DiSCo method. Default is 1000. |
qmethod |
Character, indicating the method to use for computing the quantiles of the target distribution. The default is NULL, which uses the |
qtype |
Integer, indicating the type of quantile to compute when using |
q_min |
Numeric, minimum quantile to use. Set this together with |
q_max |
Numeric, maximum quantile to use. Set this together with |
simplex |
Logical, indicating whether to use to constrain the optimal weights to the unit simplex. Default is FALSE, which only constrains the weights to sum up to 1 but allows them to be negative. |
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 |
List of squared Wasserstein distances between the target unit and the control units
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.