Compare synthesised data set with the original (observed) data set
using percent frequency tables and histograms. When more than one
synthetic data set has been generated (object$m>1
), by default
pooled synthetic data are used for comparison.
1 2 3 4 5 6 7 |
object |
an object of class |
data |
an original (observed) data set. |
vars |
variables to be compared. If |
msel |
index or indices of synthetic data copies for which a comparison
is to be made. If |
breaks |
the number of cells for the histogram. |
nrow |
the number of rows for the plotting area. |
ncol |
the number of columns for the plotting area. |
rel.size.x |
a number representing the relative size of x-axis labels. |
cols |
bar colors. |
... |
additional parameters. |
x |
an object of class |
Missing data categories for numeric variables are plotted on the same plot
as non-missing values. They are indicated by miss.
suffix.
An object of class compare.synds
which is a list including a list
of comparative percent frequency tables (tables
) and
a ggplot object (plots
) with bar charts/histograms. If multiple plots
are produced they and their corresponding frequency tables are stored as a list.
Nowok, B., Raab, G.M and Dibben, C. (2016). synthpop: Bespoke Creation of Synthetic Data in R. Journal of Statistical Software, 74(11), 1-26. doi: 10.18637/jss.v074.i11.
1 2 3 4 |
Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.
All documentation is copyright its authors; we didn't write any of that.