| generateSample {factorMerger} | R Documentation |
Produces a random sample of k groups drawn from the same distribution with different parameters.
generateSample(N, k, distr = "gaussian")
N |
sample size |
k |
number of groups |
distr |
type of distribution from |
list with two fields: numeric variable response
and factor variable factor.
generateSample(100, 2) generateSample(100, 2, "exp")