ods <- SD2011[, c("region", "sex", "agegr", "placesize")]
s1 <- syn(ods, method = "satcat", seed = 7856)
s2 <- syn(ods, method = c("sample", "cart", "satcat", "cart"), seed = 7856)
if (FALSE) {
### mostly fails because previous synthesis has produced
### combinations not found in the original data
s3 <- syn(ods, method = c("sample", "cart", "cart", "satcat"), seed = 7856)}
Run the code above in your browser using DataLab