`gendata.mix`

generates data (both training and test data) from
Bayesian mixture model. The prior distribution of "theta" is uniform(0,1). The value
of "alpha" is given by argument `alpha`

, which controls the the overall
relationship between the response and the predictor variables.

1 | ```
gendata.mix (n1,n2,m1,m2,p,alpha,prob.y=c(0.9,0.1))
``` |

`n1` |
the number of class 1 in training data |

`n2` |
the number of class 2 in training data |

`m1` |
the number of class 1 in test data |

`m2` |
the number of class 2 in test data |

`p` |
the number of features |

`alpha` |
a parameter controlling the dependency between the features and the response |

`prob.y` |
a vector of two elements specifying the probabilities of the response being 1 in each group |

`train` |
the training data, with the row standing for the cases and the first column being the response |

`test` |
the test data, of the same format as "train" |

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.