randomsamp {bbl} | R Documentation |
Generate Random Boltzmann Bayes Model Data
Description
Predictor-response paired data are generated
Usage
randomsamp(predictors, response, prob = NULL, par, nsample = 100)
Arguments
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 |
Details
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.
Value
Data frame of response and predictor variables.
[Package bbl version 1.0.0 Index]