bnowok/synthpop

Constraints for generating synthetic data

Closed this issue · 3 comments

I'd like to make synthtic data with constraints like following, however, I don't know to implement it.

constraint conditions

  • Column A value is greter than Column B value on the record level.
  • And, both Column A value and Column B value is positive number.

I know that Synthpop::syn function provides can accept constraints via rules and rvalues argument, but I don't think to be able to configured the above constraints.

Any one, please let me to any suggestions.

Thanks Lotte and Gillian.

I tried Lotte's hacky approch that make intermediate Column C.
As a result, this way is seed perfect in CART and Ranger method that absolutely keeps Column A > Column B in 76400 records.

Thank you again for your suggestions.
Ippei