compare_cart: Compare the synthetic data generated by CART with the real...

Description Usage Arguments Value Examples

View source: R/gen_cart.R View source: R/gen_CART.R

Description

compare_cart compare the synthetic data generated by CART with the real data.

Usage

1
compare_cart(training_set, fit_model, var_list)

Arguments

training_set

A data frame of the training data. The generated data will have the same size as the training_set.

fit_model

A syn) object.

var_list

A string vector of the names of variables that we want to compare.

Value

A plot of the comparision of the distribution of synthetic data vs real data.

Examples

1
2
3
adult_data <- split_data(adult[1:100,], 70)
cart <- gen_cart(adult_data$training_set)
compare_cart(adult_data$training_set, cart$fit_model, c("age", "workclass", "sex"))

haoyuanzhang1990/Synthetic-Data-Generation-for-Linkage-Methods-Development documentation built on April 21, 2020, 1 a.m.