| marginal_metrics | R Documentation |
For each variable, marginal_metrics() reports
for numeric variables (incl. dates): the Kolmogorov–Smirnov distance between the empirical CDFs and the Wasserstein-1 distance scaled by the standard deviation of the real data;
for categorical variables: the total variation distance between the category proportions;
means, standard deviations and missing-value rates of both data sets.
marginal_metrics(real, synthetic, vars = NULL)
real, synthetic |
Data frames with common columns. |
vars |
Optional subset of variables. |
All distances are 0 for identical distributions; KS and TVD are bounded by 1.
A data frame with one row per variable.
syn <- synthesize(iris, seed = 1)
marginal_metrics(iris, syn)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.