Description Usage Arguments Value Examples
This function matches a source distribution to a given reference distribution such that the data in the source space can effectively be transferred to the reference space i.e. domain transfer via distribution matching.
1 2 3 4 5 6 7 8 9 10 | dist_match(
src,
ref,
src_cdf,
ref_cdf,
lims,
density = FALSE,
samples = 1e+06,
seed = NULL
)
|
src |
Vector containing the source data to be matched. |
ref |
Vector containing the reference data to estimate the reference distribution for matching. |
src_cdf |
Vector containing source distribution values. If missing,
these values are estimated from the source data using |
ref_cdf |
Vector containing reference distribution values. If missing,
these values are estimated from the reference data using |
lims |
Vector providing the range of the knot values for mapping. If missing, these values are estimated from the reference data. |
density |
Flag for using kernel density estimates for matching instead
of histogram counts. Defaults to |
samples |
Sample size for estimating distributions if |
seed |
Seed for random number generator (for reproducible outcomes).
Defaults to |
A vector containing the matched values corresponding to src
.
1 2 3 4 5 6 7 8 9 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.