Predictor-response paired data are generated
randomsamp(predictors, response, prob = NULL, par, nsample = 100)
List of vectors of predictor levels
Vector of response variables
Vector of probabilities for sampling each response group
Sample size
Data frame of response and predictor variables.
The argument response
is used to set up all possible levels
of response groups and likewise for predictors
. The parameter
argument par
must have the appropriate structure
consistent with response
and predictors
. This function
is a wrapper calling sample_xi
multiple times.