Description Usage Arguments Value Examples
compare_cart
compare the synthetic data generated by CART with the real data.
1 | compare_cart(training_set, fit_model, var_list)
|
training_set |
A data frame of the training data. The generated data will
have the same size as the |
fit_model |
A |
var_list |
A string vector of the names of variables that we want to compare. |
A plot of the comparision of the distribution of synthetic data vs real data.
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"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.