powered by
compare_cart compare the synthetic data generated by CART with the real data.
compare_cart
compare_cart(training_set, fit_model, var_list)
A data frame of the training data. The generated data will have the same size as the training_set.
training_set
A syn) object.
syn
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.
# NOT RUN { 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")) # }
Run the code above in your browser using DataLab