randomsamp {bbl} | R Documentation |
Predictor-response paired data are generated
randomsamp(predictors, response, prob = NULL, par, nsample = 100)
predictors |
List of vectors of predictor levels |
response |
Vector of response variables |
prob |
Vector of probabilities for sampling each response group |
par |
List of |
nsample |
Sample size |
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.
Data frame of response and predictor variables.